zeroc-ice 3.7.11__cp313-cp313-macosx_10_13_universal2.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.
- Glacier2/Metrics_ice.py +82 -0
- Glacier2/PermissionsVerifierF_ice.py +32 -0
- Glacier2/PermissionsVerifier_ice.py +284 -0
- Glacier2/RouterF_ice.py +28 -0
- Glacier2/Router_ice.py +618 -0
- Glacier2/SSLInfo_ice.py +179 -0
- Glacier2/Session_ice.py +1103 -0
- Glacier2/__init__.py +226 -0
- Ice/BuiltinSequences_ice.py +65 -0
- Ice/CommunicatorF_ice.py +27 -0
- Ice/Communicator_ice.py +469 -0
- Ice/ConnectionF_ice.py +33 -0
- Ice/Connection_ice.py +680 -0
- Ice/Current_ice.py +175 -0
- Ice/EndpointF_ice.py +45 -0
- Ice/EndpointTypes_ice.py +54 -0
- Ice/Endpoint_ice.py +304 -0
- Ice/FacetMap_ice.py +27 -0
- Ice/Identity_ice.py +133 -0
- Ice/ImplicitContextF_ice.py +27 -0
- Ice/ImplicitContext_ice.py +119 -0
- Ice/InstrumentationF_ice.py +38 -0
- Ice/Instrumentation_ice.py +566 -0
- Ice/LocalException_ice.py +1715 -0
- Ice/LocatorF_ice.py +32 -0
- Ice/Locator_ice.py +728 -0
- Ice/LoggerF_ice.py +27 -0
- Ice/Logger_ice.py +96 -0
- Ice/Metrics_ice.py +864 -0
- Ice/ObjectAdapterF_ice.py +27 -0
- Ice/ObjectAdapter_ice.py +461 -0
- Ice/ObjectFactory_ice.py +68 -0
- Ice/PluginF_ice.py +30 -0
- Ice/Plugin_ice.py +136 -0
- Ice/ProcessF_ice.py +28 -0
- Ice/Process_ice.py +175 -0
- Ice/PropertiesAdmin_ice.py +247 -0
- Ice/PropertiesF_ice.py +31 -0
- Ice/Properties_ice.py +199 -0
- Ice/Py3/IceFuture.py +52 -0
- Ice/Py3/__init__.py +3 -0
- Ice/RemoteLogger_ice.py +617 -0
- Ice/RouterF_ice.py +28 -0
- Ice/Router_ice.py +350 -0
- Ice/ServantLocatorF_ice.py +27 -0
- Ice/ServantLocator_ice.py +110 -0
- Ice/SliceChecksumDict_ice.py +29 -0
- Ice/ValueFactory_ice.py +125 -0
- Ice/Version_ice.py +217 -0
- Ice/__init__.py +2008 -0
- IceBox/IceBox_ice.py +644 -0
- IceBox/__init__.py +10 -0
- IceGrid/Admin_ice.py +6662 -0
- IceGrid/Descriptor_ice.py +1795 -0
- IceGrid/Exception_ice.py +592 -0
- IceGrid/FileParser_ice.py +171 -0
- IceGrid/PluginFacade_ice.py +288 -0
- IceGrid/Registry_ice.py +985 -0
- IceGrid/Session_ice.py +406 -0
- IceGrid/UserAccountMapper_ice.py +166 -0
- IceGrid/__init__.py +17 -0
- IceMX/__init__.py +12 -0
- IcePatch2/FileInfo_ice.py +287 -0
- IcePatch2/FileServer_ice.py +555 -0
- IcePatch2/__init__.py +11 -0
- IcePy.cpython-313-darwin.so +0 -0
- IceStorm/IceStorm_ice.py +1265 -0
- IceStorm/Metrics_ice.py +106 -0
- IceStorm/__init__.py +10 -0
- slice/Glacier2/Metrics.ice +88 -0
- slice/Glacier2/PermissionsVerifier.ice +111 -0
- slice/Glacier2/PermissionsVerifierF.ice +30 -0
- slice/Glacier2/Router.ice +186 -0
- slice/Glacier2/RouterF.ice +29 -0
- slice/Glacier2/SSLInfo.ice +59 -0
- slice/Glacier2/Session.ice +274 -0
- slice/Ice/BuiltinSequences.ice +59 -0
- slice/Ice/Communicator.ice +676 -0
- slice/Ice/CommunicatorF.ice +31 -0
- slice/Ice/Connection.ice +516 -0
- slice/Ice/ConnectionF.ice +33 -0
- slice/Ice/Current.ice +170 -0
- slice/Ice/Endpoint.ice +291 -0
- slice/Ice/EndpointF.ice +43 -0
- slice/Ice/EndpointTypes.ice +48 -0
- slice/Ice/FacetMap.ice +36 -0
- slice/Ice/Identity.ice +75 -0
- slice/Ice/ImplicitContext.ice +119 -0
- slice/Ice/ImplicitContextF.ice +30 -0
- slice/Ice/Instrumentation.ice +509 -0
- slice/Ice/InstrumentationF.ice +38 -0
- slice/Ice/LocalException.ice +1040 -0
- slice/Ice/Locator.ice +239 -0
- slice/Ice/LocatorF.ice +32 -0
- slice/Ice/Logger.ice +99 -0
- slice/Ice/LoggerF.ice +31 -0
- slice/Ice/Metrics.ice +436 -0
- slice/Ice/ObjectAdapter.ice +710 -0
- slice/Ice/ObjectAdapterF.ice +31 -0
- slice/Ice/ObjectFactory.ice +71 -0
- slice/Ice/Plugin.ice +131 -0
- slice/Ice/PluginF.ice +36 -0
- slice/Ice/Process.ice +64 -0
- slice/Ice/ProcessF.ice +31 -0
- slice/Ice/Properties.ice +244 -0
- slice/Ice/PropertiesAdmin.ice +87 -0
- slice/Ice/PropertiesF.ice +32 -0
- slice/Ice/RemoteLogger.ice +226 -0
- slice/Ice/Router.ice +103 -0
- slice/Ice/RouterF.ice +31 -0
- slice/Ice/ServantLocator.ice +136 -0
- slice/Ice/ServantLocatorF.ice +31 -0
- slice/Ice/SliceChecksumDict.ice +36 -0
- slice/Ice/ValueFactory.ice +133 -0
- slice/Ice/Version.ice +51 -0
- slice/IceBT/ConnectionInfo.ice +59 -0
- slice/IceBT/EndpointInfo.ice +57 -0
- slice/IceBT/Types.ice +45 -0
- slice/IceBox/IceBox.ice +216 -0
- slice/IceGrid/Admin.ice +1957 -0
- slice/IceGrid/Descriptor.ice +1094 -0
- slice/IceGrid/Exception.ice +396 -0
- slice/IceGrid/FileParser.ice +72 -0
- slice/IceGrid/PluginFacade.ice +329 -0
- slice/IceGrid/Registry.ice +269 -0
- slice/IceGrid/Session.ice +128 -0
- slice/IceGrid/UserAccountMapper.ice +69 -0
- slice/IceIAP/ConnectionInfo.ice +74 -0
- slice/IceIAP/EndpointInfo.ice +68 -0
- slice/IcePatch2/FileInfo.ice +85 -0
- slice/IcePatch2/FileServer.ice +191 -0
- slice/IceSSL/ConnectionInfo.ice +54 -0
- slice/IceSSL/ConnectionInfoF.ice +31 -0
- slice/IceSSL/EndpointInfo.ice +45 -0
- slice/IceStorm/IceStorm.ice +414 -0
- slice/IceStorm/Metrics.ice +83 -0
- slice2py.py +21 -0
- zeroc_ice-3.7.11.dist-info/METADATA +97 -0
- zeroc_ice-3.7.11.dist-info/RECORD +142 -0
- zeroc_ice-3.7.11.dist-info/WHEEL +5 -0
- zeroc_ice-3.7.11.dist-info/entry_points.txt +2 -0
- zeroc_ice-3.7.11.dist-info/top_level.txt +10 -0
Ice/Router_ice.py
ADDED
|
@@ -0,0 +1,350 @@
|
|
|
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 `Router.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.BuiltinSequences_ice
|
|
20
|
+
|
|
21
|
+
# Included module Ice
|
|
22
|
+
_M_Ice = Ice.openModule('Ice')
|
|
23
|
+
|
|
24
|
+
# Start of module Ice
|
|
25
|
+
__name__ = 'Ice'
|
|
26
|
+
|
|
27
|
+
_M_Ice._t_Router = IcePy.defineValue('::Ice::Router', Ice.Value, -1, (), False, True, None, ())
|
|
28
|
+
|
|
29
|
+
if 'RouterPrx' not in _M_Ice.__dict__:
|
|
30
|
+
_M_Ice.RouterPrx = Ice.createTempClass()
|
|
31
|
+
class RouterPrx(Ice.ObjectPrx):
|
|
32
|
+
|
|
33
|
+
"""
|
|
34
|
+
Get the router's client proxy, i.e., the proxy to use for
|
|
35
|
+
forwarding requests from the client to the router.
|
|
36
|
+
If a null proxy is returned, the client will forward requests
|
|
37
|
+
to the router's endpoints.
|
|
38
|
+
Arguments:
|
|
39
|
+
context -- The request context for the invocation.
|
|
40
|
+
Returns a tuple containing the following:
|
|
41
|
+
_retval -- The router's client proxy.
|
|
42
|
+
hasRoutingTable -- Indicates whether or not the router supports a routing table. If it is supported, the Ice runtime will call addProxies to populate the routing table. This out parameter is only supported starting with Ice 3.7. The Ice runtime assumes the router has a routing table if the optional is not set.
|
|
43
|
+
"""
|
|
44
|
+
def getClientProxy(self, context=None):
|
|
45
|
+
return _M_Ice.Router._op_getClientProxy.invoke(self, ((), context))
|
|
46
|
+
|
|
47
|
+
"""
|
|
48
|
+
Get the router's client proxy, i.e., the proxy to use for
|
|
49
|
+
forwarding requests from the client to the router.
|
|
50
|
+
If a null proxy is returned, the client will forward requests
|
|
51
|
+
to the router's endpoints.
|
|
52
|
+
Arguments:
|
|
53
|
+
context -- The request context for the invocation.
|
|
54
|
+
Returns: A future object for the invocation.
|
|
55
|
+
"""
|
|
56
|
+
def getClientProxyAsync(self, context=None):
|
|
57
|
+
return _M_Ice.Router._op_getClientProxy.invokeAsync(self, ((), context))
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
Get the router's client proxy, i.e., the proxy to use for
|
|
61
|
+
forwarding requests from the client to the router.
|
|
62
|
+
If a null proxy is returned, the client will forward requests
|
|
63
|
+
to the router's endpoints.
|
|
64
|
+
Arguments:
|
|
65
|
+
_response -- The asynchronous response callback.
|
|
66
|
+
_ex -- The asynchronous exception callback.
|
|
67
|
+
_sent -- The asynchronous sent callback.
|
|
68
|
+
context -- The request context for the invocation.
|
|
69
|
+
Returns: An asynchronous result object for the invocation.
|
|
70
|
+
"""
|
|
71
|
+
def begin_getClientProxy(self, _response=None, _ex=None, _sent=None, context=None):
|
|
72
|
+
return _M_Ice.Router._op_getClientProxy.begin(self, ((), _response, _ex, _sent, context))
|
|
73
|
+
|
|
74
|
+
"""
|
|
75
|
+
Get the router's client proxy, i.e., the proxy to use for
|
|
76
|
+
forwarding requests from the client to the router.
|
|
77
|
+
If a null proxy is returned, the client will forward requests
|
|
78
|
+
to the router's endpoints.
|
|
79
|
+
Arguments:
|
|
80
|
+
Returns a tuple containing the following:
|
|
81
|
+
_retval -- The router's client proxy.
|
|
82
|
+
hasRoutingTable -- Indicates whether or not the router supports a routing table. If it is supported, the Ice runtime will call addProxies to populate the routing table. This out parameter is only supported starting with Ice 3.7. The Ice runtime assumes the router has a routing table if the optional is not set.
|
|
83
|
+
"""
|
|
84
|
+
def end_getClientProxy(self, _r):
|
|
85
|
+
return _M_Ice.Router._op_getClientProxy.end(self, _r)
|
|
86
|
+
|
|
87
|
+
"""
|
|
88
|
+
Get the router's server proxy, i.e., the proxy to use for
|
|
89
|
+
forwarding requests from the server to the router.
|
|
90
|
+
Arguments:
|
|
91
|
+
context -- The request context for the invocation.
|
|
92
|
+
Returns: The router's server proxy.
|
|
93
|
+
"""
|
|
94
|
+
def getServerProxy(self, context=None):
|
|
95
|
+
return _M_Ice.Router._op_getServerProxy.invoke(self, ((), context))
|
|
96
|
+
|
|
97
|
+
"""
|
|
98
|
+
Get the router's server proxy, i.e., the proxy to use for
|
|
99
|
+
forwarding requests from the server to the router.
|
|
100
|
+
Arguments:
|
|
101
|
+
context -- The request context for the invocation.
|
|
102
|
+
Returns: A future object for the invocation.
|
|
103
|
+
"""
|
|
104
|
+
def getServerProxyAsync(self, context=None):
|
|
105
|
+
return _M_Ice.Router._op_getServerProxy.invokeAsync(self, ((), context))
|
|
106
|
+
|
|
107
|
+
"""
|
|
108
|
+
Get the router's server proxy, i.e., the proxy to use for
|
|
109
|
+
forwarding requests from the server to the router.
|
|
110
|
+
Arguments:
|
|
111
|
+
_response -- The asynchronous response callback.
|
|
112
|
+
_ex -- The asynchronous exception callback.
|
|
113
|
+
_sent -- The asynchronous sent callback.
|
|
114
|
+
context -- The request context for the invocation.
|
|
115
|
+
Returns: An asynchronous result object for the invocation.
|
|
116
|
+
"""
|
|
117
|
+
def begin_getServerProxy(self, _response=None, _ex=None, _sent=None, context=None):
|
|
118
|
+
return _M_Ice.Router._op_getServerProxy.begin(self, ((), _response, _ex, _sent, context))
|
|
119
|
+
|
|
120
|
+
"""
|
|
121
|
+
Get the router's server proxy, i.e., the proxy to use for
|
|
122
|
+
forwarding requests from the server to the router.
|
|
123
|
+
Arguments:
|
|
124
|
+
Returns: The router's server proxy.
|
|
125
|
+
"""
|
|
126
|
+
def end_getServerProxy(self, _r):
|
|
127
|
+
return _M_Ice.Router._op_getServerProxy.end(self, _r)
|
|
128
|
+
|
|
129
|
+
"""
|
|
130
|
+
Add new proxy information to the router's routing table.
|
|
131
|
+
Arguments:
|
|
132
|
+
proxies -- The proxies to add.
|
|
133
|
+
context -- The request context for the invocation.
|
|
134
|
+
Returns: Proxies discarded by the router.
|
|
135
|
+
"""
|
|
136
|
+
def addProxies(self, proxies, context=None):
|
|
137
|
+
return _M_Ice.Router._op_addProxies.invoke(self, ((proxies, ), context))
|
|
138
|
+
|
|
139
|
+
"""
|
|
140
|
+
Add new proxy information to the router's routing table.
|
|
141
|
+
Arguments:
|
|
142
|
+
proxies -- The proxies to add.
|
|
143
|
+
context -- The request context for the invocation.
|
|
144
|
+
Returns: A future object for the invocation.
|
|
145
|
+
"""
|
|
146
|
+
def addProxiesAsync(self, proxies, context=None):
|
|
147
|
+
return _M_Ice.Router._op_addProxies.invokeAsync(self, ((proxies, ), context))
|
|
148
|
+
|
|
149
|
+
"""
|
|
150
|
+
Add new proxy information to the router's routing table.
|
|
151
|
+
Arguments:
|
|
152
|
+
proxies -- The proxies to add.
|
|
153
|
+
_response -- The asynchronous response callback.
|
|
154
|
+
_ex -- The asynchronous exception callback.
|
|
155
|
+
_sent -- The asynchronous sent callback.
|
|
156
|
+
context -- The request context for the invocation.
|
|
157
|
+
Returns: An asynchronous result object for the invocation.
|
|
158
|
+
"""
|
|
159
|
+
def begin_addProxies(self, proxies, _response=None, _ex=None, _sent=None, context=None):
|
|
160
|
+
return _M_Ice.Router._op_addProxies.begin(self, ((proxies, ), _response, _ex, _sent, context))
|
|
161
|
+
|
|
162
|
+
"""
|
|
163
|
+
Add new proxy information to the router's routing table.
|
|
164
|
+
Arguments:
|
|
165
|
+
proxies -- The proxies to add.
|
|
166
|
+
Returns: Proxies discarded by the router.
|
|
167
|
+
"""
|
|
168
|
+
def end_addProxies(self, _r):
|
|
169
|
+
return _M_Ice.Router._op_addProxies.end(self, _r)
|
|
170
|
+
|
|
171
|
+
@staticmethod
|
|
172
|
+
def checkedCast(proxy, facetOrContext=None, context=None):
|
|
173
|
+
return _M_Ice.RouterPrx.ice_checkedCast(proxy, '::Ice::Router', facetOrContext, context)
|
|
174
|
+
|
|
175
|
+
@staticmethod
|
|
176
|
+
def uncheckedCast(proxy, facet=None):
|
|
177
|
+
return _M_Ice.RouterPrx.ice_uncheckedCast(proxy, facet)
|
|
178
|
+
|
|
179
|
+
@staticmethod
|
|
180
|
+
def ice_staticId():
|
|
181
|
+
return '::Ice::Router'
|
|
182
|
+
_M_Ice._t_RouterPrx = IcePy.defineProxy('::Ice::Router', RouterPrx)
|
|
183
|
+
|
|
184
|
+
_M_Ice.RouterPrx = RouterPrx
|
|
185
|
+
del RouterPrx
|
|
186
|
+
|
|
187
|
+
_M_Ice.Router = Ice.createTempClass()
|
|
188
|
+
class Router(Ice.Object):
|
|
189
|
+
|
|
190
|
+
def ice_ids(self, current=None):
|
|
191
|
+
return ('::Ice::Object', '::Ice::Router')
|
|
192
|
+
|
|
193
|
+
def ice_id(self, current=None):
|
|
194
|
+
return '::Ice::Router'
|
|
195
|
+
|
|
196
|
+
@staticmethod
|
|
197
|
+
def ice_staticId():
|
|
198
|
+
return '::Ice::Router'
|
|
199
|
+
|
|
200
|
+
def getClientProxy(self, current=None):
|
|
201
|
+
"""
|
|
202
|
+
Get the router's client proxy, i.e., the proxy to use for
|
|
203
|
+
forwarding requests from the client to the router.
|
|
204
|
+
If a null proxy is returned, the client will forward requests
|
|
205
|
+
to the router's endpoints.
|
|
206
|
+
Arguments:
|
|
207
|
+
current -- The Current object for the invocation.
|
|
208
|
+
Returns: A future object for the invocation.
|
|
209
|
+
"""
|
|
210
|
+
raise NotImplementedError("servant method 'getClientProxy' not implemented")
|
|
211
|
+
|
|
212
|
+
def getServerProxy(self, current=None):
|
|
213
|
+
"""
|
|
214
|
+
Get the router's server proxy, i.e., the proxy to use for
|
|
215
|
+
forwarding requests from the server to the router.
|
|
216
|
+
Arguments:
|
|
217
|
+
current -- The Current object for the invocation.
|
|
218
|
+
Returns: A future object for the invocation.
|
|
219
|
+
"""
|
|
220
|
+
raise NotImplementedError("servant method 'getServerProxy' not implemented")
|
|
221
|
+
|
|
222
|
+
def addProxies(self, proxies, current=None):
|
|
223
|
+
"""
|
|
224
|
+
Add new proxy information to the router's routing table.
|
|
225
|
+
Arguments:
|
|
226
|
+
proxies -- The proxies to add.
|
|
227
|
+
current -- The Current object for the invocation.
|
|
228
|
+
Returns: A future object for the invocation.
|
|
229
|
+
"""
|
|
230
|
+
raise NotImplementedError("servant method 'addProxies' not implemented")
|
|
231
|
+
|
|
232
|
+
def __str__(self):
|
|
233
|
+
return IcePy.stringify(self, _M_Ice._t_RouterDisp)
|
|
234
|
+
|
|
235
|
+
__repr__ = __str__
|
|
236
|
+
|
|
237
|
+
_M_Ice._t_RouterDisp = IcePy.defineClass('::Ice::Router', Router, (), None, ())
|
|
238
|
+
Router._ice_type = _M_Ice._t_RouterDisp
|
|
239
|
+
|
|
240
|
+
Router._op_getClientProxy = IcePy.Operation('getClientProxy', Ice.OperationMode.Idempotent, Ice.OperationMode.Nonmutating, False, None, (), (), (((), IcePy._t_bool, True, 1),), ((), IcePy._t_ObjectPrx, False, 0), ())
|
|
241
|
+
Router._op_getServerProxy = IcePy.Operation('getServerProxy', Ice.OperationMode.Idempotent, Ice.OperationMode.Nonmutating, False, None, (), (), (), ((), IcePy._t_ObjectPrx, False, 0), ())
|
|
242
|
+
Router._op_addProxies = IcePy.Operation('addProxies', Ice.OperationMode.Idempotent, Ice.OperationMode.Idempotent, False, None, (), (((), _M_Ice._t_ObjectProxySeq, False, 0),), (), ((), _M_Ice._t_ObjectProxySeq, False, 0), ())
|
|
243
|
+
|
|
244
|
+
_M_Ice.Router = Router
|
|
245
|
+
del Router
|
|
246
|
+
|
|
247
|
+
_M_Ice._t_RouterFinder = IcePy.defineValue('::Ice::RouterFinder', Ice.Value, -1, (), False, True, None, ())
|
|
248
|
+
|
|
249
|
+
if 'RouterFinderPrx' not in _M_Ice.__dict__:
|
|
250
|
+
_M_Ice.RouterFinderPrx = Ice.createTempClass()
|
|
251
|
+
class RouterFinderPrx(Ice.ObjectPrx):
|
|
252
|
+
|
|
253
|
+
"""
|
|
254
|
+
Get the router proxy implemented by the process hosting this
|
|
255
|
+
finder object. The proxy might point to several replicas.
|
|
256
|
+
Arguments:
|
|
257
|
+
context -- The request context for the invocation.
|
|
258
|
+
Returns: The router proxy.
|
|
259
|
+
"""
|
|
260
|
+
def getRouter(self, context=None):
|
|
261
|
+
return _M_Ice.RouterFinder._op_getRouter.invoke(self, ((), context))
|
|
262
|
+
|
|
263
|
+
"""
|
|
264
|
+
Get the router proxy implemented by the process hosting this
|
|
265
|
+
finder object. The proxy might point to several replicas.
|
|
266
|
+
Arguments:
|
|
267
|
+
context -- The request context for the invocation.
|
|
268
|
+
Returns: A future object for the invocation.
|
|
269
|
+
"""
|
|
270
|
+
def getRouterAsync(self, context=None):
|
|
271
|
+
return _M_Ice.RouterFinder._op_getRouter.invokeAsync(self, ((), context))
|
|
272
|
+
|
|
273
|
+
"""
|
|
274
|
+
Get the router proxy implemented by the process hosting this
|
|
275
|
+
finder object. The proxy might point to several replicas.
|
|
276
|
+
Arguments:
|
|
277
|
+
_response -- The asynchronous response callback.
|
|
278
|
+
_ex -- The asynchronous exception callback.
|
|
279
|
+
_sent -- The asynchronous sent callback.
|
|
280
|
+
context -- The request context for the invocation.
|
|
281
|
+
Returns: An asynchronous result object for the invocation.
|
|
282
|
+
"""
|
|
283
|
+
def begin_getRouter(self, _response=None, _ex=None, _sent=None, context=None):
|
|
284
|
+
return _M_Ice.RouterFinder._op_getRouter.begin(self, ((), _response, _ex, _sent, context))
|
|
285
|
+
|
|
286
|
+
"""
|
|
287
|
+
Get the router proxy implemented by the process hosting this
|
|
288
|
+
finder object. The proxy might point to several replicas.
|
|
289
|
+
Arguments:
|
|
290
|
+
Returns: The router proxy.
|
|
291
|
+
"""
|
|
292
|
+
def end_getRouter(self, _r):
|
|
293
|
+
return _M_Ice.RouterFinder._op_getRouter.end(self, _r)
|
|
294
|
+
|
|
295
|
+
@staticmethod
|
|
296
|
+
def checkedCast(proxy, facetOrContext=None, context=None):
|
|
297
|
+
return _M_Ice.RouterFinderPrx.ice_checkedCast(proxy, '::Ice::RouterFinder', facetOrContext, context)
|
|
298
|
+
|
|
299
|
+
@staticmethod
|
|
300
|
+
def uncheckedCast(proxy, facet=None):
|
|
301
|
+
return _M_Ice.RouterFinderPrx.ice_uncheckedCast(proxy, facet)
|
|
302
|
+
|
|
303
|
+
@staticmethod
|
|
304
|
+
def ice_staticId():
|
|
305
|
+
return '::Ice::RouterFinder'
|
|
306
|
+
_M_Ice._t_RouterFinderPrx = IcePy.defineProxy('::Ice::RouterFinder', RouterFinderPrx)
|
|
307
|
+
|
|
308
|
+
_M_Ice.RouterFinderPrx = RouterFinderPrx
|
|
309
|
+
del RouterFinderPrx
|
|
310
|
+
|
|
311
|
+
_M_Ice.RouterFinder = Ice.createTempClass()
|
|
312
|
+
class RouterFinder(Ice.Object):
|
|
313
|
+
|
|
314
|
+
def ice_ids(self, current=None):
|
|
315
|
+
return ('::Ice::Object', '::Ice::RouterFinder')
|
|
316
|
+
|
|
317
|
+
def ice_id(self, current=None):
|
|
318
|
+
return '::Ice::RouterFinder'
|
|
319
|
+
|
|
320
|
+
@staticmethod
|
|
321
|
+
def ice_staticId():
|
|
322
|
+
return '::Ice::RouterFinder'
|
|
323
|
+
|
|
324
|
+
def getRouter(self, current=None):
|
|
325
|
+
"""
|
|
326
|
+
Get the router proxy implemented by the process hosting this
|
|
327
|
+
finder object. The proxy might point to several replicas.
|
|
328
|
+
Arguments:
|
|
329
|
+
current -- The Current object for the invocation.
|
|
330
|
+
Returns: A future object for the invocation.
|
|
331
|
+
"""
|
|
332
|
+
raise NotImplementedError("servant method 'getRouter' not implemented")
|
|
333
|
+
|
|
334
|
+
def __str__(self):
|
|
335
|
+
return IcePy.stringify(self, _M_Ice._t_RouterFinderDisp)
|
|
336
|
+
|
|
337
|
+
__repr__ = __str__
|
|
338
|
+
|
|
339
|
+
_M_Ice._t_RouterFinderDisp = IcePy.defineClass('::Ice::RouterFinder', RouterFinder, (), None, ())
|
|
340
|
+
RouterFinder._ice_type = _M_Ice._t_RouterFinderDisp
|
|
341
|
+
|
|
342
|
+
RouterFinder._op_getRouter = IcePy.Operation('getRouter', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (), (), ((), _M_Ice._t_RouterPrx, False, 0), ())
|
|
343
|
+
|
|
344
|
+
_M_Ice.RouterFinder = RouterFinder
|
|
345
|
+
del RouterFinder
|
|
346
|
+
|
|
347
|
+
# End of module Ice
|
|
348
|
+
|
|
349
|
+
Ice.sliceChecksums["::Ice::Router"] = "5d699ae7ef13629643981f91ff236c55"
|
|
350
|
+
Ice.sliceChecksums["::Ice::RouterFinder"] = "94c0f14a95fc3b15b808186b4c3c512"
|
|
@@ -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 `ServantLocatorF.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 'ServantLocator' not in _M_Ice.__dict__:
|
|
25
|
+
_M_Ice._t_ServantLocator = IcePy.declareValue('::Ice::ServantLocator')
|
|
26
|
+
|
|
27
|
+
# End of module Ice
|
|
@@ -0,0 +1,110 @@
|
|
|
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 `ServantLocator.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.ObjectAdapterF_ice
|
|
20
|
+
import Ice.Current_ice
|
|
21
|
+
|
|
22
|
+
# Included module Ice
|
|
23
|
+
_M_Ice = Ice.openModule('Ice')
|
|
24
|
+
|
|
25
|
+
# Start of module Ice
|
|
26
|
+
__name__ = 'Ice'
|
|
27
|
+
|
|
28
|
+
if 'ServantLocator' not in _M_Ice.__dict__:
|
|
29
|
+
_M_Ice.ServantLocator = Ice.createTempClass()
|
|
30
|
+
class ServantLocator(object):
|
|
31
|
+
"""
|
|
32
|
+
A servant locator is called by an object adapter to
|
|
33
|
+
locate a servant that is not found in its active servant map.
|
|
34
|
+
"""
|
|
35
|
+
def __init__(self):
|
|
36
|
+
if Ice.getType(self) == _M_Ice.ServantLocator:
|
|
37
|
+
raise RuntimeError('Ice.ServantLocator is an abstract class')
|
|
38
|
+
|
|
39
|
+
def locate(self, curr):
|
|
40
|
+
"""
|
|
41
|
+
Called before a request is dispatched if a
|
|
42
|
+
servant cannot be found in the object adapter's active servant
|
|
43
|
+
map. Note that the object adapter does not automatically insert
|
|
44
|
+
the returned servant into its active servant map. This must be
|
|
45
|
+
done by the servant locator implementation, if this is desired.
|
|
46
|
+
locate can throw any user exception. If it does, that exception
|
|
47
|
+
is marshaled back to the client. If the Slice definition for the
|
|
48
|
+
corresponding operation includes that user exception, the client
|
|
49
|
+
receives that user exception; otherwise, the client receives
|
|
50
|
+
UnknownUserException.
|
|
51
|
+
If locate throws any exception, the Ice run time does not
|
|
52
|
+
call finished.
|
|
53
|
+
If you call locate from your own code, you
|
|
54
|
+
must also call finished when you have finished using the
|
|
55
|
+
servant, provided that locate returned a non-null servant;
|
|
56
|
+
otherwise, you will get undefined behavior if you use
|
|
57
|
+
servant locators such as the Freeze Evictor.
|
|
58
|
+
Arguments:
|
|
59
|
+
curr -- Information about the current operation for which a servant is required.
|
|
60
|
+
Returns a tuple containing the following:
|
|
61
|
+
_retval -- The located servant, or null if no suitable servant has been found.
|
|
62
|
+
cookie -- A "cookie" that will be passed to finished.
|
|
63
|
+
Throws:
|
|
64
|
+
UserException -- The implementation can raise a UserException and the run time will marshal it as the result of the invocation.
|
|
65
|
+
"""
|
|
66
|
+
raise NotImplementedError("method 'locate' not implemented")
|
|
67
|
+
|
|
68
|
+
def finished(self, curr, servant, cookie):
|
|
69
|
+
"""
|
|
70
|
+
Called by the object adapter after a request has been
|
|
71
|
+
made. This operation is only called if locate was called
|
|
72
|
+
prior to the request and returned a non-null servant. This
|
|
73
|
+
operation can be used for cleanup purposes after a request.
|
|
74
|
+
finished can throw any user exception. If it does, that exception
|
|
75
|
+
is marshaled back to the client. If the Slice definition for the
|
|
76
|
+
corresponding operation includes that user exception, the client
|
|
77
|
+
receives that user exception; otherwise, the client receives
|
|
78
|
+
UnknownUserException.
|
|
79
|
+
If both the operation and finished throw an exception, the
|
|
80
|
+
exception thrown by finished is marshaled back to the client.
|
|
81
|
+
Arguments:
|
|
82
|
+
curr -- Information about the current operation call for which a servant was located by locate.
|
|
83
|
+
servant -- The servant that was returned by locate.
|
|
84
|
+
cookie -- The cookie that was returned by locate.
|
|
85
|
+
Throws:
|
|
86
|
+
UserException -- The implementation can raise a UserException and the run time will marshal it as the result of the invocation.
|
|
87
|
+
"""
|
|
88
|
+
raise NotImplementedError("method 'finished' not implemented")
|
|
89
|
+
|
|
90
|
+
def deactivate(self, category):
|
|
91
|
+
"""
|
|
92
|
+
Called when the object adapter in which this servant locator is
|
|
93
|
+
installed is destroyed.
|
|
94
|
+
Arguments:
|
|
95
|
+
category -- Indicates for which category the servant locator is being deactivated.
|
|
96
|
+
"""
|
|
97
|
+
raise NotImplementedError("method 'deactivate' not implemented")
|
|
98
|
+
|
|
99
|
+
def __str__(self):
|
|
100
|
+
return IcePy.stringify(self, _M_Ice._t_ServantLocator)
|
|
101
|
+
|
|
102
|
+
__repr__ = __str__
|
|
103
|
+
|
|
104
|
+
_M_Ice._t_ServantLocator = IcePy.defineValue('::Ice::ServantLocator', ServantLocator, -1, (), False, True, None, ())
|
|
105
|
+
ServantLocator._ice_type = _M_Ice._t_ServantLocator
|
|
106
|
+
|
|
107
|
+
_M_Ice.ServantLocator = ServantLocator
|
|
108
|
+
del ServantLocator
|
|
109
|
+
|
|
110
|
+
# End of module Ice
|
|
@@ -0,0 +1,29 @@
|
|
|
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 `SliceChecksumDict.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_SliceChecksumDict' not in _M_Ice.__dict__:
|
|
25
|
+
_M_Ice._t_SliceChecksumDict = IcePy.defineDictionary('::Ice::SliceChecksumDict', (), IcePy._t_string, IcePy._t_string)
|
|
26
|
+
|
|
27
|
+
# End of module Ice
|
|
28
|
+
|
|
29
|
+
Ice.sliceChecksums["::Ice::SliceChecksumDict"] = "d733c49f2c6d79a346ca7d695f0519"
|
Ice/ValueFactory_ice.py
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
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 `ValueFactory.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 'ValueFactory' not in _M_Ice.__dict__:
|
|
25
|
+
_M_Ice.ValueFactory = Ice.createTempClass()
|
|
26
|
+
class ValueFactory(object):
|
|
27
|
+
"""
|
|
28
|
+
A factory for values. Value factories are used in several
|
|
29
|
+
places, such as when Ice receives a class instance and
|
|
30
|
+
when Freeze restores a persistent value. Value factories
|
|
31
|
+
must be implemented by the application writer and registered
|
|
32
|
+
with the communicator.
|
|
33
|
+
"""
|
|
34
|
+
def __init__(self):
|
|
35
|
+
if Ice.getType(self) == _M_Ice.ValueFactory:
|
|
36
|
+
raise RuntimeError('Ice.ValueFactory is an abstract class')
|
|
37
|
+
|
|
38
|
+
def create(self, type):
|
|
39
|
+
"""
|
|
40
|
+
Create a new value for a given value type. The type is the
|
|
41
|
+
absolute Slice type id, i.e., the id relative to the
|
|
42
|
+
unnamed top-level Slice module. For example, the absolute
|
|
43
|
+
Slice type id for an interface Bar in the module
|
|
44
|
+
Foo is "::Foo::Bar".
|
|
45
|
+
Note that the leading "::" is required.
|
|
46
|
+
Arguments:
|
|
47
|
+
type -- The value type.
|
|
48
|
+
Returns: The value created for the given type, or nil if the factory is unable to create the value.
|
|
49
|
+
"""
|
|
50
|
+
raise NotImplementedError("method 'create' not implemented")
|
|
51
|
+
|
|
52
|
+
def __str__(self):
|
|
53
|
+
return IcePy.stringify(self, _M_Ice._t_ValueFactory)
|
|
54
|
+
|
|
55
|
+
__repr__ = __str__
|
|
56
|
+
|
|
57
|
+
_M_Ice._t_ValueFactory = IcePy.defineValue('::Ice::ValueFactory', ValueFactory, -1, (), False, True, None, ())
|
|
58
|
+
ValueFactory._ice_type = _M_Ice._t_ValueFactory
|
|
59
|
+
|
|
60
|
+
_M_Ice.ValueFactory = ValueFactory
|
|
61
|
+
del ValueFactory
|
|
62
|
+
|
|
63
|
+
if 'ValueFactoryManager' not in _M_Ice.__dict__:
|
|
64
|
+
_M_Ice.ValueFactoryManager = Ice.createTempClass()
|
|
65
|
+
class ValueFactoryManager(object):
|
|
66
|
+
"""
|
|
67
|
+
A value factory manager maintains a collection of value factories.
|
|
68
|
+
An application can supply a custom implementation during communicator
|
|
69
|
+
initialization, otherwise Ice provides a default implementation.
|
|
70
|
+
"""
|
|
71
|
+
def __init__(self):
|
|
72
|
+
if Ice.getType(self) == _M_Ice.ValueFactoryManager:
|
|
73
|
+
raise RuntimeError('Ice.ValueFactoryManager is an abstract class')
|
|
74
|
+
|
|
75
|
+
def add(self, factory, id):
|
|
76
|
+
"""
|
|
77
|
+
Add a value factory. Attempting to add a factory with an id for
|
|
78
|
+
which a factory is already registered throws AlreadyRegisteredException.
|
|
79
|
+
When unmarshaling an Ice value, the Ice run time reads the
|
|
80
|
+
most-derived type id off the wire and attempts to create an
|
|
81
|
+
instance of the type using a factory. If no instance is created,
|
|
82
|
+
either because no factory was found, or because all factories
|
|
83
|
+
returned nil, the behavior of the Ice run time depends on the
|
|
84
|
+
format with which the value was marshaled:
|
|
85
|
+
If the value uses the "sliced" format, Ice ascends the class
|
|
86
|
+
hierarchy until it finds a type that is recognized by a factory,
|
|
87
|
+
or it reaches the least-derived type. If no factory is found that
|
|
88
|
+
can create an instance, the run time throws NoValueFactoryException.
|
|
89
|
+
If the value uses the "compact" format, Ice immediately raises
|
|
90
|
+
NoValueFactoryException.
|
|
91
|
+
The following order is used to locate a factory for a type:
|
|
92
|
+
The Ice run-time looks for a factory registered
|
|
93
|
+
specifically for the type.
|
|
94
|
+
If no instance has been created, the Ice run-time looks
|
|
95
|
+
for the default factory, which is registered with an empty type id.
|
|
96
|
+
If no instance has been created by any of the preceding
|
|
97
|
+
steps, the Ice run-time looks for a factory that may have been
|
|
98
|
+
statically generated by the language mapping for non-abstract classes.
|
|
99
|
+
Arguments:
|
|
100
|
+
factory -- The factory to add.
|
|
101
|
+
id -- The type id for which the factory can create instances, or an empty string for the default factory.
|
|
102
|
+
"""
|
|
103
|
+
raise NotImplementedError("method 'add' not implemented")
|
|
104
|
+
|
|
105
|
+
def find(self, id):
|
|
106
|
+
"""
|
|
107
|
+
Find an value factory registered with this communicator.
|
|
108
|
+
Arguments:
|
|
109
|
+
id -- The type id for which the factory can create instances, or an empty string for the default factory.
|
|
110
|
+
Returns: The value factory, or null if no value factory was found for the given id.
|
|
111
|
+
"""
|
|
112
|
+
raise NotImplementedError("method 'find' not implemented")
|
|
113
|
+
|
|
114
|
+
def __str__(self):
|
|
115
|
+
return IcePy.stringify(self, _M_Ice._t_ValueFactoryManager)
|
|
116
|
+
|
|
117
|
+
__repr__ = __str__
|
|
118
|
+
|
|
119
|
+
_M_Ice._t_ValueFactoryManager = IcePy.defineValue('::Ice::ValueFactoryManager', ValueFactoryManager, -1, (), False, True, None, ())
|
|
120
|
+
ValueFactoryManager._ice_type = _M_Ice._t_ValueFactoryManager
|
|
121
|
+
|
|
122
|
+
_M_Ice.ValueFactoryManager = ValueFactoryManager
|
|
123
|
+
del ValueFactoryManager
|
|
124
|
+
|
|
125
|
+
# End of module Ice
|