zeroc-ice 3.7.11__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. Glacier2/Metrics_ice.py +82 -0
  2. Glacier2/PermissionsVerifierF_ice.py +32 -0
  3. Glacier2/PermissionsVerifier_ice.py +284 -0
  4. Glacier2/RouterF_ice.py +28 -0
  5. Glacier2/Router_ice.py +618 -0
  6. Glacier2/SSLInfo_ice.py +179 -0
  7. Glacier2/Session_ice.py +1103 -0
  8. Glacier2/__init__.py +226 -0
  9. Ice/BuiltinSequences_ice.py +65 -0
  10. Ice/CommunicatorF_ice.py +27 -0
  11. Ice/Communicator_ice.py +469 -0
  12. Ice/ConnectionF_ice.py +33 -0
  13. Ice/Connection_ice.py +680 -0
  14. Ice/Current_ice.py +175 -0
  15. Ice/EndpointF_ice.py +45 -0
  16. Ice/EndpointTypes_ice.py +54 -0
  17. Ice/Endpoint_ice.py +304 -0
  18. Ice/FacetMap_ice.py +27 -0
  19. Ice/Identity_ice.py +133 -0
  20. Ice/ImplicitContextF_ice.py +27 -0
  21. Ice/ImplicitContext_ice.py +119 -0
  22. Ice/InstrumentationF_ice.py +38 -0
  23. Ice/Instrumentation_ice.py +566 -0
  24. Ice/LocalException_ice.py +1715 -0
  25. Ice/LocatorF_ice.py +32 -0
  26. Ice/Locator_ice.py +728 -0
  27. Ice/LoggerF_ice.py +27 -0
  28. Ice/Logger_ice.py +96 -0
  29. Ice/Metrics_ice.py +864 -0
  30. Ice/ObjectAdapterF_ice.py +27 -0
  31. Ice/ObjectAdapter_ice.py +461 -0
  32. Ice/ObjectFactory_ice.py +68 -0
  33. Ice/PluginF_ice.py +30 -0
  34. Ice/Plugin_ice.py +136 -0
  35. Ice/ProcessF_ice.py +28 -0
  36. Ice/Process_ice.py +175 -0
  37. Ice/PropertiesAdmin_ice.py +247 -0
  38. Ice/PropertiesF_ice.py +31 -0
  39. Ice/Properties_ice.py +199 -0
  40. Ice/Py3/IceFuture.py +52 -0
  41. Ice/Py3/__init__.py +3 -0
  42. Ice/RemoteLogger_ice.py +617 -0
  43. Ice/RouterF_ice.py +28 -0
  44. Ice/Router_ice.py +350 -0
  45. Ice/ServantLocatorF_ice.py +27 -0
  46. Ice/ServantLocator_ice.py +110 -0
  47. Ice/SliceChecksumDict_ice.py +29 -0
  48. Ice/ValueFactory_ice.py +125 -0
  49. Ice/Version_ice.py +217 -0
  50. Ice/__init__.py +2008 -0
  51. IceBox/IceBox_ice.py +644 -0
  52. IceBox/__init__.py +10 -0
  53. IceGrid/Admin_ice.py +6662 -0
  54. IceGrid/Descriptor_ice.py +1795 -0
  55. IceGrid/Exception_ice.py +592 -0
  56. IceGrid/FileParser_ice.py +171 -0
  57. IceGrid/PluginFacade_ice.py +288 -0
  58. IceGrid/Registry_ice.py +985 -0
  59. IceGrid/Session_ice.py +406 -0
  60. IceGrid/UserAccountMapper_ice.py +166 -0
  61. IceGrid/__init__.py +17 -0
  62. IceMX/__init__.py +12 -0
  63. IcePatch2/FileInfo_ice.py +287 -0
  64. IcePatch2/FileServer_ice.py +555 -0
  65. IcePatch2/__init__.py +11 -0
  66. IcePy.cp313-win_amd64.pdb +0 -0
  67. IcePy.cp313-win_amd64.pyd +0 -0
  68. IceStorm/IceStorm_ice.py +1265 -0
  69. IceStorm/Metrics_ice.py +106 -0
  70. IceStorm/__init__.py +10 -0
  71. slice/Glacier2/Metrics.ice +88 -0
  72. slice/Glacier2/PermissionsVerifier.ice +111 -0
  73. slice/Glacier2/PermissionsVerifierF.ice +30 -0
  74. slice/Glacier2/Router.ice +186 -0
  75. slice/Glacier2/RouterF.ice +29 -0
  76. slice/Glacier2/SSLInfo.ice +59 -0
  77. slice/Glacier2/Session.ice +274 -0
  78. slice/Ice/BuiltinSequences.ice +59 -0
  79. slice/Ice/Communicator.ice +676 -0
  80. slice/Ice/CommunicatorF.ice +31 -0
  81. slice/Ice/Connection.ice +516 -0
  82. slice/Ice/ConnectionF.ice +33 -0
  83. slice/Ice/Current.ice +170 -0
  84. slice/Ice/Endpoint.ice +291 -0
  85. slice/Ice/EndpointF.ice +43 -0
  86. slice/Ice/EndpointTypes.ice +48 -0
  87. slice/Ice/FacetMap.ice +36 -0
  88. slice/Ice/Identity.ice +75 -0
  89. slice/Ice/ImplicitContext.ice +119 -0
  90. slice/Ice/ImplicitContextF.ice +30 -0
  91. slice/Ice/Instrumentation.ice +509 -0
  92. slice/Ice/InstrumentationF.ice +38 -0
  93. slice/Ice/LocalException.ice +1040 -0
  94. slice/Ice/Locator.ice +239 -0
  95. slice/Ice/LocatorF.ice +32 -0
  96. slice/Ice/Logger.ice +99 -0
  97. slice/Ice/LoggerF.ice +31 -0
  98. slice/Ice/Metrics.ice +436 -0
  99. slice/Ice/ObjectAdapter.ice +710 -0
  100. slice/Ice/ObjectAdapterF.ice +31 -0
  101. slice/Ice/ObjectFactory.ice +71 -0
  102. slice/Ice/Plugin.ice +131 -0
  103. slice/Ice/PluginF.ice +36 -0
  104. slice/Ice/Process.ice +64 -0
  105. slice/Ice/ProcessF.ice +31 -0
  106. slice/Ice/Properties.ice +244 -0
  107. slice/Ice/PropertiesAdmin.ice +87 -0
  108. slice/Ice/PropertiesF.ice +32 -0
  109. slice/Ice/RemoteLogger.ice +226 -0
  110. slice/Ice/Router.ice +103 -0
  111. slice/Ice/RouterF.ice +31 -0
  112. slice/Ice/ServantLocator.ice +136 -0
  113. slice/Ice/ServantLocatorF.ice +31 -0
  114. slice/Ice/SliceChecksumDict.ice +36 -0
  115. slice/Ice/ValueFactory.ice +133 -0
  116. slice/Ice/Version.ice +51 -0
  117. slice/IceBT/ConnectionInfo.ice +59 -0
  118. slice/IceBT/EndpointInfo.ice +57 -0
  119. slice/IceBT/Types.ice +45 -0
  120. slice/IceBox/IceBox.ice +216 -0
  121. slice/IceGrid/Admin.ice +1957 -0
  122. slice/IceGrid/Descriptor.ice +1094 -0
  123. slice/IceGrid/Exception.ice +396 -0
  124. slice/IceGrid/FileParser.ice +72 -0
  125. slice/IceGrid/PluginFacade.ice +329 -0
  126. slice/IceGrid/Registry.ice +269 -0
  127. slice/IceGrid/Session.ice +128 -0
  128. slice/IceGrid/UserAccountMapper.ice +69 -0
  129. slice/IceIAP/ConnectionInfo.ice +74 -0
  130. slice/IceIAP/EndpointInfo.ice +68 -0
  131. slice/IcePatch2/FileInfo.ice +85 -0
  132. slice/IcePatch2/FileServer.ice +191 -0
  133. slice/IceSSL/ConnectionInfo.ice +54 -0
  134. slice/IceSSL/ConnectionInfoF.ice +31 -0
  135. slice/IceSSL/EndpointInfo.ice +45 -0
  136. slice/IceStorm/IceStorm.ice +414 -0
  137. slice/IceStorm/Metrics.ice +83 -0
  138. slice2py.py +21 -0
  139. zeroc_ice-3.7.11.dist-info/METADATA +97 -0
  140. zeroc_ice-3.7.11.dist-info/RECORD +143 -0
  141. zeroc_ice-3.7.11.dist-info/WHEEL +5 -0
  142. zeroc_ice-3.7.11.dist-info/entry_points.txt +2 -0
  143. zeroc_ice-3.7.11.dist-info/top_level.txt +10 -0
@@ -0,0 +1,1795 @@
1
+ # -*- coding: utf-8 -*-
2
+ #
3
+ # Copyright (c) ZeroC, Inc. All rights reserved.
4
+ #
5
+ #
6
+ # Ice version 3.7.11
7
+ #
8
+ # <auto-generated>
9
+ #
10
+ # Generated from file `Descriptor.ice'
11
+ #
12
+ # Warning: do not edit this file.
13
+ #
14
+ # </auto-generated>
15
+ #
16
+
17
+ from sys import version_info as _version_info_
18
+ import Ice, IcePy
19
+ import Ice.Identity_ice
20
+ import Ice.BuiltinSequences_ice
21
+
22
+ # Included module Ice
23
+ _M_Ice = Ice.openModule('Ice')
24
+
25
+ # Start of module IceGrid
26
+ _M_IceGrid = Ice.openModule('IceGrid')
27
+ __name__ = 'IceGrid'
28
+
29
+ if '_t_StringStringDict' not in _M_IceGrid.__dict__:
30
+ _M_IceGrid._t_StringStringDict = IcePy.defineDictionary('::IceGrid::StringStringDict', (), IcePy._t_string, IcePy._t_string)
31
+
32
+ if 'PropertyDescriptor' not in _M_IceGrid.__dict__:
33
+ _M_IceGrid.PropertyDescriptor = Ice.createTempClass()
34
+ class PropertyDescriptor(object):
35
+ """
36
+ Property descriptor.
37
+ Members:
38
+ name -- The name of the property.
39
+ value -- The value of the property.
40
+ """
41
+ def __init__(self, name='', value=''):
42
+ self.name = name
43
+ self.value = value
44
+
45
+ def __hash__(self):
46
+ _h = 0
47
+ _h = 5 * _h + Ice.getHash(self.name)
48
+ _h = 5 * _h + Ice.getHash(self.value)
49
+ return _h % 0x7fffffff
50
+
51
+ def __compare(self, other):
52
+ if other is None:
53
+ return 1
54
+ elif not isinstance(other, _M_IceGrid.PropertyDescriptor):
55
+ return NotImplemented
56
+ else:
57
+ if self.name is None or other.name is None:
58
+ if self.name != other.name:
59
+ return (-1 if self.name is None else 1)
60
+ else:
61
+ if self.name < other.name:
62
+ return -1
63
+ elif self.name > other.name:
64
+ return 1
65
+ if self.value is None or other.value is None:
66
+ if self.value != other.value:
67
+ return (-1 if self.value is None else 1)
68
+ else:
69
+ if self.value < other.value:
70
+ return -1
71
+ elif self.value > other.value:
72
+ return 1
73
+ return 0
74
+
75
+ def __lt__(self, other):
76
+ r = self.__compare(other)
77
+ if r is NotImplemented:
78
+ return r
79
+ else:
80
+ return r < 0
81
+
82
+ def __le__(self, other):
83
+ r = self.__compare(other)
84
+ if r is NotImplemented:
85
+ return r
86
+ else:
87
+ return r <= 0
88
+
89
+ def __gt__(self, other):
90
+ r = self.__compare(other)
91
+ if r is NotImplemented:
92
+ return r
93
+ else:
94
+ return r > 0
95
+
96
+ def __ge__(self, other):
97
+ r = self.__compare(other)
98
+ if r is NotImplemented:
99
+ return r
100
+ else:
101
+ return r >= 0
102
+
103
+ def __eq__(self, other):
104
+ r = self.__compare(other)
105
+ if r is NotImplemented:
106
+ return r
107
+ else:
108
+ return r == 0
109
+
110
+ def __ne__(self, other):
111
+ r = self.__compare(other)
112
+ if r is NotImplemented:
113
+ return r
114
+ else:
115
+ return r != 0
116
+
117
+ def __str__(self):
118
+ return IcePy.stringify(self, _M_IceGrid._t_PropertyDescriptor)
119
+
120
+ __repr__ = __str__
121
+
122
+ _M_IceGrid._t_PropertyDescriptor = IcePy.defineStruct('::IceGrid::PropertyDescriptor', PropertyDescriptor, (), (
123
+ ('name', (), IcePy._t_string),
124
+ ('value', (), IcePy._t_string)
125
+ ))
126
+
127
+ _M_IceGrid.PropertyDescriptor = PropertyDescriptor
128
+ del PropertyDescriptor
129
+
130
+ if '_t_PropertyDescriptorSeq' not in _M_IceGrid.__dict__:
131
+ _M_IceGrid._t_PropertyDescriptorSeq = IcePy.defineSequence('::IceGrid::PropertyDescriptorSeq', (), _M_IceGrid._t_PropertyDescriptor)
132
+
133
+ if 'PropertySetDescriptor' not in _M_IceGrid.__dict__:
134
+ _M_IceGrid.PropertySetDescriptor = Ice.createTempClass()
135
+ class PropertySetDescriptor(object):
136
+ """
137
+ A property set descriptor.
138
+ Members:
139
+ references -- References to named property sets.
140
+ properties -- The property set properties.
141
+ """
142
+ def __init__(self, references=None, properties=None):
143
+ self.references = references
144
+ self.properties = properties
145
+
146
+ def __hash__(self):
147
+ _h = 0
148
+ if self.references:
149
+ for _i0 in self.references:
150
+ _h = 5 * _h + Ice.getHash(_i0)
151
+ if self.properties:
152
+ for _i1 in self.properties:
153
+ _h = 5 * _h + Ice.getHash(_i1)
154
+ return _h % 0x7fffffff
155
+
156
+ def __compare(self, other):
157
+ if other is None:
158
+ return 1
159
+ elif not isinstance(other, _M_IceGrid.PropertySetDescriptor):
160
+ return NotImplemented
161
+ else:
162
+ if self.references is None or other.references is None:
163
+ if self.references != other.references:
164
+ return (-1 if self.references is None else 1)
165
+ else:
166
+ if self.references < other.references:
167
+ return -1
168
+ elif self.references > other.references:
169
+ return 1
170
+ if self.properties is None or other.properties is None:
171
+ if self.properties != other.properties:
172
+ return (-1 if self.properties is None else 1)
173
+ else:
174
+ if self.properties < other.properties:
175
+ return -1
176
+ elif self.properties > other.properties:
177
+ return 1
178
+ return 0
179
+
180
+ def __lt__(self, other):
181
+ r = self.__compare(other)
182
+ if r is NotImplemented:
183
+ return r
184
+ else:
185
+ return r < 0
186
+
187
+ def __le__(self, other):
188
+ r = self.__compare(other)
189
+ if r is NotImplemented:
190
+ return r
191
+ else:
192
+ return r <= 0
193
+
194
+ def __gt__(self, other):
195
+ r = self.__compare(other)
196
+ if r is NotImplemented:
197
+ return r
198
+ else:
199
+ return r > 0
200
+
201
+ def __ge__(self, other):
202
+ r = self.__compare(other)
203
+ if r is NotImplemented:
204
+ return r
205
+ else:
206
+ return r >= 0
207
+
208
+ def __eq__(self, other):
209
+ r = self.__compare(other)
210
+ if r is NotImplemented:
211
+ return r
212
+ else:
213
+ return r == 0
214
+
215
+ def __ne__(self, other):
216
+ r = self.__compare(other)
217
+ if r is NotImplemented:
218
+ return r
219
+ else:
220
+ return r != 0
221
+
222
+ def __str__(self):
223
+ return IcePy.stringify(self, _M_IceGrid._t_PropertySetDescriptor)
224
+
225
+ __repr__ = __str__
226
+
227
+ _M_IceGrid._t_PropertySetDescriptor = IcePy.defineStruct('::IceGrid::PropertySetDescriptor', PropertySetDescriptor, (), (
228
+ ('references', (), _M_Ice._t_StringSeq),
229
+ ('properties', (), _M_IceGrid._t_PropertyDescriptorSeq)
230
+ ))
231
+
232
+ _M_IceGrid.PropertySetDescriptor = PropertySetDescriptor
233
+ del PropertySetDescriptor
234
+
235
+ if '_t_PropertySetDescriptorDict' not in _M_IceGrid.__dict__:
236
+ _M_IceGrid._t_PropertySetDescriptorDict = IcePy.defineDictionary('::IceGrid::PropertySetDescriptorDict', (), IcePy._t_string, _M_IceGrid._t_PropertySetDescriptor)
237
+
238
+ if 'ObjectDescriptor' not in _M_IceGrid.__dict__:
239
+ _M_IceGrid.ObjectDescriptor = Ice.createTempClass()
240
+ class ObjectDescriptor(object):
241
+ """
242
+ An Ice object descriptor.
243
+ Members:
244
+ id -- The identity of the object.
245
+ type -- The object type.
246
+ proxyOptions -- Proxy options to use with the proxy created for this Ice object. If empty,
247
+ the proxy will be created with the proxy options specified on the object
248
+ adapter or replica group.
249
+ """
250
+ def __init__(self, id=Ice._struct_marker, type='', proxyOptions=''):
251
+ if id is Ice._struct_marker:
252
+ self.id = _M_Ice.Identity()
253
+ else:
254
+ self.id = id
255
+ self.type = type
256
+ self.proxyOptions = proxyOptions
257
+
258
+ def __hash__(self):
259
+ _h = 0
260
+ _h = 5 * _h + Ice.getHash(self.id)
261
+ _h = 5 * _h + Ice.getHash(self.type)
262
+ _h = 5 * _h + Ice.getHash(self.proxyOptions)
263
+ return _h % 0x7fffffff
264
+
265
+ def __compare(self, other):
266
+ if other is None:
267
+ return 1
268
+ elif not isinstance(other, _M_IceGrid.ObjectDescriptor):
269
+ return NotImplemented
270
+ else:
271
+ if self.id is None or other.id is None:
272
+ if self.id != other.id:
273
+ return (-1 if self.id is None else 1)
274
+ else:
275
+ if self.id < other.id:
276
+ return -1
277
+ elif self.id > other.id:
278
+ return 1
279
+ if self.type is None or other.type is None:
280
+ if self.type != other.type:
281
+ return (-1 if self.type is None else 1)
282
+ else:
283
+ if self.type < other.type:
284
+ return -1
285
+ elif self.type > other.type:
286
+ return 1
287
+ if self.proxyOptions is None or other.proxyOptions is None:
288
+ if self.proxyOptions != other.proxyOptions:
289
+ return (-1 if self.proxyOptions is None else 1)
290
+ else:
291
+ if self.proxyOptions < other.proxyOptions:
292
+ return -1
293
+ elif self.proxyOptions > other.proxyOptions:
294
+ return 1
295
+ return 0
296
+
297
+ def __lt__(self, other):
298
+ r = self.__compare(other)
299
+ if r is NotImplemented:
300
+ return r
301
+ else:
302
+ return r < 0
303
+
304
+ def __le__(self, other):
305
+ r = self.__compare(other)
306
+ if r is NotImplemented:
307
+ return r
308
+ else:
309
+ return r <= 0
310
+
311
+ def __gt__(self, other):
312
+ r = self.__compare(other)
313
+ if r is NotImplemented:
314
+ return r
315
+ else:
316
+ return r > 0
317
+
318
+ def __ge__(self, other):
319
+ r = self.__compare(other)
320
+ if r is NotImplemented:
321
+ return r
322
+ else:
323
+ return r >= 0
324
+
325
+ def __eq__(self, other):
326
+ r = self.__compare(other)
327
+ if r is NotImplemented:
328
+ return r
329
+ else:
330
+ return r == 0
331
+
332
+ def __ne__(self, other):
333
+ r = self.__compare(other)
334
+ if r is NotImplemented:
335
+ return r
336
+ else:
337
+ return r != 0
338
+
339
+ def __str__(self):
340
+ return IcePy.stringify(self, _M_IceGrid._t_ObjectDescriptor)
341
+
342
+ __repr__ = __str__
343
+
344
+ _M_IceGrid._t_ObjectDescriptor = IcePy.defineStruct('::IceGrid::ObjectDescriptor', ObjectDescriptor, (), (
345
+ ('id', (), _M_Ice._t_Identity),
346
+ ('type', (), IcePy._t_string),
347
+ ('proxyOptions', (), IcePy._t_string)
348
+ ))
349
+
350
+ _M_IceGrid.ObjectDescriptor = ObjectDescriptor
351
+ del ObjectDescriptor
352
+
353
+ if '_t_ObjectDescriptorSeq' not in _M_IceGrid.__dict__:
354
+ _M_IceGrid._t_ObjectDescriptorSeq = IcePy.defineSequence('::IceGrid::ObjectDescriptorSeq', (), _M_IceGrid._t_ObjectDescriptor)
355
+
356
+ if 'AdapterDescriptor' not in _M_IceGrid.__dict__:
357
+ _M_IceGrid.AdapterDescriptor = Ice.createTempClass()
358
+ class AdapterDescriptor(object):
359
+ """
360
+ An Ice object adapter descriptor.
361
+ Members:
362
+ name -- The object adapter name.
363
+ description -- The description of this object adapter.
364
+ id -- The object adapter id.
365
+ replicaGroupId -- The replica id of this adapter.
366
+ priority -- The adapter priority. This is eventually used when the adapter
367
+ is member of a replica group to sort the adapter endpoints by
368
+ priority.
369
+ registerProcess -- Flag to specify if the object adapter will register a process object.
370
+ serverLifetime -- If true the lifetime of this object adapter is the same of the
371
+ server lifetime. This information is used by the IceGrid node
372
+ to figure out the server state: the server is active only if
373
+ all its "server lifetime" adapters are active.
374
+ objects -- The well-known object descriptors associated with this object adapter.
375
+ allocatables -- The allocatable object descriptors associated with this object adapter.
376
+ """
377
+ def __init__(self, name='', description='', id='', replicaGroupId='', priority='', registerProcess=False, serverLifetime=False, objects=None, allocatables=None):
378
+ self.name = name
379
+ self.description = description
380
+ self.id = id
381
+ self.replicaGroupId = replicaGroupId
382
+ self.priority = priority
383
+ self.registerProcess = registerProcess
384
+ self.serverLifetime = serverLifetime
385
+ self.objects = objects
386
+ self.allocatables = allocatables
387
+
388
+ def __hash__(self):
389
+ _h = 0
390
+ _h = 5 * _h + Ice.getHash(self.name)
391
+ _h = 5 * _h + Ice.getHash(self.description)
392
+ _h = 5 * _h + Ice.getHash(self.id)
393
+ _h = 5 * _h + Ice.getHash(self.replicaGroupId)
394
+ _h = 5 * _h + Ice.getHash(self.priority)
395
+ _h = 5 * _h + Ice.getHash(self.registerProcess)
396
+ _h = 5 * _h + Ice.getHash(self.serverLifetime)
397
+ if self.objects:
398
+ for _i0 in self.objects:
399
+ _h = 5 * _h + Ice.getHash(_i0)
400
+ if self.allocatables:
401
+ for _i1 in self.allocatables:
402
+ _h = 5 * _h + Ice.getHash(_i1)
403
+ return _h % 0x7fffffff
404
+
405
+ def __compare(self, other):
406
+ if other is None:
407
+ return 1
408
+ elif not isinstance(other, _M_IceGrid.AdapterDescriptor):
409
+ return NotImplemented
410
+ else:
411
+ if self.name is None or other.name is None:
412
+ if self.name != other.name:
413
+ return (-1 if self.name is None else 1)
414
+ else:
415
+ if self.name < other.name:
416
+ return -1
417
+ elif self.name > other.name:
418
+ return 1
419
+ if self.description is None or other.description is None:
420
+ if self.description != other.description:
421
+ return (-1 if self.description is None else 1)
422
+ else:
423
+ if self.description < other.description:
424
+ return -1
425
+ elif self.description > other.description:
426
+ return 1
427
+ if self.id is None or other.id is None:
428
+ if self.id != other.id:
429
+ return (-1 if self.id is None else 1)
430
+ else:
431
+ if self.id < other.id:
432
+ return -1
433
+ elif self.id > other.id:
434
+ return 1
435
+ if self.replicaGroupId is None or other.replicaGroupId is None:
436
+ if self.replicaGroupId != other.replicaGroupId:
437
+ return (-1 if self.replicaGroupId is None else 1)
438
+ else:
439
+ if self.replicaGroupId < other.replicaGroupId:
440
+ return -1
441
+ elif self.replicaGroupId > other.replicaGroupId:
442
+ return 1
443
+ if self.priority is None or other.priority is None:
444
+ if self.priority != other.priority:
445
+ return (-1 if self.priority is None else 1)
446
+ else:
447
+ if self.priority < other.priority:
448
+ return -1
449
+ elif self.priority > other.priority:
450
+ return 1
451
+ if self.registerProcess is None or other.registerProcess is None:
452
+ if self.registerProcess != other.registerProcess:
453
+ return (-1 if self.registerProcess is None else 1)
454
+ else:
455
+ if self.registerProcess < other.registerProcess:
456
+ return -1
457
+ elif self.registerProcess > other.registerProcess:
458
+ return 1
459
+ if self.serverLifetime is None or other.serverLifetime is None:
460
+ if self.serverLifetime != other.serverLifetime:
461
+ return (-1 if self.serverLifetime is None else 1)
462
+ else:
463
+ if self.serverLifetime < other.serverLifetime:
464
+ return -1
465
+ elif self.serverLifetime > other.serverLifetime:
466
+ return 1
467
+ if self.objects is None or other.objects is None:
468
+ if self.objects != other.objects:
469
+ return (-1 if self.objects is None else 1)
470
+ else:
471
+ if self.objects < other.objects:
472
+ return -1
473
+ elif self.objects > other.objects:
474
+ return 1
475
+ if self.allocatables is None or other.allocatables is None:
476
+ if self.allocatables != other.allocatables:
477
+ return (-1 if self.allocatables is None else 1)
478
+ else:
479
+ if self.allocatables < other.allocatables:
480
+ return -1
481
+ elif self.allocatables > other.allocatables:
482
+ return 1
483
+ return 0
484
+
485
+ def __lt__(self, other):
486
+ r = self.__compare(other)
487
+ if r is NotImplemented:
488
+ return r
489
+ else:
490
+ return r < 0
491
+
492
+ def __le__(self, other):
493
+ r = self.__compare(other)
494
+ if r is NotImplemented:
495
+ return r
496
+ else:
497
+ return r <= 0
498
+
499
+ def __gt__(self, other):
500
+ r = self.__compare(other)
501
+ if r is NotImplemented:
502
+ return r
503
+ else:
504
+ return r > 0
505
+
506
+ def __ge__(self, other):
507
+ r = self.__compare(other)
508
+ if r is NotImplemented:
509
+ return r
510
+ else:
511
+ return r >= 0
512
+
513
+ def __eq__(self, other):
514
+ r = self.__compare(other)
515
+ if r is NotImplemented:
516
+ return r
517
+ else:
518
+ return r == 0
519
+
520
+ def __ne__(self, other):
521
+ r = self.__compare(other)
522
+ if r is NotImplemented:
523
+ return r
524
+ else:
525
+ return r != 0
526
+
527
+ def __str__(self):
528
+ return IcePy.stringify(self, _M_IceGrid._t_AdapterDescriptor)
529
+
530
+ __repr__ = __str__
531
+
532
+ _M_IceGrid._t_AdapterDescriptor = IcePy.defineStruct('::IceGrid::AdapterDescriptor', AdapterDescriptor, (), (
533
+ ('name', (), IcePy._t_string),
534
+ ('description', (), IcePy._t_string),
535
+ ('id', (), IcePy._t_string),
536
+ ('replicaGroupId', (), IcePy._t_string),
537
+ ('priority', (), IcePy._t_string),
538
+ ('registerProcess', (), IcePy._t_bool),
539
+ ('serverLifetime', (), IcePy._t_bool),
540
+ ('objects', (), _M_IceGrid._t_ObjectDescriptorSeq),
541
+ ('allocatables', (), _M_IceGrid._t_ObjectDescriptorSeq)
542
+ ))
543
+
544
+ _M_IceGrid.AdapterDescriptor = AdapterDescriptor
545
+ del AdapterDescriptor
546
+
547
+ if '_t_AdapterDescriptorSeq' not in _M_IceGrid.__dict__:
548
+ _M_IceGrid._t_AdapterDescriptorSeq = IcePy.defineSequence('::IceGrid::AdapterDescriptorSeq', (), _M_IceGrid._t_AdapterDescriptor)
549
+
550
+ if 'DbEnvDescriptor' not in _M_IceGrid.__dict__:
551
+ _M_IceGrid.DbEnvDescriptor = Ice.createTempClass()
552
+ class DbEnvDescriptor(object):
553
+ """
554
+ A Freeze database environment descriptor.
555
+ Members:
556
+ name -- The name of the database environment.
557
+ description -- The description of this database environment.
558
+ dbHome -- The home of the database environment (i.e., the directory where
559
+ the database files will be stored). If empty, the node will
560
+ provide a default database directory, otherwise the directory
561
+ must exist.
562
+ properties -- The configuration properties of the database environment.
563
+ """
564
+ def __init__(self, name='', description='', dbHome='', properties=None):
565
+ self.name = name
566
+ self.description = description
567
+ self.dbHome = dbHome
568
+ self.properties = properties
569
+
570
+ def __hash__(self):
571
+ _h = 0
572
+ _h = 5 * _h + Ice.getHash(self.name)
573
+ _h = 5 * _h + Ice.getHash(self.description)
574
+ _h = 5 * _h + Ice.getHash(self.dbHome)
575
+ if self.properties:
576
+ for _i0 in self.properties:
577
+ _h = 5 * _h + Ice.getHash(_i0)
578
+ return _h % 0x7fffffff
579
+
580
+ def __compare(self, other):
581
+ if other is None:
582
+ return 1
583
+ elif not isinstance(other, _M_IceGrid.DbEnvDescriptor):
584
+ return NotImplemented
585
+ else:
586
+ if self.name is None or other.name is None:
587
+ if self.name != other.name:
588
+ return (-1 if self.name is None else 1)
589
+ else:
590
+ if self.name < other.name:
591
+ return -1
592
+ elif self.name > other.name:
593
+ return 1
594
+ if self.description is None or other.description is None:
595
+ if self.description != other.description:
596
+ return (-1 if self.description is None else 1)
597
+ else:
598
+ if self.description < other.description:
599
+ return -1
600
+ elif self.description > other.description:
601
+ return 1
602
+ if self.dbHome is None or other.dbHome is None:
603
+ if self.dbHome != other.dbHome:
604
+ return (-1 if self.dbHome is None else 1)
605
+ else:
606
+ if self.dbHome < other.dbHome:
607
+ return -1
608
+ elif self.dbHome > other.dbHome:
609
+ return 1
610
+ if self.properties is None or other.properties is None:
611
+ if self.properties != other.properties:
612
+ return (-1 if self.properties is None else 1)
613
+ else:
614
+ if self.properties < other.properties:
615
+ return -1
616
+ elif self.properties > other.properties:
617
+ return 1
618
+ return 0
619
+
620
+ def __lt__(self, other):
621
+ r = self.__compare(other)
622
+ if r is NotImplemented:
623
+ return r
624
+ else:
625
+ return r < 0
626
+
627
+ def __le__(self, other):
628
+ r = self.__compare(other)
629
+ if r is NotImplemented:
630
+ return r
631
+ else:
632
+ return r <= 0
633
+
634
+ def __gt__(self, other):
635
+ r = self.__compare(other)
636
+ if r is NotImplemented:
637
+ return r
638
+ else:
639
+ return r > 0
640
+
641
+ def __ge__(self, other):
642
+ r = self.__compare(other)
643
+ if r is NotImplemented:
644
+ return r
645
+ else:
646
+ return r >= 0
647
+
648
+ def __eq__(self, other):
649
+ r = self.__compare(other)
650
+ if r is NotImplemented:
651
+ return r
652
+ else:
653
+ return r == 0
654
+
655
+ def __ne__(self, other):
656
+ r = self.__compare(other)
657
+ if r is NotImplemented:
658
+ return r
659
+ else:
660
+ return r != 0
661
+
662
+ def __str__(self):
663
+ return IcePy.stringify(self, _M_IceGrid._t_DbEnvDescriptor)
664
+
665
+ __repr__ = __str__
666
+
667
+ _M_IceGrid._t_DbEnvDescriptor = IcePy.defineStruct('::IceGrid::DbEnvDescriptor', DbEnvDescriptor, (), (
668
+ ('name', (), IcePy._t_string),
669
+ ('description', (), IcePy._t_string),
670
+ ('dbHome', (), IcePy._t_string),
671
+ ('properties', (), _M_IceGrid._t_PropertyDescriptorSeq)
672
+ ))
673
+
674
+ _M_IceGrid.DbEnvDescriptor = DbEnvDescriptor
675
+ del DbEnvDescriptor
676
+
677
+ if '_t_DbEnvDescriptorSeq' not in _M_IceGrid.__dict__:
678
+ _M_IceGrid._t_DbEnvDescriptorSeq = IcePy.defineSequence('::IceGrid::DbEnvDescriptorSeq', (), _M_IceGrid._t_DbEnvDescriptor)
679
+
680
+ if 'CommunicatorDescriptor' not in _M_IceGrid.__dict__:
681
+ _M_IceGrid.CommunicatorDescriptor = Ice.createTempClass()
682
+ class CommunicatorDescriptor(Ice.Value):
683
+ """
684
+ A communicator descriptor.
685
+ Members:
686
+ adapters -- The object adapters.
687
+ propertySet -- The property set.
688
+ dbEnvs -- The database environments.
689
+ logs -- The path of each log file.
690
+ description -- A description of this descriptor.
691
+ """
692
+ def __init__(self, adapters=None, propertySet=Ice._struct_marker, dbEnvs=None, logs=None, description=''):
693
+ self.adapters = adapters
694
+ if propertySet is Ice._struct_marker:
695
+ self.propertySet = _M_IceGrid.PropertySetDescriptor()
696
+ else:
697
+ self.propertySet = propertySet
698
+ self.dbEnvs = dbEnvs
699
+ self.logs = logs
700
+ self.description = description
701
+
702
+ def ice_id(self):
703
+ return '::IceGrid::CommunicatorDescriptor'
704
+
705
+ @staticmethod
706
+ def ice_staticId():
707
+ return '::IceGrid::CommunicatorDescriptor'
708
+
709
+ def __str__(self):
710
+ return IcePy.stringify(self, _M_IceGrid._t_CommunicatorDescriptor)
711
+
712
+ __repr__ = __str__
713
+
714
+ _M_IceGrid._t_CommunicatorDescriptor = IcePy.defineValue('::IceGrid::CommunicatorDescriptor', CommunicatorDescriptor, -1, (), False, False, None, (
715
+ ('adapters', (), _M_IceGrid._t_AdapterDescriptorSeq, False, 0),
716
+ ('propertySet', (), _M_IceGrid._t_PropertySetDescriptor, False, 0),
717
+ ('dbEnvs', (), _M_IceGrid._t_DbEnvDescriptorSeq, False, 0),
718
+ ('logs', (), _M_Ice._t_StringSeq, False, 0),
719
+ ('description', (), IcePy._t_string, False, 0)
720
+ ))
721
+ CommunicatorDescriptor._ice_type = _M_IceGrid._t_CommunicatorDescriptor
722
+
723
+ _M_IceGrid.CommunicatorDescriptor = CommunicatorDescriptor
724
+ del CommunicatorDescriptor
725
+
726
+ if 'DistributionDescriptor' not in _M_IceGrid.__dict__:
727
+ _M_IceGrid.DistributionDescriptor = Ice.createTempClass()
728
+ class DistributionDescriptor(object):
729
+ """
730
+ A distribution descriptor defines an IcePatch2 server and the
731
+ directories to retrieve from the patch server.
732
+ Members:
733
+ icepatch -- The proxy of the IcePatch2 server.
734
+ directories -- The source directories.
735
+ """
736
+ def __init__(self, icepatch='', directories=None):
737
+ self.icepatch = icepatch
738
+ self.directories = directories
739
+
740
+ def __hash__(self):
741
+ _h = 0
742
+ _h = 5 * _h + Ice.getHash(self.icepatch)
743
+ if self.directories:
744
+ for _i0 in self.directories:
745
+ _h = 5 * _h + Ice.getHash(_i0)
746
+ return _h % 0x7fffffff
747
+
748
+ def __compare(self, other):
749
+ if other is None:
750
+ return 1
751
+ elif not isinstance(other, _M_IceGrid.DistributionDescriptor):
752
+ return NotImplemented
753
+ else:
754
+ if self.icepatch is None or other.icepatch is None:
755
+ if self.icepatch != other.icepatch:
756
+ return (-1 if self.icepatch is None else 1)
757
+ else:
758
+ if self.icepatch < other.icepatch:
759
+ return -1
760
+ elif self.icepatch > other.icepatch:
761
+ return 1
762
+ if self.directories is None or other.directories is None:
763
+ if self.directories != other.directories:
764
+ return (-1 if self.directories is None else 1)
765
+ else:
766
+ if self.directories < other.directories:
767
+ return -1
768
+ elif self.directories > other.directories:
769
+ return 1
770
+ return 0
771
+
772
+ def __lt__(self, other):
773
+ r = self.__compare(other)
774
+ if r is NotImplemented:
775
+ return r
776
+ else:
777
+ return r < 0
778
+
779
+ def __le__(self, other):
780
+ r = self.__compare(other)
781
+ if r is NotImplemented:
782
+ return r
783
+ else:
784
+ return r <= 0
785
+
786
+ def __gt__(self, other):
787
+ r = self.__compare(other)
788
+ if r is NotImplemented:
789
+ return r
790
+ else:
791
+ return r > 0
792
+
793
+ def __ge__(self, other):
794
+ r = self.__compare(other)
795
+ if r is NotImplemented:
796
+ return r
797
+ else:
798
+ return r >= 0
799
+
800
+ def __eq__(self, other):
801
+ r = self.__compare(other)
802
+ if r is NotImplemented:
803
+ return r
804
+ else:
805
+ return r == 0
806
+
807
+ def __ne__(self, other):
808
+ r = self.__compare(other)
809
+ if r is NotImplemented:
810
+ return r
811
+ else:
812
+ return r != 0
813
+
814
+ def __str__(self):
815
+ return IcePy.stringify(self, _M_IceGrid._t_DistributionDescriptor)
816
+
817
+ __repr__ = __str__
818
+
819
+ _M_IceGrid._t_DistributionDescriptor = IcePy.defineStruct('::IceGrid::DistributionDescriptor', DistributionDescriptor, (), (
820
+ ('icepatch', (), IcePy._t_string),
821
+ ('directories', (), _M_Ice._t_StringSeq)
822
+ ))
823
+
824
+ _M_IceGrid.DistributionDescriptor = DistributionDescriptor
825
+ del DistributionDescriptor
826
+
827
+ if 'ServerDescriptor' not in _M_IceGrid.__dict__:
828
+ _M_IceGrid.ServerDescriptor = Ice.createTempClass()
829
+ class ServerDescriptor(_M_IceGrid.CommunicatorDescriptor):
830
+ """
831
+ An Ice server descriptor.
832
+ Members:
833
+ id -- The server id.
834
+ exe -- The path of the server executable.
835
+ iceVersion -- The Ice version used by this server. This is only required if
836
+ backward compatibility with servers using old Ice versions is
837
+ needed (otherwise the registry will assume the server is using
838
+ the same Ice version).
839
+ For example "3.1.1", "3.2", "3.3.0".
840
+ pwd -- The path to the server working directory.
841
+ options -- The command line options to pass to the server executable.
842
+ envs -- The server environment variables.
843
+ activation -- The server activation mode (possible values are "on-demand" or
844
+ "manual").
845
+ activationTimeout -- The activation timeout (an integer value representing the
846
+ number of seconds to wait for activation).
847
+ deactivationTimeout -- The deactivation timeout (an integer value representing the
848
+ number of seconds to wait for deactivation).
849
+ applicationDistrib -- Specifies if the server depends on the application
850
+ distribution.
851
+ distrib -- The distribution descriptor.
852
+ allocatable -- Specifies if the server is allocatable.
853
+ user -- The user account used to run the server.
854
+ """
855
+ def __init__(self, adapters=None, propertySet=Ice._struct_marker, dbEnvs=None, logs=None, description='', id='', exe='', iceVersion='', pwd='', options=None, envs=None, activation='', activationTimeout='', deactivationTimeout='', applicationDistrib=False, distrib=Ice._struct_marker, allocatable=False, user=''):
856
+ _M_IceGrid.CommunicatorDescriptor.__init__(self, adapters, propertySet, dbEnvs, logs, description)
857
+ self.id = id
858
+ self.exe = exe
859
+ self.iceVersion = iceVersion
860
+ self.pwd = pwd
861
+ self.options = options
862
+ self.envs = envs
863
+ self.activation = activation
864
+ self.activationTimeout = activationTimeout
865
+ self.deactivationTimeout = deactivationTimeout
866
+ self.applicationDistrib = applicationDistrib
867
+ if distrib is Ice._struct_marker:
868
+ self.distrib = _M_IceGrid.DistributionDescriptor()
869
+ else:
870
+ self.distrib = distrib
871
+ self.allocatable = allocatable
872
+ self.user = user
873
+
874
+ def ice_id(self):
875
+ return '::IceGrid::ServerDescriptor'
876
+
877
+ @staticmethod
878
+ def ice_staticId():
879
+ return '::IceGrid::ServerDescriptor'
880
+
881
+ def __str__(self):
882
+ return IcePy.stringify(self, _M_IceGrid._t_ServerDescriptor)
883
+
884
+ __repr__ = __str__
885
+
886
+ _M_IceGrid._t_ServerDescriptor = IcePy.defineValue('::IceGrid::ServerDescriptor', ServerDescriptor, -1, (), False, False, _M_IceGrid._t_CommunicatorDescriptor, (
887
+ ('id', (), IcePy._t_string, False, 0),
888
+ ('exe', (), IcePy._t_string, False, 0),
889
+ ('iceVersion', (), IcePy._t_string, False, 0),
890
+ ('pwd', (), IcePy._t_string, False, 0),
891
+ ('options', (), _M_Ice._t_StringSeq, False, 0),
892
+ ('envs', (), _M_Ice._t_StringSeq, False, 0),
893
+ ('activation', (), IcePy._t_string, False, 0),
894
+ ('activationTimeout', (), IcePy._t_string, False, 0),
895
+ ('deactivationTimeout', (), IcePy._t_string, False, 0),
896
+ ('applicationDistrib', (), IcePy._t_bool, False, 0),
897
+ ('distrib', (), _M_IceGrid._t_DistributionDescriptor, False, 0),
898
+ ('allocatable', (), IcePy._t_bool, False, 0),
899
+ ('user', (), IcePy._t_string, False, 0)
900
+ ))
901
+ ServerDescriptor._ice_type = _M_IceGrid._t_ServerDescriptor
902
+
903
+ _M_IceGrid.ServerDescriptor = ServerDescriptor
904
+ del ServerDescriptor
905
+
906
+ if '_t_ServerDescriptorSeq' not in _M_IceGrid.__dict__:
907
+ _M_IceGrid._t_ServerDescriptorSeq = IcePy.defineSequence('::IceGrid::ServerDescriptorSeq', (), _M_IceGrid._t_ServerDescriptor)
908
+
909
+ if 'ServiceDescriptor' not in _M_IceGrid.__dict__:
910
+ _M_IceGrid.ServiceDescriptor = Ice.createTempClass()
911
+ class ServiceDescriptor(_M_IceGrid.CommunicatorDescriptor):
912
+ """
913
+ An IceBox service descriptor.
914
+ Members:
915
+ name -- The service name.
916
+ entry -- The entry point of the IceBox service.
917
+ """
918
+ def __init__(self, adapters=None, propertySet=Ice._struct_marker, dbEnvs=None, logs=None, description='', name='', entry=''):
919
+ _M_IceGrid.CommunicatorDescriptor.__init__(self, adapters, propertySet, dbEnvs, logs, description)
920
+ self.name = name
921
+ self.entry = entry
922
+
923
+ def ice_id(self):
924
+ return '::IceGrid::ServiceDescriptor'
925
+
926
+ @staticmethod
927
+ def ice_staticId():
928
+ return '::IceGrid::ServiceDescriptor'
929
+
930
+ def __str__(self):
931
+ return IcePy.stringify(self, _M_IceGrid._t_ServiceDescriptor)
932
+
933
+ __repr__ = __str__
934
+
935
+ _M_IceGrid._t_ServiceDescriptor = IcePy.defineValue('::IceGrid::ServiceDescriptor', ServiceDescriptor, -1, (), False, False, _M_IceGrid._t_CommunicatorDescriptor, (
936
+ ('name', (), IcePy._t_string, False, 0),
937
+ ('entry', (), IcePy._t_string, False, 0)
938
+ ))
939
+ ServiceDescriptor._ice_type = _M_IceGrid._t_ServiceDescriptor
940
+
941
+ _M_IceGrid.ServiceDescriptor = ServiceDescriptor
942
+ del ServiceDescriptor
943
+
944
+ if '_t_ServiceDescriptorSeq' not in _M_IceGrid.__dict__:
945
+ _M_IceGrid._t_ServiceDescriptorSeq = IcePy.defineSequence('::IceGrid::ServiceDescriptorSeq', (), _M_IceGrid._t_ServiceDescriptor)
946
+
947
+ if 'ServerInstanceDescriptor' not in _M_IceGrid.__dict__:
948
+ _M_IceGrid.ServerInstanceDescriptor = Ice.createTempClass()
949
+ class ServerInstanceDescriptor(object):
950
+ """
951
+ A server template instance descriptor.
952
+ Members:
953
+ template -- The template used by this instance.
954
+ parameterValues -- The template parameter values.
955
+ propertySet -- The property set.
956
+ servicePropertySets -- The services property sets. It's only valid to set these
957
+ property sets if the template is an IceBox server template.
958
+ """
959
+ def __init__(self, template='', parameterValues=None, propertySet=Ice._struct_marker, servicePropertySets=None):
960
+ self.template = template
961
+ self.parameterValues = parameterValues
962
+ if propertySet is Ice._struct_marker:
963
+ self.propertySet = _M_IceGrid.PropertySetDescriptor()
964
+ else:
965
+ self.propertySet = propertySet
966
+ self.servicePropertySets = servicePropertySets
967
+
968
+ def __eq__(self, other):
969
+ if other is None:
970
+ return False
971
+ elif not isinstance(other, _M_IceGrid.ServerInstanceDescriptor):
972
+ return NotImplemented
973
+ else:
974
+ if self.template != other.template:
975
+ return False
976
+ if self.parameterValues != other.parameterValues:
977
+ return False
978
+ if self.propertySet != other.propertySet:
979
+ return False
980
+ if self.servicePropertySets != other.servicePropertySets:
981
+ return False
982
+ return True
983
+
984
+ def __ne__(self, other):
985
+ return not self.__eq__(other)
986
+
987
+ def __str__(self):
988
+ return IcePy.stringify(self, _M_IceGrid._t_ServerInstanceDescriptor)
989
+
990
+ __repr__ = __str__
991
+
992
+ _M_IceGrid._t_ServerInstanceDescriptor = IcePy.defineStruct('::IceGrid::ServerInstanceDescriptor', ServerInstanceDescriptor, (), (
993
+ ('template', (), IcePy._t_string),
994
+ ('parameterValues', (), _M_IceGrid._t_StringStringDict),
995
+ ('propertySet', (), _M_IceGrid._t_PropertySetDescriptor),
996
+ ('servicePropertySets', (), _M_IceGrid._t_PropertySetDescriptorDict)
997
+ ))
998
+
999
+ _M_IceGrid.ServerInstanceDescriptor = ServerInstanceDescriptor
1000
+ del ServerInstanceDescriptor
1001
+
1002
+ if '_t_ServerInstanceDescriptorSeq' not in _M_IceGrid.__dict__:
1003
+ _M_IceGrid._t_ServerInstanceDescriptorSeq = IcePy.defineSequence('::IceGrid::ServerInstanceDescriptorSeq', (), _M_IceGrid._t_ServerInstanceDescriptor)
1004
+
1005
+ if 'TemplateDescriptor' not in _M_IceGrid.__dict__:
1006
+ _M_IceGrid.TemplateDescriptor = Ice.createTempClass()
1007
+ class TemplateDescriptor(object):
1008
+ """
1009
+ A template descriptor for server or service templates.
1010
+ Members:
1011
+ descriptor -- The template.
1012
+ parameters -- The parameters required to instantiate the template.
1013
+ parameterDefaults -- The parameters default values.
1014
+ """
1015
+ def __init__(self, descriptor=None, parameters=None, parameterDefaults=None):
1016
+ self.descriptor = descriptor
1017
+ self.parameters = parameters
1018
+ self.parameterDefaults = parameterDefaults
1019
+
1020
+ def __eq__(self, other):
1021
+ if other is None:
1022
+ return False
1023
+ elif not isinstance(other, _M_IceGrid.TemplateDescriptor):
1024
+ return NotImplemented
1025
+ else:
1026
+ if self.descriptor != other.descriptor:
1027
+ return False
1028
+ if self.parameters != other.parameters:
1029
+ return False
1030
+ if self.parameterDefaults != other.parameterDefaults:
1031
+ return False
1032
+ return True
1033
+
1034
+ def __ne__(self, other):
1035
+ return not self.__eq__(other)
1036
+
1037
+ def __str__(self):
1038
+ return IcePy.stringify(self, _M_IceGrid._t_TemplateDescriptor)
1039
+
1040
+ __repr__ = __str__
1041
+
1042
+ _M_IceGrid._t_TemplateDescriptor = IcePy.defineStruct('::IceGrid::TemplateDescriptor', TemplateDescriptor, (), (
1043
+ ('descriptor', (), _M_IceGrid._t_CommunicatorDescriptor),
1044
+ ('parameters', (), _M_Ice._t_StringSeq),
1045
+ ('parameterDefaults', (), _M_IceGrid._t_StringStringDict)
1046
+ ))
1047
+
1048
+ _M_IceGrid.TemplateDescriptor = TemplateDescriptor
1049
+ del TemplateDescriptor
1050
+
1051
+ if '_t_TemplateDescriptorDict' not in _M_IceGrid.__dict__:
1052
+ _M_IceGrid._t_TemplateDescriptorDict = IcePy.defineDictionary('::IceGrid::TemplateDescriptorDict', (), IcePy._t_string, _M_IceGrid._t_TemplateDescriptor)
1053
+
1054
+ if 'ServiceInstanceDescriptor' not in _M_IceGrid.__dict__:
1055
+ _M_IceGrid.ServiceInstanceDescriptor = Ice.createTempClass()
1056
+ class ServiceInstanceDescriptor(object):
1057
+ """
1058
+ A service template instance descriptor.
1059
+ Members:
1060
+ template -- The template used by this instance.
1061
+ parameterValues -- The template parameter values.
1062
+ descriptor -- The service definition if the instance isn't a template
1063
+ instance (i.e.: if the template attribute is empty).
1064
+ propertySet -- The property set.
1065
+ """
1066
+ def __init__(self, template='', parameterValues=None, descriptor=None, propertySet=Ice._struct_marker):
1067
+ self.template = template
1068
+ self.parameterValues = parameterValues
1069
+ self.descriptor = descriptor
1070
+ if propertySet is Ice._struct_marker:
1071
+ self.propertySet = _M_IceGrid.PropertySetDescriptor()
1072
+ else:
1073
+ self.propertySet = propertySet
1074
+
1075
+ def __eq__(self, other):
1076
+ if other is None:
1077
+ return False
1078
+ elif not isinstance(other, _M_IceGrid.ServiceInstanceDescriptor):
1079
+ return NotImplemented
1080
+ else:
1081
+ if self.template != other.template:
1082
+ return False
1083
+ if self.parameterValues != other.parameterValues:
1084
+ return False
1085
+ if self.descriptor != other.descriptor:
1086
+ return False
1087
+ if self.propertySet != other.propertySet:
1088
+ return False
1089
+ return True
1090
+
1091
+ def __ne__(self, other):
1092
+ return not self.__eq__(other)
1093
+
1094
+ def __str__(self):
1095
+ return IcePy.stringify(self, _M_IceGrid._t_ServiceInstanceDescriptor)
1096
+
1097
+ __repr__ = __str__
1098
+
1099
+ _M_IceGrid._t_ServiceInstanceDescriptor = IcePy.defineStruct('::IceGrid::ServiceInstanceDescriptor', ServiceInstanceDescriptor, (), (
1100
+ ('template', (), IcePy._t_string),
1101
+ ('parameterValues', (), _M_IceGrid._t_StringStringDict),
1102
+ ('descriptor', (), _M_IceGrid._t_ServiceDescriptor),
1103
+ ('propertySet', (), _M_IceGrid._t_PropertySetDescriptor)
1104
+ ))
1105
+
1106
+ _M_IceGrid.ServiceInstanceDescriptor = ServiceInstanceDescriptor
1107
+ del ServiceInstanceDescriptor
1108
+
1109
+ if '_t_ServiceInstanceDescriptorSeq' not in _M_IceGrid.__dict__:
1110
+ _M_IceGrid._t_ServiceInstanceDescriptorSeq = IcePy.defineSequence('::IceGrid::ServiceInstanceDescriptorSeq', (), _M_IceGrid._t_ServiceInstanceDescriptor)
1111
+
1112
+ if 'IceBoxDescriptor' not in _M_IceGrid.__dict__:
1113
+ _M_IceGrid.IceBoxDescriptor = Ice.createTempClass()
1114
+ class IceBoxDescriptor(_M_IceGrid.ServerDescriptor):
1115
+ """
1116
+ An IceBox server descriptor.
1117
+ Members:
1118
+ services -- The service instances.
1119
+ """
1120
+ def __init__(self, adapters=None, propertySet=Ice._struct_marker, dbEnvs=None, logs=None, description='', id='', exe='', iceVersion='', pwd='', options=None, envs=None, activation='', activationTimeout='', deactivationTimeout='', applicationDistrib=False, distrib=Ice._struct_marker, allocatable=False, user='', services=None):
1121
+ _M_IceGrid.ServerDescriptor.__init__(self, adapters, propertySet, dbEnvs, logs, description, id, exe, iceVersion, pwd, options, envs, activation, activationTimeout, deactivationTimeout, applicationDistrib, distrib, allocatable, user)
1122
+ self.services = services
1123
+
1124
+ def ice_id(self):
1125
+ return '::IceGrid::IceBoxDescriptor'
1126
+
1127
+ @staticmethod
1128
+ def ice_staticId():
1129
+ return '::IceGrid::IceBoxDescriptor'
1130
+
1131
+ def __str__(self):
1132
+ return IcePy.stringify(self, _M_IceGrid._t_IceBoxDescriptor)
1133
+
1134
+ __repr__ = __str__
1135
+
1136
+ _M_IceGrid._t_IceBoxDescriptor = IcePy.declareValue('::IceGrid::IceBoxDescriptor')
1137
+
1138
+ _M_IceGrid._t_IceBoxDescriptor = IcePy.defineValue('::IceGrid::IceBoxDescriptor', IceBoxDescriptor, -1, (), False, False, _M_IceGrid._t_ServerDescriptor, (('services', (), _M_IceGrid._t_ServiceInstanceDescriptorSeq, False, 0),))
1139
+ IceBoxDescriptor._ice_type = _M_IceGrid._t_IceBoxDescriptor
1140
+
1141
+ _M_IceGrid.IceBoxDescriptor = IceBoxDescriptor
1142
+ del IceBoxDescriptor
1143
+
1144
+ if 'NodeDescriptor' not in _M_IceGrid.__dict__:
1145
+ _M_IceGrid.NodeDescriptor = Ice.createTempClass()
1146
+ class NodeDescriptor(object):
1147
+ """
1148
+ A node descriptor.
1149
+ Members:
1150
+ variables -- The variables defined for the node.
1151
+ serverInstances -- The server instances.
1152
+ servers -- Servers (which are not template instances).
1153
+ loadFactor -- Load factor of the node.
1154
+ description -- The description of this node.
1155
+ propertySets -- Property set descriptors.
1156
+ """
1157
+ def __init__(self, variables=None, serverInstances=None, servers=None, loadFactor='', description='', propertySets=None):
1158
+ self.variables = variables
1159
+ self.serverInstances = serverInstances
1160
+ self.servers = servers
1161
+ self.loadFactor = loadFactor
1162
+ self.description = description
1163
+ self.propertySets = propertySets
1164
+
1165
+ def __eq__(self, other):
1166
+ if other is None:
1167
+ return False
1168
+ elif not isinstance(other, _M_IceGrid.NodeDescriptor):
1169
+ return NotImplemented
1170
+ else:
1171
+ if self.variables != other.variables:
1172
+ return False
1173
+ if self.serverInstances != other.serverInstances:
1174
+ return False
1175
+ if self.servers != other.servers:
1176
+ return False
1177
+ if self.loadFactor != other.loadFactor:
1178
+ return False
1179
+ if self.description != other.description:
1180
+ return False
1181
+ if self.propertySets != other.propertySets:
1182
+ return False
1183
+ return True
1184
+
1185
+ def __ne__(self, other):
1186
+ return not self.__eq__(other)
1187
+
1188
+ def __str__(self):
1189
+ return IcePy.stringify(self, _M_IceGrid._t_NodeDescriptor)
1190
+
1191
+ __repr__ = __str__
1192
+
1193
+ _M_IceGrid._t_NodeDescriptor = IcePy.defineStruct('::IceGrid::NodeDescriptor', NodeDescriptor, (), (
1194
+ ('variables', (), _M_IceGrid._t_StringStringDict),
1195
+ ('serverInstances', (), _M_IceGrid._t_ServerInstanceDescriptorSeq),
1196
+ ('servers', (), _M_IceGrid._t_ServerDescriptorSeq),
1197
+ ('loadFactor', (), IcePy._t_string),
1198
+ ('description', (), IcePy._t_string),
1199
+ ('propertySets', (), _M_IceGrid._t_PropertySetDescriptorDict)
1200
+ ))
1201
+
1202
+ _M_IceGrid.NodeDescriptor = NodeDescriptor
1203
+ del NodeDescriptor
1204
+
1205
+ if '_t_NodeDescriptorDict' not in _M_IceGrid.__dict__:
1206
+ _M_IceGrid._t_NodeDescriptorDict = IcePy.defineDictionary('::IceGrid::NodeDescriptorDict', (), IcePy._t_string, _M_IceGrid._t_NodeDescriptor)
1207
+
1208
+ if 'LoadBalancingPolicy' not in _M_IceGrid.__dict__:
1209
+ _M_IceGrid.LoadBalancingPolicy = Ice.createTempClass()
1210
+ class LoadBalancingPolicy(Ice.Value):
1211
+ """
1212
+ A base class for load balancing policies.
1213
+ Members:
1214
+ nReplicas -- The number of replicas that will be used to gather the
1215
+ endpoints of a replica group.
1216
+ """
1217
+ def __init__(self, nReplicas=''):
1218
+ self.nReplicas = nReplicas
1219
+
1220
+ def ice_id(self):
1221
+ return '::IceGrid::LoadBalancingPolicy'
1222
+
1223
+ @staticmethod
1224
+ def ice_staticId():
1225
+ return '::IceGrid::LoadBalancingPolicy'
1226
+
1227
+ def __str__(self):
1228
+ return IcePy.stringify(self, _M_IceGrid._t_LoadBalancingPolicy)
1229
+
1230
+ __repr__ = __str__
1231
+
1232
+ _M_IceGrid._t_LoadBalancingPolicy = IcePy.defineValue('::IceGrid::LoadBalancingPolicy', LoadBalancingPolicy, -1, (), False, False, None, (('nReplicas', (), IcePy._t_string, False, 0),))
1233
+ LoadBalancingPolicy._ice_type = _M_IceGrid._t_LoadBalancingPolicy
1234
+
1235
+ _M_IceGrid.LoadBalancingPolicy = LoadBalancingPolicy
1236
+ del LoadBalancingPolicy
1237
+
1238
+ if 'RandomLoadBalancingPolicy' not in _M_IceGrid.__dict__:
1239
+ _M_IceGrid.RandomLoadBalancingPolicy = Ice.createTempClass()
1240
+ class RandomLoadBalancingPolicy(_M_IceGrid.LoadBalancingPolicy):
1241
+ """
1242
+ Random load balancing policy.
1243
+ """
1244
+ def __init__(self, nReplicas=''):
1245
+ _M_IceGrid.LoadBalancingPolicy.__init__(self, nReplicas)
1246
+
1247
+ def ice_id(self):
1248
+ return '::IceGrid::RandomLoadBalancingPolicy'
1249
+
1250
+ @staticmethod
1251
+ def ice_staticId():
1252
+ return '::IceGrid::RandomLoadBalancingPolicy'
1253
+
1254
+ def __str__(self):
1255
+ return IcePy.stringify(self, _M_IceGrid._t_RandomLoadBalancingPolicy)
1256
+
1257
+ __repr__ = __str__
1258
+
1259
+ _M_IceGrid._t_RandomLoadBalancingPolicy = IcePy.defineValue('::IceGrid::RandomLoadBalancingPolicy', RandomLoadBalancingPolicy, -1, (), False, False, _M_IceGrid._t_LoadBalancingPolicy, ())
1260
+ RandomLoadBalancingPolicy._ice_type = _M_IceGrid._t_RandomLoadBalancingPolicy
1261
+
1262
+ _M_IceGrid.RandomLoadBalancingPolicy = RandomLoadBalancingPolicy
1263
+ del RandomLoadBalancingPolicy
1264
+
1265
+ if 'OrderedLoadBalancingPolicy' not in _M_IceGrid.__dict__:
1266
+ _M_IceGrid.OrderedLoadBalancingPolicy = Ice.createTempClass()
1267
+ class OrderedLoadBalancingPolicy(_M_IceGrid.LoadBalancingPolicy):
1268
+ """
1269
+ Ordered load balancing policy.
1270
+ """
1271
+ def __init__(self, nReplicas=''):
1272
+ _M_IceGrid.LoadBalancingPolicy.__init__(self, nReplicas)
1273
+
1274
+ def ice_id(self):
1275
+ return '::IceGrid::OrderedLoadBalancingPolicy'
1276
+
1277
+ @staticmethod
1278
+ def ice_staticId():
1279
+ return '::IceGrid::OrderedLoadBalancingPolicy'
1280
+
1281
+ def __str__(self):
1282
+ return IcePy.stringify(self, _M_IceGrid._t_OrderedLoadBalancingPolicy)
1283
+
1284
+ __repr__ = __str__
1285
+
1286
+ _M_IceGrid._t_OrderedLoadBalancingPolicy = IcePy.defineValue('::IceGrid::OrderedLoadBalancingPolicy', OrderedLoadBalancingPolicy, -1, (), False, False, _M_IceGrid._t_LoadBalancingPolicy, ())
1287
+ OrderedLoadBalancingPolicy._ice_type = _M_IceGrid._t_OrderedLoadBalancingPolicy
1288
+
1289
+ _M_IceGrid.OrderedLoadBalancingPolicy = OrderedLoadBalancingPolicy
1290
+ del OrderedLoadBalancingPolicy
1291
+
1292
+ if 'RoundRobinLoadBalancingPolicy' not in _M_IceGrid.__dict__:
1293
+ _M_IceGrid.RoundRobinLoadBalancingPolicy = Ice.createTempClass()
1294
+ class RoundRobinLoadBalancingPolicy(_M_IceGrid.LoadBalancingPolicy):
1295
+ """
1296
+ Round robin load balancing policy.
1297
+ """
1298
+ def __init__(self, nReplicas=''):
1299
+ _M_IceGrid.LoadBalancingPolicy.__init__(self, nReplicas)
1300
+
1301
+ def ice_id(self):
1302
+ return '::IceGrid::RoundRobinLoadBalancingPolicy'
1303
+
1304
+ @staticmethod
1305
+ def ice_staticId():
1306
+ return '::IceGrid::RoundRobinLoadBalancingPolicy'
1307
+
1308
+ def __str__(self):
1309
+ return IcePy.stringify(self, _M_IceGrid._t_RoundRobinLoadBalancingPolicy)
1310
+
1311
+ __repr__ = __str__
1312
+
1313
+ _M_IceGrid._t_RoundRobinLoadBalancingPolicy = IcePy.defineValue('::IceGrid::RoundRobinLoadBalancingPolicy', RoundRobinLoadBalancingPolicy, -1, (), False, False, _M_IceGrid._t_LoadBalancingPolicy, ())
1314
+ RoundRobinLoadBalancingPolicy._ice_type = _M_IceGrid._t_RoundRobinLoadBalancingPolicy
1315
+
1316
+ _M_IceGrid.RoundRobinLoadBalancingPolicy = RoundRobinLoadBalancingPolicy
1317
+ del RoundRobinLoadBalancingPolicy
1318
+
1319
+ if 'AdaptiveLoadBalancingPolicy' not in _M_IceGrid.__dict__:
1320
+ _M_IceGrid.AdaptiveLoadBalancingPolicy = Ice.createTempClass()
1321
+ class AdaptiveLoadBalancingPolicy(_M_IceGrid.LoadBalancingPolicy):
1322
+ """
1323
+ Adaptive load balancing policy.
1324
+ Members:
1325
+ loadSample -- The load sample to use for the load balancing. The allowed
1326
+ values for this attribute are "1", "5" and "15", representing
1327
+ respectively the load average over the past minute, the past 5
1328
+ minutes and the past 15 minutes.
1329
+ """
1330
+ def __init__(self, nReplicas='', loadSample=''):
1331
+ _M_IceGrid.LoadBalancingPolicy.__init__(self, nReplicas)
1332
+ self.loadSample = loadSample
1333
+
1334
+ def ice_id(self):
1335
+ return '::IceGrid::AdaptiveLoadBalancingPolicy'
1336
+
1337
+ @staticmethod
1338
+ def ice_staticId():
1339
+ return '::IceGrid::AdaptiveLoadBalancingPolicy'
1340
+
1341
+ def __str__(self):
1342
+ return IcePy.stringify(self, _M_IceGrid._t_AdaptiveLoadBalancingPolicy)
1343
+
1344
+ __repr__ = __str__
1345
+
1346
+ _M_IceGrid._t_AdaptiveLoadBalancingPolicy = IcePy.defineValue('::IceGrid::AdaptiveLoadBalancingPolicy', AdaptiveLoadBalancingPolicy, -1, (), False, False, _M_IceGrid._t_LoadBalancingPolicy, (('loadSample', (), IcePy._t_string, False, 0),))
1347
+ AdaptiveLoadBalancingPolicy._ice_type = _M_IceGrid._t_AdaptiveLoadBalancingPolicy
1348
+
1349
+ _M_IceGrid.AdaptiveLoadBalancingPolicy = AdaptiveLoadBalancingPolicy
1350
+ del AdaptiveLoadBalancingPolicy
1351
+
1352
+ if 'ReplicaGroupDescriptor' not in _M_IceGrid.__dict__:
1353
+ _M_IceGrid.ReplicaGroupDescriptor = Ice.createTempClass()
1354
+ class ReplicaGroupDescriptor(object):
1355
+ """
1356
+ A replica group descriptor.
1357
+ Members:
1358
+ id -- The id of the replica group.
1359
+ loadBalancing -- The load balancing policy.
1360
+ proxyOptions -- Default options for proxies created for the replica group.
1361
+ objects -- The object descriptors associated with this object adapter.
1362
+ description -- The description of this replica group.
1363
+ filter -- The filter to use for this replica group.
1364
+ """
1365
+ def __init__(self, id='', loadBalancing=None, proxyOptions='', objects=None, description='', filter=''):
1366
+ self.id = id
1367
+ self.loadBalancing = loadBalancing
1368
+ self.proxyOptions = proxyOptions
1369
+ self.objects = objects
1370
+ self.description = description
1371
+ self.filter = filter
1372
+
1373
+ def __eq__(self, other):
1374
+ if other is None:
1375
+ return False
1376
+ elif not isinstance(other, _M_IceGrid.ReplicaGroupDescriptor):
1377
+ return NotImplemented
1378
+ else:
1379
+ if self.id != other.id:
1380
+ return False
1381
+ if self.loadBalancing != other.loadBalancing:
1382
+ return False
1383
+ if self.proxyOptions != other.proxyOptions:
1384
+ return False
1385
+ if self.objects != other.objects:
1386
+ return False
1387
+ if self.description != other.description:
1388
+ return False
1389
+ if self.filter != other.filter:
1390
+ return False
1391
+ return True
1392
+
1393
+ def __ne__(self, other):
1394
+ return not self.__eq__(other)
1395
+
1396
+ def __str__(self):
1397
+ return IcePy.stringify(self, _M_IceGrid._t_ReplicaGroupDescriptor)
1398
+
1399
+ __repr__ = __str__
1400
+
1401
+ _M_IceGrid._t_ReplicaGroupDescriptor = IcePy.defineStruct('::IceGrid::ReplicaGroupDescriptor', ReplicaGroupDescriptor, (), (
1402
+ ('id', (), IcePy._t_string),
1403
+ ('loadBalancing', (), _M_IceGrid._t_LoadBalancingPolicy),
1404
+ ('proxyOptions', (), IcePy._t_string),
1405
+ ('objects', (), _M_IceGrid._t_ObjectDescriptorSeq),
1406
+ ('description', (), IcePy._t_string),
1407
+ ('filter', (), IcePy._t_string)
1408
+ ))
1409
+
1410
+ _M_IceGrid.ReplicaGroupDescriptor = ReplicaGroupDescriptor
1411
+ del ReplicaGroupDescriptor
1412
+
1413
+ if '_t_ReplicaGroupDescriptorSeq' not in _M_IceGrid.__dict__:
1414
+ _M_IceGrid._t_ReplicaGroupDescriptorSeq = IcePy.defineSequence('::IceGrid::ReplicaGroupDescriptorSeq', (), _M_IceGrid._t_ReplicaGroupDescriptor)
1415
+
1416
+ if 'ApplicationDescriptor' not in _M_IceGrid.__dict__:
1417
+ _M_IceGrid.ApplicationDescriptor = Ice.createTempClass()
1418
+ class ApplicationDescriptor(object):
1419
+ """
1420
+ An application descriptor.
1421
+ Members:
1422
+ name -- The application name.
1423
+ variables -- The variables defined in the application descriptor.
1424
+ replicaGroups -- The replica groups.
1425
+ serverTemplates -- The server templates.
1426
+ serviceTemplates -- The service templates.
1427
+ nodes -- The application nodes.
1428
+ distrib -- The application distribution.
1429
+ description -- The description of this application.
1430
+ propertySets -- Property set descriptors.
1431
+ """
1432
+ def __init__(self, name='', variables=None, replicaGroups=None, serverTemplates=None, serviceTemplates=None, nodes=None, distrib=Ice._struct_marker, description='', propertySets=None):
1433
+ self.name = name
1434
+ self.variables = variables
1435
+ self.replicaGroups = replicaGroups
1436
+ self.serverTemplates = serverTemplates
1437
+ self.serviceTemplates = serviceTemplates
1438
+ self.nodes = nodes
1439
+ if distrib is Ice._struct_marker:
1440
+ self.distrib = _M_IceGrid.DistributionDescriptor()
1441
+ else:
1442
+ self.distrib = distrib
1443
+ self.description = description
1444
+ self.propertySets = propertySets
1445
+
1446
+ def __eq__(self, other):
1447
+ if other is None:
1448
+ return False
1449
+ elif not isinstance(other, _M_IceGrid.ApplicationDescriptor):
1450
+ return NotImplemented
1451
+ else:
1452
+ if self.name != other.name:
1453
+ return False
1454
+ if self.variables != other.variables:
1455
+ return False
1456
+ if self.replicaGroups != other.replicaGroups:
1457
+ return False
1458
+ if self.serverTemplates != other.serverTemplates:
1459
+ return False
1460
+ if self.serviceTemplates != other.serviceTemplates:
1461
+ return False
1462
+ if self.nodes != other.nodes:
1463
+ return False
1464
+ if self.distrib != other.distrib:
1465
+ return False
1466
+ if self.description != other.description:
1467
+ return False
1468
+ if self.propertySets != other.propertySets:
1469
+ return False
1470
+ return True
1471
+
1472
+ def __ne__(self, other):
1473
+ return not self.__eq__(other)
1474
+
1475
+ def __str__(self):
1476
+ return IcePy.stringify(self, _M_IceGrid._t_ApplicationDescriptor)
1477
+
1478
+ __repr__ = __str__
1479
+
1480
+ _M_IceGrid._t_ApplicationDescriptor = IcePy.defineStruct('::IceGrid::ApplicationDescriptor', ApplicationDescriptor, (), (
1481
+ ('name', (), IcePy._t_string),
1482
+ ('variables', (), _M_IceGrid._t_StringStringDict),
1483
+ ('replicaGroups', (), _M_IceGrid._t_ReplicaGroupDescriptorSeq),
1484
+ ('serverTemplates', (), _M_IceGrid._t_TemplateDescriptorDict),
1485
+ ('serviceTemplates', (), _M_IceGrid._t_TemplateDescriptorDict),
1486
+ ('nodes', (), _M_IceGrid._t_NodeDescriptorDict),
1487
+ ('distrib', (), _M_IceGrid._t_DistributionDescriptor),
1488
+ ('description', (), IcePy._t_string),
1489
+ ('propertySets', (), _M_IceGrid._t_PropertySetDescriptorDict)
1490
+ ))
1491
+
1492
+ _M_IceGrid.ApplicationDescriptor = ApplicationDescriptor
1493
+ del ApplicationDescriptor
1494
+
1495
+ if '_t_ApplicationDescriptorSeq' not in _M_IceGrid.__dict__:
1496
+ _M_IceGrid._t_ApplicationDescriptorSeq = IcePy.defineSequence('::IceGrid::ApplicationDescriptorSeq', (), _M_IceGrid._t_ApplicationDescriptor)
1497
+
1498
+ if 'BoxedString' not in _M_IceGrid.__dict__:
1499
+ _M_IceGrid.BoxedString = Ice.createTempClass()
1500
+ class BoxedString(Ice.Value):
1501
+ """
1502
+ A "boxed" string.
1503
+ Members:
1504
+ value -- The value of the boxed string.
1505
+ """
1506
+ def __init__(self, value=''):
1507
+ self.value = value
1508
+
1509
+ def ice_id(self):
1510
+ return '::IceGrid::BoxedString'
1511
+
1512
+ @staticmethod
1513
+ def ice_staticId():
1514
+ return '::IceGrid::BoxedString'
1515
+
1516
+ def __str__(self):
1517
+ return IcePy.stringify(self, _M_IceGrid._t_BoxedString)
1518
+
1519
+ __repr__ = __str__
1520
+
1521
+ _M_IceGrid._t_BoxedString = IcePy.defineValue('::IceGrid::BoxedString', BoxedString, -1, (), False, False, None, (('value', (), IcePy._t_string, False, 0),))
1522
+ BoxedString._ice_type = _M_IceGrid._t_BoxedString
1523
+
1524
+ _M_IceGrid.BoxedString = BoxedString
1525
+ del BoxedString
1526
+
1527
+ if 'NodeUpdateDescriptor' not in _M_IceGrid.__dict__:
1528
+ _M_IceGrid.NodeUpdateDescriptor = Ice.createTempClass()
1529
+ class NodeUpdateDescriptor(object):
1530
+ """
1531
+ A node update descriptor to describe the updates to apply to a
1532
+ node of a deployed application.
1533
+ Members:
1534
+ name -- The name of the node to update.
1535
+ description -- The updated description (or null if the description wasn't
1536
+ updated.)
1537
+ variables -- The variables to update.
1538
+ removeVariables -- The variables to remove.
1539
+ propertySets -- The property sets to update.
1540
+ removePropertySets -- The property sets to remove.
1541
+ serverInstances -- The server instances to update.
1542
+ servers -- The servers which are not template instances to update.
1543
+ removeServers -- The ids of the servers to remove.
1544
+ loadFactor -- The updated load factor of the node (or null if the load factor
1545
+ was not updated).
1546
+ """
1547
+ def __init__(self, name='', description=None, variables=None, removeVariables=None, propertySets=None, removePropertySets=None, serverInstances=None, servers=None, removeServers=None, loadFactor=None):
1548
+ self.name = name
1549
+ self.description = description
1550
+ self.variables = variables
1551
+ self.removeVariables = removeVariables
1552
+ self.propertySets = propertySets
1553
+ self.removePropertySets = removePropertySets
1554
+ self.serverInstances = serverInstances
1555
+ self.servers = servers
1556
+ self.removeServers = removeServers
1557
+ self.loadFactor = loadFactor
1558
+
1559
+ def __eq__(self, other):
1560
+ if other is None:
1561
+ return False
1562
+ elif not isinstance(other, _M_IceGrid.NodeUpdateDescriptor):
1563
+ return NotImplemented
1564
+ else:
1565
+ if self.name != other.name:
1566
+ return False
1567
+ if self.description != other.description:
1568
+ return False
1569
+ if self.variables != other.variables:
1570
+ return False
1571
+ if self.removeVariables != other.removeVariables:
1572
+ return False
1573
+ if self.propertySets != other.propertySets:
1574
+ return False
1575
+ if self.removePropertySets != other.removePropertySets:
1576
+ return False
1577
+ if self.serverInstances != other.serverInstances:
1578
+ return False
1579
+ if self.servers != other.servers:
1580
+ return False
1581
+ if self.removeServers != other.removeServers:
1582
+ return False
1583
+ if self.loadFactor != other.loadFactor:
1584
+ return False
1585
+ return True
1586
+
1587
+ def __ne__(self, other):
1588
+ return not self.__eq__(other)
1589
+
1590
+ def __str__(self):
1591
+ return IcePy.stringify(self, _M_IceGrid._t_NodeUpdateDescriptor)
1592
+
1593
+ __repr__ = __str__
1594
+
1595
+ _M_IceGrid._t_NodeUpdateDescriptor = IcePy.defineStruct('::IceGrid::NodeUpdateDescriptor', NodeUpdateDescriptor, (), (
1596
+ ('name', (), IcePy._t_string),
1597
+ ('description', (), _M_IceGrid._t_BoxedString),
1598
+ ('variables', (), _M_IceGrid._t_StringStringDict),
1599
+ ('removeVariables', (), _M_Ice._t_StringSeq),
1600
+ ('propertySets', (), _M_IceGrid._t_PropertySetDescriptorDict),
1601
+ ('removePropertySets', (), _M_Ice._t_StringSeq),
1602
+ ('serverInstances', (), _M_IceGrid._t_ServerInstanceDescriptorSeq),
1603
+ ('servers', (), _M_IceGrid._t_ServerDescriptorSeq),
1604
+ ('removeServers', (), _M_Ice._t_StringSeq),
1605
+ ('loadFactor', (), _M_IceGrid._t_BoxedString)
1606
+ ))
1607
+
1608
+ _M_IceGrid.NodeUpdateDescriptor = NodeUpdateDescriptor
1609
+ del NodeUpdateDescriptor
1610
+
1611
+ if '_t_NodeUpdateDescriptorSeq' not in _M_IceGrid.__dict__:
1612
+ _M_IceGrid._t_NodeUpdateDescriptorSeq = IcePy.defineSequence('::IceGrid::NodeUpdateDescriptorSeq', (), _M_IceGrid._t_NodeUpdateDescriptor)
1613
+
1614
+ if 'BoxedDistributionDescriptor' not in _M_IceGrid.__dict__:
1615
+ _M_IceGrid.BoxedDistributionDescriptor = Ice.createTempClass()
1616
+ class BoxedDistributionDescriptor(Ice.Value):
1617
+ """
1618
+ A "boxed" distribution descriptor.
1619
+ Members:
1620
+ value -- The value of the boxed distribution descriptor.
1621
+ """
1622
+ def __init__(self, value=Ice._struct_marker):
1623
+ if value is Ice._struct_marker:
1624
+ self.value = _M_IceGrid.DistributionDescriptor()
1625
+ else:
1626
+ self.value = value
1627
+
1628
+ def ice_id(self):
1629
+ return '::IceGrid::BoxedDistributionDescriptor'
1630
+
1631
+ @staticmethod
1632
+ def ice_staticId():
1633
+ return '::IceGrid::BoxedDistributionDescriptor'
1634
+
1635
+ def __str__(self):
1636
+ return IcePy.stringify(self, _M_IceGrid._t_BoxedDistributionDescriptor)
1637
+
1638
+ __repr__ = __str__
1639
+
1640
+ _M_IceGrid._t_BoxedDistributionDescriptor = IcePy.defineValue('::IceGrid::BoxedDistributionDescriptor', BoxedDistributionDescriptor, -1, (), False, False, None, (('value', (), _M_IceGrid._t_DistributionDescriptor, False, 0),))
1641
+ BoxedDistributionDescriptor._ice_type = _M_IceGrid._t_BoxedDistributionDescriptor
1642
+
1643
+ _M_IceGrid.BoxedDistributionDescriptor = BoxedDistributionDescriptor
1644
+ del BoxedDistributionDescriptor
1645
+
1646
+ if 'ApplicationUpdateDescriptor' not in _M_IceGrid.__dict__:
1647
+ _M_IceGrid.ApplicationUpdateDescriptor = Ice.createTempClass()
1648
+ class ApplicationUpdateDescriptor(object):
1649
+ """
1650
+ An application update descriptor to describe the updates to apply
1651
+ to a deployed application.
1652
+ Members:
1653
+ name -- The name of the application to update.
1654
+ description -- The updated description (or null if the description wasn't
1655
+ updated.)
1656
+ distrib -- The updated distribution application descriptor.
1657
+ variables -- The variables to update.
1658
+ removeVariables -- The variables to remove.
1659
+ propertySets -- The property sets to update.
1660
+ removePropertySets -- The property sets to remove.
1661
+ replicaGroups -- The replica groups to update.
1662
+ removeReplicaGroups -- The replica groups to remove.
1663
+ serverTemplates -- The server templates to update.
1664
+ removeServerTemplates -- The ids of the server template to remove.
1665
+ serviceTemplates -- The service templates to update.
1666
+ removeServiceTemplates -- The ids of the service template to remove.
1667
+ nodes -- The application nodes to update.
1668
+ removeNodes -- The nodes to remove.
1669
+ """
1670
+ def __init__(self, name='', description=None, distrib=None, variables=None, removeVariables=None, propertySets=None, removePropertySets=None, replicaGroups=None, removeReplicaGroups=None, serverTemplates=None, removeServerTemplates=None, serviceTemplates=None, removeServiceTemplates=None, nodes=None, removeNodes=None):
1671
+ self.name = name
1672
+ self.description = description
1673
+ self.distrib = distrib
1674
+ self.variables = variables
1675
+ self.removeVariables = removeVariables
1676
+ self.propertySets = propertySets
1677
+ self.removePropertySets = removePropertySets
1678
+ self.replicaGroups = replicaGroups
1679
+ self.removeReplicaGroups = removeReplicaGroups
1680
+ self.serverTemplates = serverTemplates
1681
+ self.removeServerTemplates = removeServerTemplates
1682
+ self.serviceTemplates = serviceTemplates
1683
+ self.removeServiceTemplates = removeServiceTemplates
1684
+ self.nodes = nodes
1685
+ self.removeNodes = removeNodes
1686
+
1687
+ def __eq__(self, other):
1688
+ if other is None:
1689
+ return False
1690
+ elif not isinstance(other, _M_IceGrid.ApplicationUpdateDescriptor):
1691
+ return NotImplemented
1692
+ else:
1693
+ if self.name != other.name:
1694
+ return False
1695
+ if self.description != other.description:
1696
+ return False
1697
+ if self.distrib != other.distrib:
1698
+ return False
1699
+ if self.variables != other.variables:
1700
+ return False
1701
+ if self.removeVariables != other.removeVariables:
1702
+ return False
1703
+ if self.propertySets != other.propertySets:
1704
+ return False
1705
+ if self.removePropertySets != other.removePropertySets:
1706
+ return False
1707
+ if self.replicaGroups != other.replicaGroups:
1708
+ return False
1709
+ if self.removeReplicaGroups != other.removeReplicaGroups:
1710
+ return False
1711
+ if self.serverTemplates != other.serverTemplates:
1712
+ return False
1713
+ if self.removeServerTemplates != other.removeServerTemplates:
1714
+ return False
1715
+ if self.serviceTemplates != other.serviceTemplates:
1716
+ return False
1717
+ if self.removeServiceTemplates != other.removeServiceTemplates:
1718
+ return False
1719
+ if self.nodes != other.nodes:
1720
+ return False
1721
+ if self.removeNodes != other.removeNodes:
1722
+ return False
1723
+ return True
1724
+
1725
+ def __ne__(self, other):
1726
+ return not self.__eq__(other)
1727
+
1728
+ def __str__(self):
1729
+ return IcePy.stringify(self, _M_IceGrid._t_ApplicationUpdateDescriptor)
1730
+
1731
+ __repr__ = __str__
1732
+
1733
+ _M_IceGrid._t_ApplicationUpdateDescriptor = IcePy.defineStruct('::IceGrid::ApplicationUpdateDescriptor', ApplicationUpdateDescriptor, (), (
1734
+ ('name', (), IcePy._t_string),
1735
+ ('description', (), _M_IceGrid._t_BoxedString),
1736
+ ('distrib', (), _M_IceGrid._t_BoxedDistributionDescriptor),
1737
+ ('variables', (), _M_IceGrid._t_StringStringDict),
1738
+ ('removeVariables', (), _M_Ice._t_StringSeq),
1739
+ ('propertySets', (), _M_IceGrid._t_PropertySetDescriptorDict),
1740
+ ('removePropertySets', (), _M_Ice._t_StringSeq),
1741
+ ('replicaGroups', (), _M_IceGrid._t_ReplicaGroupDescriptorSeq),
1742
+ ('removeReplicaGroups', (), _M_Ice._t_StringSeq),
1743
+ ('serverTemplates', (), _M_IceGrid._t_TemplateDescriptorDict),
1744
+ ('removeServerTemplates', (), _M_Ice._t_StringSeq),
1745
+ ('serviceTemplates', (), _M_IceGrid._t_TemplateDescriptorDict),
1746
+ ('removeServiceTemplates', (), _M_Ice._t_StringSeq),
1747
+ ('nodes', (), _M_IceGrid._t_NodeUpdateDescriptorSeq),
1748
+ ('removeNodes', (), _M_Ice._t_StringSeq)
1749
+ ))
1750
+
1751
+ _M_IceGrid.ApplicationUpdateDescriptor = ApplicationUpdateDescriptor
1752
+ del ApplicationUpdateDescriptor
1753
+
1754
+ # End of module IceGrid
1755
+
1756
+ Ice.sliceChecksums["::IceGrid::AdapterDescriptor"] = "4ae12581eab9d8ecba56534d28960f0"
1757
+ Ice.sliceChecksums["::IceGrid::AdapterDescriptorSeq"] = "61bb9118038552b5e80bf14cf41719c"
1758
+ Ice.sliceChecksums["::IceGrid::AdaptiveLoadBalancingPolicy"] = "eae551a45bf88ecdfdcbd169e3502816"
1759
+ Ice.sliceChecksums["::IceGrid::ApplicationDescriptor"] = "fc17fb9c4c7fc8f17ad10bc5da634a0"
1760
+ Ice.sliceChecksums["::IceGrid::ApplicationDescriptorSeq"] = "b56d6d3091e8c0199e924bbdc074"
1761
+ Ice.sliceChecksums["::IceGrid::ApplicationUpdateDescriptor"] = "9aef62072a0ecc3ee4be33bc46e0da"
1762
+ Ice.sliceChecksums["::IceGrid::BoxedDistributionDescriptor"] = "bab8796f5dc33ebe6955d4bb3219c5e9"
1763
+ Ice.sliceChecksums["::IceGrid::BoxedString"] = "f6bfc069c5150c34e14331c921218d7"
1764
+ Ice.sliceChecksums["::IceGrid::CommunicatorDescriptor"] = "b7cdae49f8df0d1d93afb857875ec15"
1765
+ Ice.sliceChecksums["::IceGrid::DbEnvDescriptor"] = "19c130dac4bf7fa2f82375a85e5f421"
1766
+ Ice.sliceChecksums["::IceGrid::DbEnvDescriptorSeq"] = "d0e45f67b942541727ae69d6cda2fdd8"
1767
+ Ice.sliceChecksums["::IceGrid::DistributionDescriptor"] = "109eee8e2dc57e518243806796d756"
1768
+ Ice.sliceChecksums["::IceGrid::IceBoxDescriptor"] = "814eec3d42ab727f75f7b183e1b02c38"
1769
+ Ice.sliceChecksums["::IceGrid::LoadBalancingPolicy"] = "dfbd5166bbdcac620f2d7f5de185afe"
1770
+ Ice.sliceChecksums["::IceGrid::NodeDescriptor"] = "be38d2d0b946fea6266f7a97d493d4"
1771
+ Ice.sliceChecksums["::IceGrid::NodeDescriptorDict"] = "600e78031867992f2fbd18719cb494"
1772
+ Ice.sliceChecksums["::IceGrid::NodeUpdateDescriptor"] = "d1c0a29ce34753b44e54285c49c9780"
1773
+ Ice.sliceChecksums["::IceGrid::NodeUpdateDescriptorSeq"] = "3416e1746e2acedfb8192d9d83d9dc3"
1774
+ Ice.sliceChecksums["::IceGrid::ObjectDescriptor"] = "913039a22b7b5fc0fd156ce764a4237d"
1775
+ Ice.sliceChecksums["::IceGrid::ObjectDescriptorSeq"] = "57236a6ef224f825849907a344412bb"
1776
+ Ice.sliceChecksums["::IceGrid::OrderedLoadBalancingPolicy"] = "bef5dacddeeae0e0b58945adaea2121"
1777
+ Ice.sliceChecksums["::IceGrid::PropertyDescriptor"] = "8b2145a8b1c5c8ffc9eac6a13e731798"
1778
+ Ice.sliceChecksums["::IceGrid::PropertyDescriptorSeq"] = "5f4143ef7e2c87b63136a3177b7a2830"
1779
+ Ice.sliceChecksums["::IceGrid::PropertySetDescriptor"] = "d07a6de61ed833b349d869bacb7d857"
1780
+ Ice.sliceChecksums["::IceGrid::PropertySetDescriptorDict"] = "30fc60d722ab4ba7affa70387730322f"
1781
+ Ice.sliceChecksums["::IceGrid::RandomLoadBalancingPolicy"] = "b52a26591c76fe2d6d134d954568c1a"
1782
+ Ice.sliceChecksums["::IceGrid::ReplicaGroupDescriptor"] = "dadc1d584d51fe9a16ea846b2796717"
1783
+ Ice.sliceChecksums["::IceGrid::ReplicaGroupDescriptorSeq"] = "5a3d3e7b4dc5f21b74f7adb5a6b24ccc"
1784
+ Ice.sliceChecksums["::IceGrid::RoundRobinLoadBalancingPolicy"] = "d9c7e987c732d89b7aa79621a788fcb4"
1785
+ Ice.sliceChecksums["::IceGrid::ServerDescriptor"] = "45903227dd1968cedd1811b9d71bc374"
1786
+ Ice.sliceChecksums["::IceGrid::ServerDescriptorSeq"] = "1bf128cadf1974b22258f66617a1ed"
1787
+ Ice.sliceChecksums["::IceGrid::ServerInstanceDescriptor"] = "56938d38e0189cdbd57d16e5a6bbc0fb"
1788
+ Ice.sliceChecksums["::IceGrid::ServerInstanceDescriptorSeq"] = "2a8ae55ccef7917d96691c0a84778dd"
1789
+ Ice.sliceChecksums["::IceGrid::ServiceDescriptor"] = "7c2496565248aa7d9732565ee5fe7c"
1790
+ Ice.sliceChecksums["::IceGrid::ServiceDescriptorSeq"] = "cc519ed2b7f626b896cdc062823166"
1791
+ Ice.sliceChecksums["::IceGrid::ServiceInstanceDescriptor"] = "8581f0afc39ae7daab937244b28c1394"
1792
+ Ice.sliceChecksums["::IceGrid::ServiceInstanceDescriptorSeq"] = "eb22cd2a50e79f648d803c4b54755"
1793
+ Ice.sliceChecksums["::IceGrid::StringStringDict"] = "87cdc9524ba3964efc9091e5b3346f29"
1794
+ Ice.sliceChecksums["::IceGrid::TemplateDescriptor"] = "d1229192d114f32db747493becd5765"
1795
+ Ice.sliceChecksums["::IceGrid::TemplateDescriptorDict"] = "7b9427f03e8ce3b67decd2cc35baa1"