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 Communicator;
18
+
19
+ };
20
+
@@ -0,0 +1,323 @@
1
+
2
+ // **********************************************************************
3
+ //
4
+ // Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
5
+ //
6
+ // This copy of Ice is licensed to you under the terms described in the
7
+ // ICE_LICENSE file included in this distribution.
8
+ //
9
+ // **********************************************************************
10
+
11
+ #pragma once
12
+
13
+ [["cpp:header-ext:h"]]
14
+
15
+ #include <Ice/ObjectAdapterF.ice>
16
+ #include <Ice/Identity.ice>
17
+ #include <Ice/Endpoint.ice>
18
+
19
+ module Ice
20
+ {
21
+
22
+ /**
23
+ *
24
+ * Base class providing access to the connection details.
25
+ *
26
+ **/
27
+ local class ConnectionInfo
28
+ {
29
+ /**
30
+ *
31
+ * Whether or not the connection is an incoming or outgoing
32
+ * connection.
33
+ *
34
+ **/
35
+ bool incoming;
36
+
37
+ /**
38
+ *
39
+ * The name of the adapter associated with the connection.
40
+ *
41
+ **/
42
+ string adapterName;
43
+
44
+ /**
45
+ *
46
+ * The connection id.
47
+ *
48
+ **/
49
+ string connectionId;
50
+ };
51
+
52
+ local interface Connection;
53
+
54
+ /**
55
+ *
56
+ * An application can implement this interface to receive notifications when
57
+ * a connection closes or receives a heartbeat message.
58
+ *
59
+ * @see Connection#setCallback
60
+ *
61
+ **/
62
+ local interface ConnectionCallback
63
+ {
64
+ /**
65
+ *
66
+ * This method is called by the the connection when a heartbeat is
67
+ * received from the peer.
68
+ *
69
+ **/
70
+ void heartbeat(Connection con);
71
+
72
+ /**
73
+ *
74
+ * This method is called by the the connection when the connection
75
+ * is closed.
76
+ *
77
+ **/
78
+ void closed(Connection con);
79
+ };
80
+
81
+ local enum ACMClose
82
+ {
83
+ CloseOff,
84
+ CloseOnIdle,
85
+ CloseOnInvocation,
86
+ CloseOnInvocationAndIdle,
87
+ CloseOnIdleForceful
88
+ };
89
+
90
+ local enum ACMHeartbeat
91
+ {
92
+ HeartbeatOff,
93
+ HeartbeatOnInvocation,
94
+ HeartbeatOnIdle,
95
+ HeartbeatAlways
96
+ };
97
+
98
+ local struct ACM
99
+ {
100
+ int timeout;
101
+ ACMClose close;
102
+ ACMHeartbeat heartbeat;
103
+ };
104
+
105
+ /**
106
+ *
107
+ * The user-level interface to a connection.
108
+ *
109
+ **/
110
+ local interface Connection
111
+ {
112
+ /**
113
+ *
114
+ * Close a connection, either gracefully or forcefully. If a
115
+ * connection is closed forcefully, it closes immediately, without
116
+ * sending the relevant close connection protocol messages to the
117
+ * peer and waiting for the peer to acknowledge these protocol
118
+ * messages.
119
+ *
120
+ * @param force If true, close forcefully. Otherwise the
121
+ * connection is closed gracefully.
122
+ *
123
+ **/
124
+ void close(bool force);
125
+
126
+ /**
127
+ *
128
+ * Create a special proxy that always uses this connection. This
129
+ * can be used for callbacks from a server to a client if the
130
+ * server cannot directly establish a connection to the client,
131
+ * for example because of firewalls. In this case, the server
132
+ * would create a proxy using an already established connection
133
+ * from the client.
134
+ *
135
+ * @param id The identity for which a proxy is to be created.
136
+ *
137
+ * @return A proxy that matches the given identity and uses this
138
+ * connection.
139
+ *
140
+ * @see #setAdapter
141
+ **/
142
+ ["cpp:const"] Object* createProxy(Identity id);
143
+
144
+ /**
145
+ *
146
+ * Explicitly set an object adapter that dispatches requests that
147
+ * are received over this connection. A client can invoke an
148
+ * operation on a server using a proxy, and then set an object
149
+ * adapter for the outgoing connection that is used by the proxy
150
+ * in order to receive callbacks. This is useful if the server
151
+ * cannot establish a connection back to the client, for example
152
+ * because of firewalls.
153
+ *
154
+ * @param adapter The object adapter that should be used by this
155
+ * connection to dispatch requests. The object adapter must be
156
+ * activated. When the object adapter is deactivated, it is
157
+ * automatically removed from the connection.
158
+ *
159
+ * @see #createProxy
160
+ * @see #setAdapter
161
+ *
162
+ **/
163
+ void setAdapter(ObjectAdapter adapter);
164
+
165
+ /**
166
+ *
167
+ * Get the object adapter that dispatches requests for this
168
+ * connection.
169
+ *
170
+ * @return The object adapter that dispatches requests for the
171
+ * connection, or null if no adapter is set.
172
+ *
173
+ * @see #setAdapter
174
+ *
175
+ **/
176
+ ["cpp:const"] ObjectAdapter getAdapter();
177
+
178
+ /**
179
+ *
180
+ * Get the endpoint from which the connection was created.
181
+ *
182
+ * @return The endpoint from which the connection was created.
183
+ *
184
+ **/
185
+ ["cpp:const"] Endpoint getEndpoint();
186
+
187
+ /**
188
+ *
189
+ * Flush any pending batch requests for this connection. This
190
+ * causes all batch requests that were sent via proxies that use
191
+ * this connection to be sent to the server.
192
+ *
193
+ **/
194
+ ["async"] void flushBatchRequests();
195
+
196
+ /**
197
+ *
198
+ * Set callback on the connection. The callback is called by the
199
+ * connection when it's closed. The callback is called from the
200
+ * Ice thread pool associated with the connection.
201
+ *
202
+ * @param callback The connection callback object.
203
+ *
204
+ **/
205
+ void setCallback(ConnectionCallback callback);
206
+
207
+ /**
208
+ *
209
+ * Set the active connection management parameters.
210
+ *
211
+ * @param timeout The timeout value in milliseconds.
212
+ *
213
+ * @param close The close condition
214
+ *
215
+ * @param heartbeat The hertbeat condition
216
+ *
217
+ **/
218
+ ["java:optional"]
219
+ void setACM(optional(1) int timeout, optional(2) ACMClose close, optional(3) ACMHeartbeat heartbeat);
220
+
221
+ /**
222
+ *
223
+ * Get the ACM parameters.
224
+ *
225
+ * @return The ACM parameters.
226
+ *
227
+ **/
228
+ ACM getACM();
229
+
230
+ /**
231
+ *
232
+ * Return the connection type. This corresponds to the endpoint
233
+ * type, i.e., "tcp", "udp", etc.
234
+ *
235
+ * @return The type of the connection.
236
+ *
237
+ **/
238
+ ["cpp:const"] string type();
239
+
240
+ /**
241
+ *
242
+ * Get the timeout for the connection.
243
+ *
244
+ * @return The connection's timeout.
245
+ *
246
+ **/
247
+ ["cpp:const"] int timeout();
248
+
249
+ /**
250
+ *
251
+ * Return a description of the connection as human readable text,
252
+ * suitable for logging or error messages.
253
+ *
254
+ * @return The description of the connection as human readable
255
+ * text.
256
+ *
257
+ **/
258
+ ["cpp:const"] string toString();
259
+
260
+ /**
261
+ *
262
+ * Returns the connection information.
263
+ *
264
+ * @return The connection information.
265
+ *
266
+ **/
267
+ ["cpp:const"] ConnectionInfo getInfo();
268
+ };
269
+
270
+ /**
271
+ *
272
+ * Provides access to the connection details of an IP connection
273
+ *
274
+ **/
275
+ local class IPConnectionInfo extends ConnectionInfo
276
+ {
277
+ /** The local address. */
278
+ string localAddress = "";
279
+
280
+ /** The local port. */
281
+ int localPort = -1;
282
+
283
+ /** The remote address. */
284
+ string remoteAddress = "";
285
+
286
+ /** The remote port. */
287
+ int remotePort = -1;
288
+ };
289
+
290
+ /**
291
+ *
292
+ * Provides access to the connection details of a TCP connection
293
+ *
294
+ **/
295
+ local class TCPConnectionInfo extends IPConnectionInfo
296
+ {
297
+ };
298
+
299
+ /**
300
+ *
301
+ * Provides access to the connection details of a UDP connection
302
+ *
303
+ **/
304
+ local class UDPConnectionInfo extends IPConnectionInfo
305
+ {
306
+ /** The multicast address. */
307
+ string mcastAddress;
308
+
309
+ /** The multicast port. */
310
+ int mcastPort = -1;
311
+ };
312
+
313
+ /**
314
+ *
315
+ * Provides access to the connection details of a WebSocket connection
316
+ *
317
+ **/
318
+ local class WSConnectionInfo extends IPConnectionInfo
319
+ {
320
+ };
321
+
322
+ };
323
+
@@ -0,0 +1,22 @@
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 class ConnectionInfo;
18
+ local class WSConnectionInfo;
19
+ local interface Connection;
20
+
21
+ };
22
+
@@ -0,0 +1,160 @@
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/ObjectAdapterF.ice>
15
+ #include <Ice/ConnectionF.ice>
16
+ #include <Ice/Identity.ice>
17
+ #include <Ice/Version.ice>
18
+
19
+ module Ice
20
+ {
21
+
22
+ /**
23
+ *
24
+ * A request context. <tt>Context</tt> is used to transmit metadata about a
25
+ * request from the server to the client, such as Quality-of-Service
26
+ * (QoS) parameters. Each operation on the client has a <tt>Context</tt> as
27
+ * its implicit final parameter.
28
+ *
29
+ **/
30
+ dictionary<string, string> Context;
31
+
32
+ /**
33
+ *
34
+ * The {@link OperationMode} determines the retry behavior an
35
+ * invocation in case of a (potentially) recoverable error.
36
+ *
37
+ **/
38
+ //
39
+ // Note: The order of definitions here *must* match the order of
40
+ // definitions for ::Slice::Operation::Mode in include/Slice/Parser.h!
41
+ //
42
+ enum OperationMode
43
+ {
44
+ /**
45
+ * Ordinary operations have <tt>Normal</tt> mode. These operations
46
+ * modify object state; invoking such an operation twice in a row
47
+ * has different semantics than invoking it once. The Ice run time
48
+ * guarantees that it will not violate at-most-once semantics for
49
+ * <tt>Normal</tt> operations.
50
+ */
51
+ Normal,
52
+
53
+ /**
54
+ * Operations that use the Slice <tt>nonmutating</tt> keyword must not
55
+ * modify object state. For C++, nonmutating operations generate
56
+ * <tt>const</tt> member functions in the skeleton. In addition, the Ice
57
+ * run time will attempt to transparently recover from certain
58
+ * run-time errors by re-issuing a failed request and propagate
59
+ * the failure to the application only if the second attempt
60
+ * fails.
61
+ *
62
+ * <p class="Deprecated"><tt>Nonmutating</tt> is deprecated; Use the
63
+ * <tt>idempotent</tt> keyword instead. For C++, to retain the mapping
64
+ * of <tt>nonmutating</tt> operations to C++ <tt>const</tt>
65
+ * member functions, use the <tt>\["cpp:const"]</tt> metadata
66
+ * directive.
67
+ */
68
+ \Nonmutating,
69
+
70
+ /**
71
+ * Operations that use the Slice <tt>idempotent</tt> keyword can modify
72
+ * object state, but invoking an operation twice in a row must
73
+ * result in the same object state as invoking it once. For
74
+ * example, <tt>x = 1</tt> is an idempotent statement,
75
+ * whereas <tt>x += 1</tt> is not. For idempotent
76
+ * operations, the Ice run-time uses the same retry behavior
77
+ * as for nonmutating operations in case of a potentially
78
+ * recoverable error.
79
+ */
80
+ \Idempotent
81
+ };
82
+
83
+ /**
84
+ *
85
+ * Information about the current method invocation for servers. Each
86
+ * operation on the server has a <tt>Current</tt> as its implicit final
87
+ * parameter. <tt>Current</tt> is mostly used for Ice services. Most
88
+ * applications ignore this parameter.
89
+ *
90
+ **/
91
+ local struct Current
92
+ {
93
+ /**
94
+ *
95
+ * The object adapter.
96
+ *
97
+ **/
98
+ ObjectAdapter adapter;
99
+
100
+ /**
101
+ *
102
+ * Information about the connection over which the current method
103
+ * invocation was received. If the invocation is direct due to
104
+ * collocation optimization, this value is set to null.
105
+ *
106
+ **/
107
+ Connection con;
108
+
109
+ /**
110
+ *
111
+ * The Ice object identity.
112
+ *
113
+ **/
114
+ Identity id;
115
+
116
+ /**
117
+ *
118
+ * The facet.
119
+ *
120
+ ***/
121
+ string facet;
122
+
123
+ /**
124
+ *
125
+ * The operation name.
126
+ *
127
+ **/
128
+ string operation;
129
+
130
+ /**
131
+ *
132
+ * The mode of the operation.
133
+ *
134
+ **/
135
+ OperationMode mode;
136
+
137
+ /**
138
+ *
139
+ * The request context, as received from the client.
140
+ *
141
+ **/
142
+ Context ctx;
143
+
144
+ /**
145
+ *
146
+ * The request id unless oneway (0) or collocated (-1).
147
+ *
148
+ **/
149
+ int requestId;
150
+
151
+ /**
152
+ *
153
+ * The encoding version used to encode the input and output parameters.
154
+ *
155
+ **/
156
+ Ice::EncodingVersion encoding;
157
+ };
158
+
159
+ };
160
+