zeroc-ice-x86-mingw 3.6b1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +7 -0
  2. data/ICE_LICENSE +54 -0
  3. data/LICENSE +339 -0
  4. data/bin/slice2rb +17 -0
  5. data/ice-x86-mingw.gemspec +41 -0
  6. data/lib/Glacier2.rb +12 -0
  7. data/lib/Glacier2/Metrics.rb +99 -0
  8. data/lib/Glacier2/PermissionsVerifier.rb +168 -0
  9. data/lib/Glacier2/PermissionsVerifierF.rb +34 -0
  10. data/lib/Glacier2/Router.rb +141 -0
  11. data/lib/Glacier2/RouterF.rb +29 -0
  12. data/lib/Glacier2/SSLInfo.rb +79 -0
  13. data/lib/Glacier2/Session.rb +470 -0
  14. data/lib/Ice.rb +659 -0
  15. data/lib/Ice/BuiltinSequences.rb +64 -0
  16. data/lib/Ice/Communicator.rb +93 -0
  17. data/lib/Ice/CommunicatorF.rb +28 -0
  18. data/lib/Ice/Connection.rb +414 -0
  19. data/lib/Ice/ConnectionF.rb +36 -0
  20. data/lib/Ice/Current.rb +152 -0
  21. data/lib/Ice/Endpoint.rb +265 -0
  22. data/lib/Ice/EndpointF.rb +52 -0
  23. data/lib/Ice/EndpointTypes.rb +77 -0
  24. data/lib/Ice/FacetMap.rb +28 -0
  25. data/lib/Ice/Identity.rb +70 -0
  26. data/lib/Ice/ImplicitContext.rb +59 -0
  27. data/lib/Ice/ImplicitContextF.rb +28 -0
  28. data/lib/Ice/Instrumentation.rb +425 -0
  29. data/lib/Ice/InstrumentationF.rb +35 -0
  30. data/lib/Ice/LocalException.rb +1081 -0
  31. data/lib/Ice/Locator.rb +314 -0
  32. data/lib/Ice/LocatorF.rb +34 -0
  33. data/lib/Ice/Logger.rb +57 -0
  34. data/lib/Ice/LoggerF.rb +28 -0
  35. data/lib/Ice/Metrics.rb +696 -0
  36. data/lib/Ice/ObjectAdapterF.rb +28 -0
  37. data/lib/Ice/ObjectFactory.rb +53 -0
  38. data/lib/Ice/ObjectFactoryF.rb +28 -0
  39. data/lib/Ice/Plugin.rb +87 -0
  40. data/lib/Ice/PluginF.rb +32 -0
  41. data/lib/Ice/Process.rb +93 -0
  42. data/lib/Ice/ProcessF.rb +29 -0
  43. data/lib/Ice/Properties.rb +65 -0
  44. data/lib/Ice/PropertiesAdmin.rb +104 -0
  45. data/lib/Ice/PropertiesF.rb +33 -0
  46. data/lib/Ice/Router.rb +163 -0
  47. data/lib/Ice/RouterF.rb +29 -0
  48. data/lib/Ice/SliceChecksumDict.rb +28 -0
  49. data/lib/Ice/Version.rb +100 -0
  50. data/lib/IceBox.rb +10 -0
  51. data/lib/IceBox/IceBox.rb +272 -0
  52. data/lib/IceGrid.rb +17 -0
  53. data/lib/IceGrid/Admin.rb +1076 -0
  54. data/lib/IceGrid/Descriptor.rb +1505 -0
  55. data/lib/IceGrid/Exception.rb +401 -0
  56. data/lib/IceGrid/FileParser.rb +105 -0
  57. data/lib/IceGrid/Locator.rb +105 -0
  58. data/lib/IceGrid/Observer.rb +571 -0
  59. data/lib/IceGrid/Query.rb +168 -0
  60. data/lib/IceGrid/Registry.rb +120 -0
  61. data/lib/IceGrid/Session.rb +114 -0
  62. data/lib/IceGrid/UserAccountMapper.rb +101 -0
  63. data/lib/IcePatch2.rb +10 -0
  64. data/lib/IcePatch2/FileInfo.rb +75 -0
  65. data/lib/IcePatch2/FileServer.rb +141 -0
  66. data/lib/IceRuby.so +0 -0
  67. data/lib/IceStorm.rb +11 -0
  68. data/lib/IceStorm/IceStorm.rb +463 -0
  69. data/lib/IceStorm/Metrics.rb +155 -0
  70. data/slice/Freeze/BackgroundSaveEvictor.ice +111 -0
  71. data/slice/Freeze/CatalogData.ice +49 -0
  72. data/slice/Freeze/Connection.ice +111 -0
  73. data/slice/Freeze/ConnectionF.ice +20 -0
  74. data/slice/Freeze/DB.ice +37 -0
  75. data/slice/Freeze/Evictor.ice +339 -0
  76. data/slice/Freeze/EvictorF.ice +22 -0
  77. data/slice/Freeze/EvictorStorage.ice +72 -0
  78. data/slice/Freeze/Exception.ice +100 -0
  79. data/slice/Freeze/Transaction.ice +57 -0
  80. data/slice/Freeze/TransactionalEvictor.ice +50 -0
  81. data/slice/Glacier2/Metrics.ice +77 -0
  82. data/slice/Glacier2/PermissionsVerifier.ice +105 -0
  83. data/slice/Glacier2/PermissionsVerifierF.ice +21 -0
  84. data/slice/Glacier2/Router.ice +178 -0
  85. data/slice/Glacier2/RouterF.ice +20 -0
  86. data/slice/Glacier2/SSLInfo.ice +50 -0
  87. data/slice/Glacier2/Session.ice +273 -0
  88. data/slice/Ice/BuiltinSequences.ice +48 -0
  89. data/slice/Ice/Communicator.ice +567 -0
  90. data/slice/Ice/CommunicatorF.ice +20 -0
  91. data/slice/Ice/Connection.ice +323 -0
  92. data/slice/Ice/ConnectionF.ice +22 -0
  93. data/slice/Ice/Current.ice +160 -0
  94. data/slice/Ice/Endpoint.ice +227 -0
  95. data/slice/Ice/EndpointF.ice +32 -0
  96. data/slice/Ice/EndpointTypes.ice +38 -0
  97. data/slice/Ice/FacetMap.ice +25 -0
  98. data/slice/Ice/Identity.ice +59 -0
  99. data/slice/Ice/ImplicitContext.ice +109 -0
  100. data/slice/Ice/ImplicitContextF.ice +20 -0
  101. data/slice/Ice/Instrumentation.ice +499 -0
  102. data/slice/Ice/InstrumentationF.ice +26 -0
  103. data/slice/Ice/LocalException.ice +1015 -0
  104. data/slice/Ice/Locator.ice +227 -0
  105. data/slice/Ice/LocatorF.ice +21 -0
  106. data/slice/Ice/Logger.ice +86 -0
  107. data/slice/Ice/LoggerF.ice +20 -0
  108. data/slice/Ice/Metrics.ice +422 -0
  109. data/slice/Ice/ObjectAdapter.ice +673 -0
  110. data/slice/Ice/ObjectAdapterF.ice +20 -0
  111. data/slice/Ice/ObjectFactory.ice +60 -0
  112. data/slice/Ice/ObjectFactoryF.ice +20 -0
  113. data/slice/Ice/Plugin.ice +117 -0
  114. data/slice/Ice/PluginF.ice +21 -0
  115. data/slice/Ice/Process.ice +54 -0
  116. data/slice/Ice/ProcessF.ice +20 -0
  117. data/slice/Ice/Properties.ice +228 -0
  118. data/slice/Ice/PropertiesAdmin.ice +75 -0
  119. data/slice/Ice/PropertiesF.ice +21 -0
  120. data/slice/Ice/RemoteLogger.ice +232 -0
  121. data/slice/Ice/Router.ice +83 -0
  122. data/slice/Ice/RouterF.ice +20 -0
  123. data/slice/Ice/ServantLocator.ice +117 -0
  124. data/slice/Ice/ServantLocatorF.ice +20 -0
  125. data/slice/Ice/SliceChecksumDict.ice +25 -0
  126. data/slice/Ice/Version.ice +39 -0
  127. data/slice/IceBox/IceBox.ice +194 -0
  128. data/slice/IceDiscovery/IceDiscovery.ice +32 -0
  129. data/slice/IceGrid/Admin.ice +1578 -0
  130. data/slice/IceGrid/Descriptor.ice +1079 -0
  131. data/slice/IceGrid/Discovery.ice +73 -0
  132. data/slice/IceGrid/Exception.ice +383 -0
  133. data/slice/IceGrid/FileParser.ice +61 -0
  134. data/slice/IceGrid/Locator.ice +56 -0
  135. data/slice/IceGrid/Observer.ice +394 -0
  136. data/slice/IceGrid/PluginFacade.ice +316 -0
  137. data/slice/IceGrid/Query.ice +130 -0
  138. data/slice/IceGrid/Registry.ice +138 -0
  139. data/slice/IceGrid/Session.ice +124 -0
  140. data/slice/IceGrid/UserAccountMapper.ice +58 -0
  141. data/slice/IcePatch2/FileInfo.ice +49 -0
  142. data/slice/IcePatch2/FileServer.ice +129 -0
  143. data/slice/IceSSL/ConnectionInfo.ice +34 -0
  144. data/slice/IceSSL/EndpointInfo.ice +41 -0
  145. data/slice/IceStorm/IceStorm.ice +405 -0
  146. data/slice/IceStorm/Metrics.ice +71 -0
  147. metadata +207 -0
@@ -0,0 +1,20 @@
1
+ // **********************************************************************
2
+ //
3
+ // Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
4
+ //
5
+ // This copy of Ice is licensed to you under the terms described in the
6
+ // ICE_LICENSE file included in this distribution.
7
+ //
8
+ // **********************************************************************
9
+
10
+ #pragma once
11
+
12
+ [["cpp:header-ext:h"]]
13
+
14
+ module Ice
15
+ {
16
+
17
+ local interface ImplicitContext;
18
+
19
+ };
20
+
@@ -0,0 +1,499 @@
1
+ // **********************************************************************
2
+ //
3
+ // Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
4
+ //
5
+ // This copy of Ice is licensed to you under the terms described in the
6
+ // ICE_LICENSE file included in this distribution.
7
+ //
8
+ // **********************************************************************
9
+
10
+ #pragma once
11
+
12
+ [["cpp:header-ext:h"]]
13
+
14
+ #include <Ice/EndpointF.ice>
15
+ #include <Ice/ConnectionF.ice>
16
+ #include <Ice/Current.ice>
17
+
18
+ module Ice
19
+ {
20
+
21
+ /**
22
+ *
23
+ * The Instrumentation local interfaces enable observing a number of
24
+ * Ice core internal components (threads, connections, etc).
25
+ *
26
+ **/
27
+ module Instrumentation
28
+ {
29
+
30
+ /**
31
+ *
32
+ * The object observer interface used by instrumented objects to
33
+ * notify the observer of their existence.
34
+ *
35
+ **/
36
+ local interface Observer
37
+ {
38
+ /**
39
+ *
40
+ * This method is called when the instrumented object is created
41
+ * or when the observer is attached to an existing object.
42
+ *
43
+ **/
44
+ void attach();
45
+
46
+ /**
47
+ *
48
+ * This method is called when the instrumented object is destroyed
49
+ * and as a result the observer detached from the object.
50
+ *
51
+ **/
52
+ void detach();
53
+
54
+ /**
55
+ *
56
+ * Notification of a failure.
57
+ *
58
+ * @param exceptionName The name of the exception.
59
+ *
60
+ **/
61
+ void failed(string exceptionName);
62
+ };
63
+
64
+ /**
65
+ *
66
+ * The thread state enumeration keeps track of the different possible
67
+ * states of Ice threads.
68
+ *
69
+ **/
70
+ local enum ThreadState
71
+ {
72
+ /**
73
+ *
74
+ * The thread is idle.
75
+ *
76
+ **/
77
+ ThreadStateIdle,
78
+
79
+ /**
80
+ *
81
+ * The thread is in use performing reads or writes for Ice
82
+ * connections. This state is only for threads from an Ice thread
83
+ * pool.
84
+ *
85
+ **/
86
+ ThreadStateInUseForIO,
87
+
88
+ /**
89
+ *
90
+ * The thread is calling user code (servant implementation, AMI
91
+ * callbacks). This state is only for threads from an Ice thread
92
+ * pool.
93
+ *
94
+ **/
95
+ ThreadStateInUseForUser,
96
+
97
+ /**
98
+ *
99
+ * The thread is performing other internal activities (DNS
100
+ * lookups, timer callbacks, etc).
101
+ *
102
+ **/
103
+ ThreadStateInUseForOther,
104
+ };
105
+
106
+ /**
107
+ *
108
+ * The thread observer interface to instrument Ice threads. This can
109
+ * be threads from the Ice thread pool or utility threads used by the
110
+ * Ice core.
111
+ *
112
+ **/
113
+ local interface ThreadObserver extends Observer
114
+ {
115
+ /**
116
+ *
117
+ * Notification of thread state change.
118
+ *
119
+ * @param oldState The previous thread state.
120
+ *
121
+ * @param newState The new thread state.
122
+ *
123
+ **/
124
+ void stateChanged(ThreadState oldState, ThreadState newState);
125
+ };
126
+
127
+ /**
128
+ *
129
+ * The state of an Ice connection.
130
+ *
131
+ **/
132
+ local enum ConnectionState
133
+ {
134
+ /**
135
+ *
136
+ * The connection is being validated.
137
+ *
138
+ **/
139
+ ConnectionStateValidating,
140
+
141
+ /**
142
+ *
143
+ * The connection is holding the reception of new messages.
144
+ *
145
+ **/
146
+ ConnectionStateHolding,
147
+
148
+ /**
149
+ *
150
+ * The connection is active and can send and receive messages.
151
+ *
152
+ **/
153
+ ConnectionStateActive,
154
+
155
+ /**
156
+ *
157
+ * The connection is being gracefully shutdown and waits for the
158
+ * peer to close its end of the connection.
159
+ *
160
+ **/
161
+ ConnectionStateClosing,
162
+
163
+ /**
164
+ *
165
+ * The connection is closed and waits for potential dispatch to be
166
+ * finished before being destroyed and detached from the observer.
167
+ *
168
+ **/
169
+ ConnectionStateClosed
170
+ };
171
+
172
+
173
+ /**
174
+ *
175
+ * The connection observer interface to instrument Ice connections.
176
+ *
177
+ **/
178
+ local interface ConnectionObserver extends Observer
179
+ {
180
+ /**
181
+ *
182
+ * Notification of sent bytes over the connection.
183
+ *
184
+ * @param num The number of bytes sent.
185
+ *
186
+ **/
187
+ void sentBytes(int num);
188
+
189
+ /**
190
+ *
191
+ * Notification of received bytes over the connection.
192
+ *
193
+ * @param num The number of bytes received.
194
+ *
195
+ **/
196
+ void receivedBytes(int num);
197
+ };
198
+
199
+ /**
200
+ *
201
+ * The dispatch observer to instrument servant dispatch.
202
+ *
203
+ **/
204
+ local interface DispatchObserver extends Observer
205
+ {
206
+ /**
207
+ *
208
+ * Notification of a user exception.
209
+ *
210
+ **/
211
+ void userException();
212
+
213
+ /**
214
+ *
215
+ * Reply notification.
216
+ *
217
+ * @param size The size of the reply.
218
+ *
219
+ **/
220
+ void reply(int size);
221
+ };
222
+
223
+ /**
224
+ *
225
+ * The child invocation observer to instrument remote or collocated
226
+ * invocations.
227
+ *
228
+ **/
229
+ local interface ChildInvocationObserver extends Observer
230
+ {
231
+ /**
232
+ *
233
+ * Reply notification.
234
+ *
235
+ * @param size The size of the reply.
236
+ *
237
+ **/
238
+ void reply(int size);
239
+ };
240
+
241
+
242
+ /**
243
+ *
244
+ * The remote observer to instrument invocations that are sent over
245
+ * the wire.
246
+ *
247
+ **/
248
+ local interface RemoteObserver extends ChildInvocationObserver
249
+ {
250
+ };
251
+
252
+ /**
253
+ *
254
+ * The collocated observer to instrument invocations that are
255
+ * collocated.
256
+ *
257
+ **/
258
+ local interface CollocatedObserver extends ChildInvocationObserver
259
+ {
260
+ };
261
+
262
+ /**
263
+ *
264
+ * The invocation observer to instrument invocations on proxies. A
265
+ * proxy invocation can either result in a collocated or remote
266
+ * invocation. If it results in a remote invocation, a sub-observer is
267
+ * requested for the remote invocation.
268
+ *
269
+ **/
270
+ local interface InvocationObserver extends Observer
271
+ {
272
+ /**
273
+ *
274
+ * Notification of the invocation being retried.
275
+ *
276
+ **/
277
+ void retried();
278
+
279
+ /**
280
+ *
281
+ * Notification of a user exception.
282
+ *
283
+ **/
284
+ void userException();
285
+
286
+ /**
287
+ *
288
+ * Get a remote observer for this invocation.
289
+ *
290
+ * @param con The connection information.
291
+ *
292
+ * @param endpt The connection endpoint.
293
+ *
294
+ * @param requestId The ID of the invocation.
295
+ *
296
+ * @param size The size of the invocation.
297
+ *
298
+ * @return The observer to instrument the remote invocation.
299
+ *
300
+ **/
301
+ RemoteObserver getRemoteObserver(ConnectionInfo con, Endpoint endpt, int requestId, int size);
302
+
303
+ /**
304
+ *
305
+ * Get a collocated observer for this invocation.
306
+ *
307
+ * @param adapter The object adapter hosting the collocated Ice object.
308
+ *
309
+ * @param requestId The ID of the invocation.
310
+ *
311
+ * @param size The size of the invocation.
312
+ *
313
+ * @return The observer to instrument the collocated invocation.
314
+ *
315
+ **/
316
+ CollocatedObserver getCollocatedObserver(ObjectAdapter adapter, int requestId, int size);
317
+ };
318
+
319
+ /**
320
+ *
321
+ * The observer updater interface. This interface is implemented by
322
+ * the Ice run-time and an instance of this interface is provided by
323
+ * the Ice communicator on initialization to the {@link
324
+ * CommunicatorObserver} object set with the communicator
325
+ * initialization data. The Ice communicator calls {@link
326
+ * CommunicatorObserver#setObserverUpdater} to provide the observer
327
+ * updater.
328
+ *
329
+ * This interface can be used by add-ins implementing the {@link
330
+ * CommunicatorObserver} interface to update the observers of
331
+ * connections and threads.
332
+ *
333
+ **/
334
+ local interface ObserverUpdater
335
+ {
336
+ /**
337
+ *
338
+ * Update connection observers associated with each of the Ice
339
+ * connection from the communicator and its object adapters.
340
+ *
341
+ * When called, this method goes through all the connections and
342
+ * for each connection {@link CommunicatorObserver#getConnectionObserver}
343
+ * is called. The implementation of getConnectionObserver has the
344
+ * possibility to return an updated observer if necessary.
345
+ *
346
+ **/
347
+ void updateConnectionObservers();
348
+
349
+ /**
350
+ *
351
+ * Update thread observers associated with each of the Ice thread
352
+ * from the communicator and its object adapters.
353
+ *
354
+ * When called, this method goes through all the threads and for
355
+ * each thread {@link CommunicatorObserver#getThreadObserver} is
356
+ * called. The implementation of getThreadObserver has the
357
+ * possibility to return an updated observer if necessary.
358
+ *
359
+ **/
360
+ void updateThreadObservers();
361
+ };
362
+
363
+ /**
364
+ *
365
+ * The communicator observer interface used by the Ice run-time to
366
+ * obtain and update observers for its observable objects. This
367
+ * interface should be implemented by add-ins that wish to observe Ice
368
+ * objects in order to collect statistics. An instance of this
369
+ * interface can be provided to the Ice run-time through the Ice
370
+ * communicator initialization data.
371
+ *
372
+ **/
373
+ local interface CommunicatorObserver
374
+ {
375
+ /**
376
+ *
377
+ * This method should return an observer for the given endpoint
378
+ * information and connector. The Ice run-time calls this method
379
+ * for each connection establishment attempt.
380
+ *
381
+ * @param endpt The endpoint.
382
+ *
383
+ * @param connector The description of the connector. For IP
384
+ * transports, this is typically the IP address to connect to.
385
+ *
386
+ * @return The observer to instrument the connection establishment.
387
+ *
388
+ **/
389
+ Observer getConnectionEstablishmentObserver(Endpoint endpt, string connector);
390
+
391
+ /**
392
+ *
393
+ * This method should return an observer for the given endpoint
394
+ * information. The Ice run-time calls this method to resolve an
395
+ * endpoint and obtain the list of connectors.
396
+ *
397
+ * For IP endpoints, this typically involves doing a DNS lookup to
398
+ * obtain the IP addresses associated with the DNS name.
399
+ *
400
+ * @param endpt The endpoint.
401
+ *
402
+ * @return The observer to instrument the endpoint lookup.
403
+ *
404
+ **/
405
+ Observer getEndpointLookupObserver(Endpoint endpt);
406
+
407
+ /**
408
+ *
409
+ * This method should return a connection observer for the given
410
+ * connection. The Ice run-time calls this method for each new
411
+ * connection and for all the Ice communicator connections when
412
+ * {@link ObserverUpdater#updateConnections} is called.
413
+ *
414
+ * @param c The connection information.
415
+ *
416
+ * @param e The connection endpoint.
417
+ *
418
+ * @param s The state of the connection.
419
+ *
420
+ * @param o The old connection observer if one is already set or a
421
+ * null reference otherwise.
422
+ *
423
+ * @return The connection observer to instrument the connection.
424
+ *
425
+ **/
426
+ ConnectionObserver getConnectionObserver(ConnectionInfo c, Endpoint e, ConnectionState s, ConnectionObserver o);
427
+
428
+ /**
429
+ *
430
+ * This method should return a thread observer for the given
431
+ * thread. The Ice run-time calls this method for each new thread
432
+ * and for all the Ice communicator threads when
433
+ * {@link ObserverUpdater#updateThreads} is called.
434
+ *
435
+ * @param parent The parent of the thread.
436
+ *
437
+ * @param id The ID of the thread to observe.
438
+ *
439
+ * @param s The state of the thread.
440
+ *
441
+ * @param o The old thread observer if one is already set or a
442
+ * null reference otherwise.
443
+ *
444
+ * @return The thread observer to instrument the thread.
445
+ *
446
+ **/
447
+ ThreadObserver getThreadObserver(string parent, string id, ThreadState s, ThreadObserver o);
448
+
449
+ /**
450
+ *
451
+ * This method should return an invocation observer for the given
452
+ * invocation. The Ice run-time calls this method for each new
453
+ * invocation on a proxy.
454
+ *
455
+ * @param prx The proxy used for the invocation.
456
+ *
457
+ * @param operation The name of the invocation.
458
+ *
459
+ * @param ctx The context specified by the user.
460
+ *
461
+ * @return The invocation observer to instrument the invocation.
462
+ *
463
+ **/
464
+ InvocationObserver getInvocationObserver(Object* prx, string operation, Context ctx);
465
+
466
+ /**
467
+ *
468
+ * This method should return a dispatch observer for the given
469
+ * dispatch. The Ice run-time calls this method each time it
470
+ * receives an incoming invocation to be dispatched for an Ice
471
+ * object.
472
+ *
473
+ * @param c The current object as provided to the Ice servant
474
+ * dispatching the invocation.
475
+ *
476
+ * @param size The size of the dispatch.
477
+ *
478
+ * @return The dispatch observer to instrument the dispatch.
479
+ *
480
+ **/
481
+ DispatchObserver getDispatchObserver(Current c, int size);
482
+
483
+ /**
484
+ *
485
+ * The Ice run-time calls this method when the communicator is
486
+ * initialized. The add-in implementing this interface can use
487
+ * this object to get the Ice run-time to re-obtain observers for
488
+ * observed objects.
489
+ *
490
+ * @param updater The observer updater object.
491
+ *
492
+ **/
493
+ void setObserverUpdater(ObserverUpdater updater);
494
+ };
495
+
496
+ };
497
+
498
+ };
499
+