zeroc-ice 3.7.11__cp314-cp314-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.cp314-win_amd64.pdb +0 -0
  67. IcePy.cp314-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
Glacier2/__init__.py ADDED
@@ -0,0 +1,226 @@
1
+ #
2
+ # Copyright (c) ZeroC, Inc. All rights reserved.
3
+ #
4
+
5
+ """
6
+ Glacier2 module
7
+ """
8
+
9
+ import threading, traceback, copy
10
+
11
+ #
12
+ # Import the Python extension.
13
+ #
14
+ import Ice
15
+ Ice.updateModule("Glacier2")
16
+
17
+ import Glacier2.Router_ice
18
+ import Glacier2.Session_ice
19
+ import Glacier2.PermissionsVerifier_ice
20
+ import Glacier2.SSLInfo_ice
21
+ import Glacier2.Metrics_ice
22
+
23
+ class SessionNotExistException(Exception):
24
+ def __init__(self):
25
+ pass
26
+
27
+ class RestartSessionException(Exception):
28
+ def __init__(self):
29
+ pass
30
+
31
+ class Application(Ice.Application):
32
+
33
+ def __init__(self, signalPolicy=0): # HandleSignals=0
34
+ '''The constructor accepts an optional argument indicating
35
+ whether to handle signals. The value should be either
36
+ Application.HandleSignals (the default) or
37
+ Application.NoSignalHandling.
38
+ '''
39
+
40
+ if type(self) == Application:
41
+ raise RuntimeError("Glacier2.Application is an abstract class")
42
+
43
+ Ice.Application.__init__(self, signalPolicy)
44
+
45
+ Application._adapter = None
46
+ Application._router = None
47
+ Application._session = None
48
+ Application._category = None
49
+
50
+ def run(self, args):
51
+ raise RuntimeError('run should not be called on Glacier2.Application - call runWithSession instead')
52
+
53
+ def createSession(self, args):
54
+ raise RuntimeError('createSession() not implemented')
55
+
56
+ def runWithSession(self, args):
57
+ raise RuntimeError('runWithSession() not implemented')
58
+
59
+ def sessionDestroyed(self):
60
+ pass
61
+
62
+ def restart(self):
63
+ raise RestartSessionException()
64
+ restart = classmethod(restart)
65
+
66
+ def router(self):
67
+ return Application._router
68
+ router = classmethod(router)
69
+
70
+ def session(self):
71
+ return Application._session
72
+ session = classmethod(session)
73
+
74
+ def categoryForClient(self):
75
+ if Application._router == None:
76
+ raise SessionNotExistException()
77
+ return Application._category
78
+ categoryForClient = classmethod(categoryForClient)
79
+
80
+ def createCallbackIdentity(self, name):
81
+ return Ice.Identity(name, self.categoryForClient())
82
+ createCallbackIdentity = classmethod(createCallbackIdentity)
83
+
84
+ def addWithUUID(self, servant):
85
+ return self.objectAdapter().add(servant, self.createCallbackIdentity(Ice.generateUUID()))
86
+ addWithUUID = classmethod(addWithUUID)
87
+
88
+ def objectAdapter(self):
89
+ if Application._router == None:
90
+ raise SessionNotExistException()
91
+ if Application._adapter == None:
92
+ Application._adapter = self.communicator().createObjectAdapterWithRouter("", Application._router)
93
+ Application._adapter.activate()
94
+ return Application._adapter
95
+ objectAdapter = classmethod(objectAdapter)
96
+
97
+ def doMainInternal(self, args, initData):
98
+ # Reset internal state variables from Ice.Application. The
99
+ # remainder are reset at the end of this method.
100
+ Ice.Application._callbackInProgress = False
101
+ Ice.Application._destroyed = False
102
+ Ice.Application._interrupted = False
103
+
104
+ restart = False
105
+ status = 0
106
+ sessionCreated = False
107
+ try:
108
+ Ice.Application._communicator = Ice.initialize(args, initData)
109
+
110
+ Application._router = RouterPrx.uncheckedCast(Ice.Application.communicator().getDefaultRouter())
111
+ if Application._router == None:
112
+ Ice.getProcessLogger().error("no glacier2 router configured")
113
+ status = 1
114
+ else:
115
+ #
116
+ # The default is to destroy when a signal is received.
117
+ #
118
+ if Ice.Application._signalPolicy == Ice.Application.HandleSignals:
119
+ Ice.Application.destroyOnInterrupt()
120
+
121
+ # If createSession throws, we're done.
122
+ try:
123
+ Application._session = self.createSession()
124
+ sessionCreated = True
125
+ except Ice.LocalException:
126
+ Ice.getProcessLogger().error(traceback.format_exc())
127
+ status = 1
128
+
129
+ if sessionCreated:
130
+ acmTimeout = 0
131
+ try:
132
+ acmTimeout = Application._router.getACMTimeout()
133
+ except(Ice.OperationNotExistException):
134
+ pass
135
+ if acmTimeout <= 0:
136
+ acmTimeout = Application._router.getSessionTimeout()
137
+ if acmTimeout > 0:
138
+ connection = Application._router.ice_getCachedConnection()
139
+ assert(connection)
140
+ connection.setACM(acmTimeout, Ice.Unset, Ice.ACMHeartbeat.HeartbeatAlways)
141
+ connection.setCloseCallback(lambda conn: self.sessionDestroyed())
142
+ Application._category = Application._router.getCategoryForClient()
143
+ status = self.runWithSession(args)
144
+
145
+ # We want to restart on those exceptions which indicate a
146
+ # break down in communications, but not those exceptions that
147
+ # indicate a programming logic error (ie: marshal, protocol
148
+ # failure, etc).
149
+ except(RestartSessionException):
150
+ restart = True
151
+ except(Ice.ConnectionRefusedException, Ice.ConnectionLostException, Ice.UnknownLocalException, \
152
+ Ice.RequestFailedException, Ice.TimeoutException):
153
+ Ice.getProcessLogger().error(traceback.format_exc())
154
+ restart = True
155
+ except:
156
+ Ice.getProcessLogger().error(traceback.format_exc())
157
+ status = 1
158
+
159
+ #
160
+ # Don't want any new interrupt and at this point (post-run),
161
+ # it would not make sense to release a held signal to run
162
+ # shutdown or destroy.
163
+ #
164
+ if Ice.Application._signalPolicy == Ice.Application.HandleSignals:
165
+ Ice.Application.ignoreInterrupt()
166
+
167
+ Ice.Application._condVar.acquire()
168
+ while Ice.Application._callbackInProgress:
169
+ Ice.Application._condVar.wait()
170
+ if Ice.Application._destroyed:
171
+ Ice.Application._communicator = None
172
+ else:
173
+ Ice.Application._destroyed = True
174
+ #
175
+ # And _communicator != None, meaning will be destroyed
176
+ # next, _destroyed = True also ensures that any
177
+ # remaining callback won't do anything
178
+ #
179
+ Ice.Application._condVar.release()
180
+
181
+ if sessionCreated and Application._router:
182
+ try:
183
+ Application._router.destroySession()
184
+ except (Ice.ConnectionLostException, SessionNotExistException):
185
+ pass
186
+ except:
187
+ Ice.getProcessLogger().error("unexpected exception when destroying the session " + \
188
+ traceback.format_exc())
189
+ Application._router = None
190
+
191
+ if Ice.Application._communicator:
192
+ try:
193
+ Ice.Application._communicator.destroy()
194
+ except:
195
+ getProcessLogger().error(traceback.format_exc())
196
+ status = 1
197
+
198
+ Ice.Application._communicator = None
199
+
200
+ # Reset internal state. We cannot reset the Application state
201
+ # here, since _destroyed must remain true until we re-run
202
+ # this method.
203
+ Application._adapter = None
204
+ Application._router = None
205
+ Application._session = None
206
+ sessionCreated = False
207
+ Application._category = None
208
+
209
+ return (restart, status)
210
+
211
+ def doMain(self, args, initData):
212
+ # Set the default properties for all Glacier2 applications.
213
+ initData.properties.setProperty("Ice.RetryIntervals", "-1")
214
+
215
+ restart = True
216
+ ret = 0
217
+ while restart:
218
+ # A copy of the initialization data and the string seq
219
+ # needs to be passed to doMainInternal, as these can be
220
+ # changed by the application.
221
+ id = copy.copy(initData)
222
+ if id.properties:
223
+ id.properties = id.properties.clone()
224
+ argsCopy = args[:]
225
+ (restart, ret) = self.doMainInternal(argsCopy, initData)
226
+ return ret
@@ -0,0 +1,65 @@
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 `BuiltinSequences.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
+
20
+ # Start of module Ice
21
+ _M_Ice = Ice.openModule('Ice')
22
+ __name__ = 'Ice'
23
+
24
+ if '_t_BoolSeq' not in _M_Ice.__dict__:
25
+ _M_Ice._t_BoolSeq = IcePy.defineSequence('::Ice::BoolSeq', (), IcePy._t_bool)
26
+
27
+ if '_t_ByteSeq' not in _M_Ice.__dict__:
28
+ _M_Ice._t_ByteSeq = IcePy.defineSequence('::Ice::ByteSeq', (), IcePy._t_byte)
29
+
30
+ if '_t_ShortSeq' not in _M_Ice.__dict__:
31
+ _M_Ice._t_ShortSeq = IcePy.defineSequence('::Ice::ShortSeq', (), IcePy._t_short)
32
+
33
+ if '_t_IntSeq' not in _M_Ice.__dict__:
34
+ _M_Ice._t_IntSeq = IcePy.defineSequence('::Ice::IntSeq', (), IcePy._t_int)
35
+
36
+ if '_t_LongSeq' not in _M_Ice.__dict__:
37
+ _M_Ice._t_LongSeq = IcePy.defineSequence('::Ice::LongSeq', (), IcePy._t_long)
38
+
39
+ if '_t_FloatSeq' not in _M_Ice.__dict__:
40
+ _M_Ice._t_FloatSeq = IcePy.defineSequence('::Ice::FloatSeq', (), IcePy._t_float)
41
+
42
+ if '_t_DoubleSeq' not in _M_Ice.__dict__:
43
+ _M_Ice._t_DoubleSeq = IcePy.defineSequence('::Ice::DoubleSeq', (), IcePy._t_double)
44
+
45
+ if '_t_StringSeq' not in _M_Ice.__dict__:
46
+ _M_Ice._t_StringSeq = IcePy.defineSequence('::Ice::StringSeq', (), IcePy._t_string)
47
+
48
+ if '_t_ObjectSeq' not in _M_Ice.__dict__:
49
+ _M_Ice._t_ObjectSeq = IcePy.defineSequence('::Ice::ObjectSeq', (), IcePy._t_Value)
50
+
51
+ if '_t_ObjectProxySeq' not in _M_Ice.__dict__:
52
+ _M_Ice._t_ObjectProxySeq = IcePy.defineSequence('::Ice::ObjectProxySeq', (), IcePy._t_ObjectPrx)
53
+
54
+ # End of module Ice
55
+
56
+ Ice.sliceChecksums["::Ice::BoolSeq"] = "321b1d4186eaf796937e82eed711fe7f"
57
+ Ice.sliceChecksums["::Ice::ByteSeq"] = "eae189e6d7b57b6f9628e78293d6d7"
58
+ Ice.sliceChecksums["::Ice::DoubleSeq"] = "7fb8b78b3ab4b2e358d27dc4d6f1e330"
59
+ Ice.sliceChecksums["::Ice::FloatSeq"] = "eb848491fad1518427fd58a7330958e"
60
+ Ice.sliceChecksums["::Ice::IntSeq"] = "826eab2e95b89b0476198b6a36991dc"
61
+ Ice.sliceChecksums["::Ice::LongSeq"] = "325a51044cdee10b14ecc3c1672a86"
62
+ Ice.sliceChecksums["::Ice::ObjectProxySeq"] = "45ccc241c2bbfebfbd031e733a5832"
63
+ Ice.sliceChecksums["::Ice::ObjectSeq"] = "a1e80bc6b87e9687455a4faa4c2f295"
64
+ Ice.sliceChecksums["::Ice::ShortSeq"] = "32aadcc785b88fc7198ae3d262ff3acd"
65
+ Ice.sliceChecksums["::Ice::StringSeq"] = "7986f19514e3b04fbe4af53c7446e563"
@@ -0,0 +1,27 @@
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 `CommunicatorF.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
+
20
+ # Start of module Ice
21
+ _M_Ice = Ice.openModule('Ice')
22
+ __name__ = 'Ice'
23
+
24
+ if 'Communicator' not in _M_Ice.__dict__:
25
+ _M_Ice._t_Communicator = IcePy.declareValue('::Ice::Communicator')
26
+
27
+ # End of module Ice