zeroc-ice-x64-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-x64-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,37 @@
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
+ /**
15
+ *
16
+ * Freeze provides automatic persistence for Ice servants.
17
+ *
18
+ **/
19
+ module Freeze
20
+ {
21
+
22
+ /**
23
+ *
24
+ * A database key, represented as a sequence of bytes.
25
+ *
26
+ **/
27
+ sequence<byte> Key;
28
+
29
+ /**
30
+ *
31
+ * A database value, represented as a sequence of bytes.
32
+ *
33
+ **/
34
+ sequence<byte> Value;
35
+
36
+ };
37
+
@@ -0,0 +1,339 @@
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/ServantLocator.ice>
16
+ #include <Ice/Identity.ice>
17
+ #include <Freeze/Exception.ice>
18
+
19
+ module Freeze
20
+ {
21
+
22
+ /**
23
+ *
24
+ * A servant initializer provides the application with an
25
+ * opportunity to perform custom servant initialization.
26
+ *
27
+ * @see Evictor
28
+ *
29
+ **/
30
+ local interface ServantInitializer
31
+ {
32
+ /**
33
+ *
34
+ * Called whenever the evictor creates a new servant. This
35
+ * operation allows application code to perform custom servant
36
+ * initialization after the servant has been created by the
37
+ * evictor and its persistent state has been restored.
38
+ *
39
+ * @param adapter The object adapter in which the evictor is
40
+ * installed.
41
+ *
42
+ * @param identity The identity of the Ice object for which the
43
+ * servant was created.
44
+ *
45
+ * @param facet The facet. An empty facet means the default
46
+ * facet.
47
+ *
48
+ * @param servant The servant to initialize.
49
+ *
50
+ * @see Ice.Identity
51
+ *
52
+ **/
53
+ void initialize(Ice::ObjectAdapter adapter, Ice::Identity identity, string facet, Object servant);
54
+ };
55
+
56
+
57
+ /**
58
+ *
59
+ * This exception is raised if there are no further elements in the iteration.
60
+ *
61
+ **/
62
+ local exception NoSuchElementException
63
+ {
64
+ };
65
+
66
+ /**
67
+ *
68
+ * An iterator for the objects managed by the evictor.
69
+ * Note that an EvictorIterator is not thread-safe: the application needs to
70
+ * serialize access to a given EvictorIterator, for example by using it
71
+ * in just one thread.
72
+ *
73
+ * @see Evictor
74
+ *
75
+ **/
76
+ local interface EvictorIterator
77
+ {
78
+ /**
79
+ *
80
+ * Determines if the iteration has more elements.
81
+ *
82
+ * @return True if the iterator has more elements, false
83
+ * otherwise.
84
+ *
85
+ * @throws DatabaseException Raised if a database failure
86
+ * occurs while retrieving a batch of objects.
87
+ *
88
+ **/
89
+ bool hasNext();
90
+
91
+ /**
92
+ *
93
+ * Obtains the next identity in the iteration.
94
+ *
95
+ * @return The next identity in the iteration.
96
+ *
97
+ * @throws NoSuchElementException Raised if there is no further
98
+ * elements in the iteration.
99
+ *
100
+ * @throws DatabaseException Raised if a database failure
101
+ * occurs while retrieving a batch of objects.
102
+ **/
103
+ Ice::Identity next();
104
+ };
105
+
106
+ /**
107
+ *
108
+ * This exception is raised if the evictor has been deactivated.
109
+ *
110
+ **/
111
+ local exception EvictorDeactivatedException
112
+ {
113
+ };
114
+
115
+
116
+ /**
117
+ *
118
+ * An automatic Ice object persistence manager, based on the
119
+ * evictor pattern. The evictor is a servant locator implementation
120
+ * that stores the persistent state of its objects in a database. Any
121
+ * number of objects can be registered with an evictor, but only a
122
+ * configurable number of servants are active at a time. These active
123
+ * servants reside in a queue; the least recently used servant in the
124
+ * queue is the first to be evicted when a new servant is activated.
125
+ *
126
+ *
127
+ * @see ServantInitializer
128
+ *
129
+ **/
130
+ local interface Evictor extends Ice::ServantLocator
131
+ {
132
+
133
+ /**
134
+ *
135
+ * Set the size of the evictor's servant queue. This is the
136
+ * maximum number of servants the evictor keeps active. Requests
137
+ * to set the queue size to a value smaller than zero are ignored.
138
+ *
139
+ * @param sz The size of the servant queue. If the evictor
140
+ * currently holds more than <tt>sz</tt> servants in its queue, it evicts
141
+ * enough servants to match the new size. Note that this operation
142
+ * can block if the new queue size is smaller than the current
143
+ * number of servants that are servicing requests. In this case,
144
+ * the operation waits until a sufficient number of servants
145
+ * complete their requests.
146
+ *
147
+ *
148
+ * @throws EvictorDeactivatedException Raised if a the evictor has
149
+ * been deactivated.
150
+ *
151
+ * @see #getSize
152
+ *
153
+ **/
154
+ void setSize(int sz);
155
+
156
+ /**
157
+ *
158
+ * Get the size of the evictor's servant queue.
159
+ *
160
+ * @return The size of the servant queue.
161
+ *
162
+ * @throws EvictorDeactivatedException Raised if a the evictor has
163
+ * been deactivated.
164
+ *
165
+ * @see #setSize
166
+ *
167
+ **/
168
+ int getSize();
169
+
170
+
171
+ /**
172
+ *
173
+ * Add a servant to this evictor. The state of the servant passed to
174
+ * this operation will be saved in the evictor's persistent store.
175
+ *
176
+ * @param servant The servant to add.
177
+ *
178
+ * @param id The identity of the Ice object that is implemented by
179
+ * the servant.
180
+ *
181
+ * @return A proxy that matches the given identity and this evictor's
182
+ * object adapter.
183
+ *
184
+ * @throws Ice.AlreadyRegisteredException Raised if the evictor already has
185
+ * an object with this identity.
186
+ *
187
+ * @throws DatabaseException Raised if a database failure occurred.
188
+ *
189
+ * @throws EvictorDeactivatedException Raised if the evictor has
190
+ * been deactivated.
191
+ *
192
+ * @see #addFacet
193
+ * @see #remove
194
+ * @see #removeFacet
195
+ *
196
+ **/
197
+ Object* add(Object servant, Ice::Identity id);
198
+
199
+ /**
200
+ *
201
+ * Like {@link #add}, but with a facet. Calling <tt>add(servant, id)</tt>
202
+ * is equivalent to calling {@link #addFacet} with an empty
203
+ * facet.
204
+ *
205
+ * @param servant The servant to add.
206
+ *
207
+ * @param id The identity of the Ice object that is implemented by
208
+ * the servant.
209
+ *
210
+ * @param facet The facet. An empty facet means the default
211
+ * facet.
212
+ *
213
+ * @return A proxy that matches the given identity and this evictor's
214
+ * object adapter.
215
+ *
216
+ * @throws Ice.AlreadyRegisteredException Raised if the evictor already has
217
+ * an object with this identity.
218
+ *
219
+ * @throws DatabaseException Raised if a database failure occurred.
220
+ *
221
+ * @throws EvictorDeactivatedException Raised if the evictor has
222
+ * been deactivated.
223
+ *
224
+ * @see #add
225
+ * @see #remove
226
+ * @see #removeFacet
227
+ *
228
+ **/
229
+ Object* addFacet(Object servant, Ice::Identity id, string facet);
230
+
231
+ //
232
+ // Note: no UUID operation as we don't know the category or
233
+ // categories this evictor was registered with.
234
+ //
235
+
236
+ /**
237
+ *
238
+ * Permanently destroy an Ice object.
239
+ *
240
+ * @param id The identity of the Ice object.
241
+ *
242
+ * @return The removed servant.
243
+ *
244
+ * @throws Ice.NotRegisteredException Raised if this identity was not
245
+ * registered with the evictor.
246
+ *
247
+ * @throws DatabaseException Raised if a database failure occurred.
248
+ *
249
+ * @throws EvictorDeactivatedException Raised if the evictor has
250
+ * been deactivated.
251
+ *
252
+ * @see #add
253
+ * @see #removeFacet
254
+ *
255
+ **/
256
+ Object remove(Ice::Identity id);
257
+
258
+ /**
259
+ *
260
+ * Like {@link #remove}, but with a facet. Calling <tt>remove(id)</tt>
261
+ * is equivalent to calling {@link #removeFacet} with an empty facet.
262
+ *
263
+ * @param id The identity of the Ice object.
264
+ *
265
+ * @param facet The facet. An empty facet means the default
266
+ * facet.
267
+ *
268
+ * @return The removed servant.
269
+ *
270
+ * @throws Ice.NotRegisteredException Raised if this identity was not
271
+ * registered with the evictor.
272
+ *
273
+ * @throws DatabaseException Raised if a database failure occurred.
274
+ *
275
+ * @throws EvictorDeactivatedException Raised if the evictor has
276
+ * been deactivated.
277
+ *
278
+ *
279
+ * @see #remove
280
+ * @see #addFacet
281
+ *
282
+ **/
283
+ Object removeFacet(Ice::Identity id, string facet);
284
+
285
+ /**
286
+ *
287
+ * Returns true if the given identity is managed by the evictor
288
+ * with the default facet.
289
+ *
290
+ * @return true if the identity is managed by the evictor, false
291
+ * otherwise.
292
+ *
293
+ * @throws DatabaseException Raised if a database failure occurred.
294
+ *
295
+ * @throws EvictorDeactivatedException Raised if a the evictor has
296
+ * been deactivated.
297
+ *
298
+ **/
299
+ bool hasObject(Ice::Identity id);
300
+
301
+ /**
302
+ *
303
+ * Like {@link #hasObject}, but with a facet. Calling <tt>hasObject(id)</tt>
304
+ * is equivalent to calling {@link #hasFacet} with an empty
305
+ * facet.
306
+ *
307
+ * @return true if the identity is managed by the evictor for the
308
+ * given facet, false otherwise.
309
+ *
310
+ * @throws DatabaseException Raised if a database failure occurred.
311
+ *
312
+ * @throws EvictorDeactivatedException Raised if a the evictor has
313
+ * been deactivated.
314
+ *
315
+ **/
316
+ bool hasFacet(Ice::Identity id, string facet);
317
+
318
+ /**
319
+ *
320
+ * Get an iterator for the identities managed by the evictor.
321
+ *
322
+ * @param facet The facet. An empty facet means the default
323
+ * facet.
324
+ *
325
+ * @param batchSize Internally, the Iterator retrieves the
326
+ * identities in batches of size batchSize. Selecting a small batchSize
327
+ * can have an adverse effect on performance.
328
+ *
329
+ * @return A new iterator.
330
+ *
331
+ * @throws EvictorDeactivatedException Raised if a the evictor has
332
+ * been deactivated.
333
+ *
334
+ **/
335
+ EvictorIterator getIterator(string facet, int batchSize);
336
+ };
337
+
338
+ };
339
+
@@ -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 Freeze
15
+ {
16
+
17
+ local interface ServantInitializer;
18
+ local interface BackgroundSaveEvictor;
19
+ local interface TransactionalEvictor;
20
+
21
+ };
22
+
@@ -0,0 +1,72 @@
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/Identity.ice>
15
+
16
+ module Freeze
17
+ {
18
+
19
+ /**
20
+ *
21
+ * Evictors maintain statistics about each object, when using Ice encoding version 1.0.
22
+ *
23
+ **/
24
+ struct Statistics
25
+ {
26
+ /**
27
+ *
28
+ * The time the object was created, in milliseconds since Jan 1, 1970 0:00.
29
+ *
30
+ **/
31
+ long creationTime;
32
+
33
+ /**
34
+ *
35
+ * The time the object was last saved, in milliseconds relative to <tt>creationTime</tt>.
36
+ *
37
+ **/
38
+ long lastSaveTime;
39
+
40
+ /**
41
+ *
42
+ * The average time between saves, in milliseconds.
43
+ *
44
+ **/
45
+ long avgSaveTime;
46
+ };
47
+
48
+ /**
49
+ *
50
+ * ObjectRecord is the value-type for the persistent maps maintained by evictors
51
+ * when using Ice encoding version is 1.0.
52
+ *
53
+ **/
54
+ struct ObjectRecord
55
+ {
56
+ /**
57
+ *
58
+ * The servant implementing the object.
59
+ *
60
+ **/
61
+ Object servant;
62
+
63
+ /**
64
+ *
65
+ * The statistics for the object.
66
+ *
67
+ **/
68
+ Statistics stats;
69
+ };
70
+
71
+ };
72
+