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.
- 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.cp314-win_amd64.pdb +0 -0
- IcePy.cp314-win_amd64.pyd +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 +143 -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
|
@@ -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 `ObjectAdapterF.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 'ObjectAdapter' not in _M_Ice.__dict__:
|
|
25
|
+
_M_Ice._t_ObjectAdapter = IcePy.declareValue('::Ice::ObjectAdapter')
|
|
26
|
+
|
|
27
|
+
# End of module Ice
|
Ice/ObjectAdapter_ice.py
ADDED
|
@@ -0,0 +1,461 @@
|
|
|
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 `ObjectAdapter.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.CommunicatorF_ice
|
|
20
|
+
import Ice.ServantLocatorF_ice
|
|
21
|
+
import Ice.Locator_ice
|
|
22
|
+
import Ice.FacetMap_ice
|
|
23
|
+
import Ice.Endpoint_ice
|
|
24
|
+
|
|
25
|
+
# Included module Ice
|
|
26
|
+
_M_Ice = Ice.openModule('Ice')
|
|
27
|
+
|
|
28
|
+
# Start of module Ice
|
|
29
|
+
__name__ = 'Ice'
|
|
30
|
+
|
|
31
|
+
if 'ObjectAdapter' not in _M_Ice.__dict__:
|
|
32
|
+
_M_Ice.ObjectAdapter = Ice.createTempClass()
|
|
33
|
+
class ObjectAdapter(object):
|
|
34
|
+
"""
|
|
35
|
+
The object adapter provides an up-call interface from the Ice
|
|
36
|
+
run time to the implementation of Ice objects.
|
|
37
|
+
The object adapter is responsible for receiving requests
|
|
38
|
+
from endpoints, and for mapping between servants, identities, and
|
|
39
|
+
proxies.
|
|
40
|
+
"""
|
|
41
|
+
def __init__(self):
|
|
42
|
+
if Ice.getType(self) == _M_Ice.ObjectAdapter:
|
|
43
|
+
raise RuntimeError('Ice.ObjectAdapter is an abstract class')
|
|
44
|
+
|
|
45
|
+
def getName(self):
|
|
46
|
+
"""
|
|
47
|
+
Get the name of this object adapter.
|
|
48
|
+
Returns: This object adapter's name.
|
|
49
|
+
"""
|
|
50
|
+
raise NotImplementedError("method 'getName' not implemented")
|
|
51
|
+
|
|
52
|
+
def getCommunicator(self):
|
|
53
|
+
"""
|
|
54
|
+
Get the communicator this object adapter belongs to.
|
|
55
|
+
Returns: This object adapter's communicator.
|
|
56
|
+
"""
|
|
57
|
+
raise NotImplementedError("method 'getCommunicator' not implemented")
|
|
58
|
+
|
|
59
|
+
def activate(self):
|
|
60
|
+
"""
|
|
61
|
+
Activate all endpoints that belong to this object adapter.
|
|
62
|
+
After activation, the object adapter can dispatch requests
|
|
63
|
+
received through its endpoints.
|
|
64
|
+
"""
|
|
65
|
+
raise NotImplementedError("method 'activate' not implemented")
|
|
66
|
+
|
|
67
|
+
def hold(self):
|
|
68
|
+
"""
|
|
69
|
+
Temporarily hold receiving and dispatching requests. The object
|
|
70
|
+
adapter can be reactivated with the activate operation.
|
|
71
|
+
Holding is not immediate, i.e., after hold
|
|
72
|
+
returns, the object adapter might still be active for some
|
|
73
|
+
time. You can use waitForHold to wait until holding is
|
|
74
|
+
complete.
|
|
75
|
+
"""
|
|
76
|
+
raise NotImplementedError("method 'hold' not implemented")
|
|
77
|
+
|
|
78
|
+
def waitForHold(self):
|
|
79
|
+
"""
|
|
80
|
+
Wait until the object adapter holds requests. Calling hold
|
|
81
|
+
initiates holding of requests, and waitForHold only returns
|
|
82
|
+
when holding of requests has been completed.
|
|
83
|
+
"""
|
|
84
|
+
raise NotImplementedError("method 'waitForHold' not implemented")
|
|
85
|
+
|
|
86
|
+
def deactivate(self):
|
|
87
|
+
"""
|
|
88
|
+
Deactivate all endpoints that belong to this object adapter.
|
|
89
|
+
After deactivation, the object adapter stops receiving
|
|
90
|
+
requests through its endpoints. Object adapters that have been
|
|
91
|
+
deactivated must not be reactivated again, and cannot be used
|
|
92
|
+
otherwise. Attempts to use a deactivated object adapter raise
|
|
93
|
+
ObjectAdapterDeactivatedException however, attempts to
|
|
94
|
+
deactivate an already deactivated object adapter are
|
|
95
|
+
ignored and do nothing. Once deactivated, it is possible to
|
|
96
|
+
destroy the adapter to clean up resources and then create and
|
|
97
|
+
activate a new adapter with the same name.
|
|
98
|
+
After deactivate returns, no new requests
|
|
99
|
+
are processed by the object adapter. However, requests that
|
|
100
|
+
have been started before deactivate was called might
|
|
101
|
+
still be active. You can use waitForDeactivate to wait
|
|
102
|
+
for the completion of all requests for this object adapter.
|
|
103
|
+
"""
|
|
104
|
+
raise NotImplementedError("method 'deactivate' not implemented")
|
|
105
|
+
|
|
106
|
+
def waitForDeactivate(self):
|
|
107
|
+
"""
|
|
108
|
+
Wait until the object adapter has deactivated. Calling
|
|
109
|
+
deactivate initiates object adapter deactivation, and
|
|
110
|
+
waitForDeactivate only returns when deactivation has
|
|
111
|
+
been completed.
|
|
112
|
+
"""
|
|
113
|
+
raise NotImplementedError("method 'waitForDeactivate' not implemented")
|
|
114
|
+
|
|
115
|
+
def isDeactivated(self):
|
|
116
|
+
"""
|
|
117
|
+
Check whether object adapter has been deactivated.
|
|
118
|
+
Returns: Whether adapter has been deactivated.
|
|
119
|
+
"""
|
|
120
|
+
raise NotImplementedError("method 'isDeactivated' not implemented")
|
|
121
|
+
|
|
122
|
+
def destroy(self):
|
|
123
|
+
"""
|
|
124
|
+
Destroys the object adapter and cleans up all resources held by
|
|
125
|
+
the object adapter. If the object adapter has not yet been
|
|
126
|
+
deactivated, destroy implicitly initiates the deactivation
|
|
127
|
+
and waits for it to finish. Subsequent calls to destroy are
|
|
128
|
+
ignored. Once destroy has returned, it is possible to create
|
|
129
|
+
another object adapter with the same name.
|
|
130
|
+
"""
|
|
131
|
+
raise NotImplementedError("method 'destroy' not implemented")
|
|
132
|
+
|
|
133
|
+
def add(self, servant, id):
|
|
134
|
+
"""
|
|
135
|
+
Add a servant to this object adapter's Active Servant Map. Note
|
|
136
|
+
that one servant can implement several Ice objects by registering
|
|
137
|
+
the servant with multiple identities. Adding a servant with an
|
|
138
|
+
identity that is in the map already throws AlreadyRegisteredException.
|
|
139
|
+
Arguments:
|
|
140
|
+
servant -- The servant to add.
|
|
141
|
+
id -- The identity of the Ice object that is implemented by the servant.
|
|
142
|
+
Returns: A proxy that matches the given identity and this object adapter.
|
|
143
|
+
"""
|
|
144
|
+
raise NotImplementedError("method 'add' not implemented")
|
|
145
|
+
|
|
146
|
+
def addFacet(self, servant, id, facet):
|
|
147
|
+
"""
|
|
148
|
+
Like add, but with a facet. Calling add(servant, id)
|
|
149
|
+
is equivalent to calling addFacet with an empty facet.
|
|
150
|
+
Arguments:
|
|
151
|
+
servant -- The servant to add.
|
|
152
|
+
id -- The identity of the Ice object that is implemented by the servant.
|
|
153
|
+
facet -- The facet. An empty facet means the default facet.
|
|
154
|
+
Returns: A proxy that matches the given identity, facet, and this object adapter.
|
|
155
|
+
"""
|
|
156
|
+
raise NotImplementedError("method 'addFacet' not implemented")
|
|
157
|
+
|
|
158
|
+
def addWithUUID(self, servant):
|
|
159
|
+
"""
|
|
160
|
+
Add a servant to this object adapter's Active Servant Map,
|
|
161
|
+
using an automatically generated UUID as its identity. Note that
|
|
162
|
+
the generated UUID identity can be accessed using the proxy's
|
|
163
|
+
ice_getIdentity operation.
|
|
164
|
+
Arguments:
|
|
165
|
+
servant -- The servant to add.
|
|
166
|
+
Returns: A proxy that matches the generated UUID identity and this object adapter.
|
|
167
|
+
"""
|
|
168
|
+
raise NotImplementedError("method 'addWithUUID' not implemented")
|
|
169
|
+
|
|
170
|
+
def addFacetWithUUID(self, servant, facet):
|
|
171
|
+
"""
|
|
172
|
+
Like addWithUUID, but with a facet. Calling
|
|
173
|
+
addWithUUID(servant) is equivalent to calling
|
|
174
|
+
addFacetWithUUID with an empty facet.
|
|
175
|
+
Arguments:
|
|
176
|
+
servant -- The servant to add.
|
|
177
|
+
facet -- The facet. An empty facet means the default facet.
|
|
178
|
+
Returns: A proxy that matches the generated UUID identity, facet, and this object adapter.
|
|
179
|
+
"""
|
|
180
|
+
raise NotImplementedError("method 'addFacetWithUUID' not implemented")
|
|
181
|
+
|
|
182
|
+
def addDefaultServant(self, servant, category):
|
|
183
|
+
"""
|
|
184
|
+
Add a default servant to handle requests for a specific
|
|
185
|
+
category. Adding a default servant for a category for
|
|
186
|
+
which a default servant is already registered throws
|
|
187
|
+
AlreadyRegisteredException. To dispatch operation
|
|
188
|
+
calls on servants, the object adapter tries to find a servant
|
|
189
|
+
for a given Ice object identity and facet in the following
|
|
190
|
+
order:
|
|
191
|
+
The object adapter tries to find a servant for the identity
|
|
192
|
+
and facet in the Active Servant Map.
|
|
193
|
+
If no servant has been found in the Active Servant Map, the
|
|
194
|
+
object adapter tries to find a default servant for the category
|
|
195
|
+
component of the identity.
|
|
196
|
+
If no servant has been found by any of the preceding steps,
|
|
197
|
+
the object adapter tries to find a default servant for an empty
|
|
198
|
+
category, regardless of the category contained in the identity.
|
|
199
|
+
If no servant has been found by any of the preceding steps,
|
|
200
|
+
the object adapter gives up and the caller receives
|
|
201
|
+
ObjectNotExistException or FacetNotExistException.
|
|
202
|
+
Arguments:
|
|
203
|
+
servant -- The default servant.
|
|
204
|
+
category -- The category for which the default servant is registered. An empty category means it will handle all categories.
|
|
205
|
+
"""
|
|
206
|
+
raise NotImplementedError("method 'addDefaultServant' not implemented")
|
|
207
|
+
|
|
208
|
+
def remove(self, id):
|
|
209
|
+
"""
|
|
210
|
+
Remove a servant (that is, the default facet) from the object
|
|
211
|
+
adapter's Active Servant Map.
|
|
212
|
+
Arguments:
|
|
213
|
+
id -- The identity of the Ice object that is implemented by the servant. If the servant implements multiple Ice objects, remove has to be called for all those Ice objects. Removing an identity that is not in the map throws NotRegisteredException.
|
|
214
|
+
Returns: The removed servant.
|
|
215
|
+
"""
|
|
216
|
+
raise NotImplementedError("method 'remove' not implemented")
|
|
217
|
+
|
|
218
|
+
def removeFacet(self, id, facet):
|
|
219
|
+
"""
|
|
220
|
+
Like remove, but with a facet. Calling remove(id)
|
|
221
|
+
is equivalent to calling removeFacet with an empty facet.
|
|
222
|
+
Arguments:
|
|
223
|
+
id -- The identity of the Ice object that is implemented by the servant.
|
|
224
|
+
facet -- The facet. An empty facet means the default facet.
|
|
225
|
+
Returns: The removed servant.
|
|
226
|
+
"""
|
|
227
|
+
raise NotImplementedError("method 'removeFacet' not implemented")
|
|
228
|
+
|
|
229
|
+
def removeAllFacets(self, id):
|
|
230
|
+
"""
|
|
231
|
+
Remove all facets with the given identity from the Active
|
|
232
|
+
Servant Map. The operation completely removes the Ice object,
|
|
233
|
+
including its default facet. Removing an identity that
|
|
234
|
+
is not in the map throws NotRegisteredException.
|
|
235
|
+
Arguments:
|
|
236
|
+
id -- The identity of the Ice object to be removed.
|
|
237
|
+
Returns: A collection containing all the facet names and servants of the removed Ice object.
|
|
238
|
+
"""
|
|
239
|
+
raise NotImplementedError("method 'removeAllFacets' not implemented")
|
|
240
|
+
|
|
241
|
+
def removeDefaultServant(self, category):
|
|
242
|
+
"""
|
|
243
|
+
Remove the default servant for a specific category. Attempting
|
|
244
|
+
to remove a default servant for a category that is not
|
|
245
|
+
registered throws NotRegisteredException.
|
|
246
|
+
Arguments:
|
|
247
|
+
category -- The category of the default servant to remove.
|
|
248
|
+
Returns: The default servant.
|
|
249
|
+
"""
|
|
250
|
+
raise NotImplementedError("method 'removeDefaultServant' not implemented")
|
|
251
|
+
|
|
252
|
+
def find(self, id):
|
|
253
|
+
"""
|
|
254
|
+
Look up a servant in this object adapter's Active Servant Map
|
|
255
|
+
by the identity of the Ice object it implements.
|
|
256
|
+
This operation only tries to look up a servant in
|
|
257
|
+
the Active Servant Map. It does not attempt to find a servant
|
|
258
|
+
by using any installed ServantLocator.
|
|
259
|
+
Arguments:
|
|
260
|
+
id -- The identity of the Ice object for which the servant should be returned.
|
|
261
|
+
Returns: The servant that implements the Ice object with the given identity, or null if no such servant has been found.
|
|
262
|
+
"""
|
|
263
|
+
raise NotImplementedError("method 'find' not implemented")
|
|
264
|
+
|
|
265
|
+
def findFacet(self, id, facet):
|
|
266
|
+
"""
|
|
267
|
+
Like find, but with a facet. Calling find(id)
|
|
268
|
+
is equivalent to calling findFacet with an empty
|
|
269
|
+
facet.
|
|
270
|
+
Arguments:
|
|
271
|
+
id -- The identity of the Ice object for which the servant should be returned.
|
|
272
|
+
facet -- The facet. An empty facet means the default facet.
|
|
273
|
+
Returns: The servant that implements the Ice object with the given identity and facet, or null if no such servant has been found.
|
|
274
|
+
"""
|
|
275
|
+
raise NotImplementedError("method 'findFacet' not implemented")
|
|
276
|
+
|
|
277
|
+
def findAllFacets(self, id):
|
|
278
|
+
"""
|
|
279
|
+
Find all facets with the given identity in the Active Servant
|
|
280
|
+
Map.
|
|
281
|
+
Arguments:
|
|
282
|
+
id -- The identity of the Ice object for which the facets should be returned.
|
|
283
|
+
Returns: A collection containing all the facet names and servants that have been found, or an empty map if there is no facet for the given identity.
|
|
284
|
+
"""
|
|
285
|
+
raise NotImplementedError("method 'findAllFacets' not implemented")
|
|
286
|
+
|
|
287
|
+
def findByProxy(self, proxy):
|
|
288
|
+
"""
|
|
289
|
+
Look up a servant in this object adapter's Active Servant Map,
|
|
290
|
+
given a proxy.
|
|
291
|
+
This operation only tries to lookup a servant in
|
|
292
|
+
the Active Servant Map. It does not attempt to find a servant
|
|
293
|
+
by using any installed ServantLocator.
|
|
294
|
+
Arguments:
|
|
295
|
+
proxy -- The proxy for which the servant should be returned.
|
|
296
|
+
Returns: The servant that matches the proxy, or null if no such servant has been found.
|
|
297
|
+
"""
|
|
298
|
+
raise NotImplementedError("method 'findByProxy' not implemented")
|
|
299
|
+
|
|
300
|
+
def addServantLocator(self, locator, category):
|
|
301
|
+
"""
|
|
302
|
+
Add a Servant Locator to this object adapter. Adding a servant
|
|
303
|
+
locator for a category for which a servant locator is already
|
|
304
|
+
registered throws AlreadyRegisteredException. To dispatch
|
|
305
|
+
operation calls on servants, the object adapter tries to find a
|
|
306
|
+
servant for a given Ice object identity and facet in the
|
|
307
|
+
following order:
|
|
308
|
+
The object adapter tries to find a servant for the identity
|
|
309
|
+
and facet in the Active Servant Map.
|
|
310
|
+
If no servant has been found in the Active Servant Map,
|
|
311
|
+
the object adapter tries to find a servant locator for the
|
|
312
|
+
category component of the identity. If a locator is found, the
|
|
313
|
+
object adapter tries to find a servant using this locator.
|
|
314
|
+
If no servant has been found by any of the preceding steps,
|
|
315
|
+
the object adapter tries to find a locator for an empty category,
|
|
316
|
+
regardless of the category contained in the identity. If a
|
|
317
|
+
locator is found, the object adapter tries to find a servant
|
|
318
|
+
using this locator.
|
|
319
|
+
If no servant has been found by any of the preceding steps,
|
|
320
|
+
the object adapter gives up and the caller receives
|
|
321
|
+
ObjectNotExistException or FacetNotExistException.
|
|
322
|
+
Only one locator for the empty category can be
|
|
323
|
+
installed.
|
|
324
|
+
Arguments:
|
|
325
|
+
locator -- The locator to add.
|
|
326
|
+
category -- The category for which the Servant Locator can locate servants, or an empty string if the Servant Locator does not belong to any specific category.
|
|
327
|
+
"""
|
|
328
|
+
raise NotImplementedError("method 'addServantLocator' not implemented")
|
|
329
|
+
|
|
330
|
+
def removeServantLocator(self, category):
|
|
331
|
+
"""
|
|
332
|
+
Remove a Servant Locator from this object adapter.
|
|
333
|
+
Arguments:
|
|
334
|
+
category -- The category for which the Servant Locator can locate servants, or an empty string if the Servant Locator does not belong to any specific category.
|
|
335
|
+
Returns: The Servant Locator, or throws NotRegisteredException if no Servant Locator was found for the given category.
|
|
336
|
+
"""
|
|
337
|
+
raise NotImplementedError("method 'removeServantLocator' not implemented")
|
|
338
|
+
|
|
339
|
+
def findServantLocator(self, category):
|
|
340
|
+
"""
|
|
341
|
+
Find a Servant Locator installed with this object adapter.
|
|
342
|
+
Arguments:
|
|
343
|
+
category -- The category for which the Servant Locator can locate servants, or an empty string if the Servant Locator does not belong to any specific category.
|
|
344
|
+
Returns: The Servant Locator, or null if no Servant Locator was found for the given category.
|
|
345
|
+
"""
|
|
346
|
+
raise NotImplementedError("method 'findServantLocator' not implemented")
|
|
347
|
+
|
|
348
|
+
def findDefaultServant(self, category):
|
|
349
|
+
"""
|
|
350
|
+
Find the default servant for a specific category.
|
|
351
|
+
Arguments:
|
|
352
|
+
category -- The category of the default servant to find.
|
|
353
|
+
Returns: The default servant or null if no default servant was registered for the category.
|
|
354
|
+
"""
|
|
355
|
+
raise NotImplementedError("method 'findDefaultServant' not implemented")
|
|
356
|
+
|
|
357
|
+
def createProxy(self, id):
|
|
358
|
+
"""
|
|
359
|
+
Create a proxy for the object with the given identity. If this
|
|
360
|
+
object adapter is configured with an adapter id, the return
|
|
361
|
+
value is an indirect proxy that refers to the adapter id. If
|
|
362
|
+
a replica group id is also defined, the return value is an
|
|
363
|
+
indirect proxy that refers to the replica group id. Otherwise,
|
|
364
|
+
if no adapter id is defined, the return value is a direct
|
|
365
|
+
proxy containing this object adapter's published endpoints.
|
|
366
|
+
Arguments:
|
|
367
|
+
id -- The object's identity.
|
|
368
|
+
Returns: A proxy for the object with the given identity.
|
|
369
|
+
"""
|
|
370
|
+
raise NotImplementedError("method 'createProxy' not implemented")
|
|
371
|
+
|
|
372
|
+
def createDirectProxy(self, id):
|
|
373
|
+
"""
|
|
374
|
+
Create a direct proxy for the object with the given identity.
|
|
375
|
+
The returned proxy contains this object adapter's published
|
|
376
|
+
endpoints.
|
|
377
|
+
Arguments:
|
|
378
|
+
id -- The object's identity.
|
|
379
|
+
Returns: A proxy for the object with the given identity.
|
|
380
|
+
"""
|
|
381
|
+
raise NotImplementedError("method 'createDirectProxy' not implemented")
|
|
382
|
+
|
|
383
|
+
def createIndirectProxy(self, id):
|
|
384
|
+
"""
|
|
385
|
+
Create an indirect proxy for the object with the given identity.
|
|
386
|
+
If this object adapter is configured with an adapter id, the
|
|
387
|
+
return value refers to the adapter id. Otherwise, the return
|
|
388
|
+
value contains only the object identity.
|
|
389
|
+
Arguments:
|
|
390
|
+
id -- The object's identity.
|
|
391
|
+
Returns: A proxy for the object with the given identity.
|
|
392
|
+
"""
|
|
393
|
+
raise NotImplementedError("method 'createIndirectProxy' not implemented")
|
|
394
|
+
|
|
395
|
+
def setLocator(self, loc):
|
|
396
|
+
"""
|
|
397
|
+
Set an Ice locator for this object adapter. By doing so, the
|
|
398
|
+
object adapter will register itself with the locator registry
|
|
399
|
+
when it is activated for the first time. Furthermore, the proxies
|
|
400
|
+
created by this object adapter will contain the adapter identifier
|
|
401
|
+
instead of its endpoints. The adapter identifier must be configured
|
|
402
|
+
using the AdapterId property.
|
|
403
|
+
Arguments:
|
|
404
|
+
loc -- The locator used by this object adapter.
|
|
405
|
+
"""
|
|
406
|
+
raise NotImplementedError("method 'setLocator' not implemented")
|
|
407
|
+
|
|
408
|
+
def getLocator(self):
|
|
409
|
+
"""
|
|
410
|
+
Get the Ice locator used by this object adapter.
|
|
411
|
+
Returns: The locator used by this object adapter, or null if no locator is used by this object adapter.
|
|
412
|
+
"""
|
|
413
|
+
raise NotImplementedError("method 'getLocator' not implemented")
|
|
414
|
+
|
|
415
|
+
def getEndpoints(self):
|
|
416
|
+
"""
|
|
417
|
+
Get the set of endpoints configured with this object adapter.
|
|
418
|
+
Returns: The set of endpoints.
|
|
419
|
+
"""
|
|
420
|
+
raise NotImplementedError("method 'getEndpoints' not implemented")
|
|
421
|
+
|
|
422
|
+
def refreshPublishedEndpoints(self):
|
|
423
|
+
"""
|
|
424
|
+
Refresh the set of published endpoints. The run time re-reads
|
|
425
|
+
the PublishedEndpoints property if it is set and re-reads the
|
|
426
|
+
list of local interfaces if the adapter is configured to listen
|
|
427
|
+
on all endpoints. This operation is useful to refresh the endpoint
|
|
428
|
+
information that is published in the proxies that are created by
|
|
429
|
+
an object adapter if the network interfaces used by a host changes.
|
|
430
|
+
"""
|
|
431
|
+
raise NotImplementedError("method 'refreshPublishedEndpoints' not implemented")
|
|
432
|
+
|
|
433
|
+
def getPublishedEndpoints(self):
|
|
434
|
+
"""
|
|
435
|
+
Get the set of endpoints that proxies created by this object
|
|
436
|
+
adapter will contain.
|
|
437
|
+
Returns: The set of published endpoints.
|
|
438
|
+
"""
|
|
439
|
+
raise NotImplementedError("method 'getPublishedEndpoints' not implemented")
|
|
440
|
+
|
|
441
|
+
def setPublishedEndpoints(self, newEndpoints):
|
|
442
|
+
"""
|
|
443
|
+
Set of the endpoints that proxies created by this object
|
|
444
|
+
adapter will contain.
|
|
445
|
+
Arguments:
|
|
446
|
+
newEndpoints -- The new set of endpoints that the object adapter will embed in proxies.
|
|
447
|
+
"""
|
|
448
|
+
raise NotImplementedError("method 'setPublishedEndpoints' not implemented")
|
|
449
|
+
|
|
450
|
+
def __str__(self):
|
|
451
|
+
return IcePy.stringify(self, _M_Ice._t_ObjectAdapter)
|
|
452
|
+
|
|
453
|
+
__repr__ = __str__
|
|
454
|
+
|
|
455
|
+
_M_Ice._t_ObjectAdapter = IcePy.defineValue('::Ice::ObjectAdapter', ObjectAdapter, -1, (), False, True, None, ())
|
|
456
|
+
ObjectAdapter._ice_type = _M_Ice._t_ObjectAdapter
|
|
457
|
+
|
|
458
|
+
_M_Ice.ObjectAdapter = ObjectAdapter
|
|
459
|
+
del ObjectAdapter
|
|
460
|
+
|
|
461
|
+
# End of module Ice
|
Ice/ObjectFactory_ice.py
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
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 `ObjectFactory.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 'ObjectFactory' not in _M_Ice.__dict__:
|
|
25
|
+
_M_Ice.ObjectFactory = Ice.createTempClass()
|
|
26
|
+
class ObjectFactory(object):
|
|
27
|
+
"""
|
|
28
|
+
A factory for objects. Object factories are used when receiving "objects by value".
|
|
29
|
+
An object factory must be implemented by the application writer and registered
|
|
30
|
+
with the communicator.
|
|
31
|
+
"""
|
|
32
|
+
def __init__(self):
|
|
33
|
+
if Ice.getType(self) == _M_Ice.ObjectFactory:
|
|
34
|
+
raise RuntimeError('Ice.ObjectFactory is an abstract class')
|
|
35
|
+
|
|
36
|
+
def create(self, type):
|
|
37
|
+
"""
|
|
38
|
+
Create a new object for a given object type. The type is the
|
|
39
|
+
absolute Slice type id, i.e., the id relative to the
|
|
40
|
+
unnamed top-level Slice module. For example, the absolute
|
|
41
|
+
Slice type id for interfaces of type Bar in the module
|
|
42
|
+
Foo is "::Foo::Bar".
|
|
43
|
+
The leading "::" is required.
|
|
44
|
+
Arguments:
|
|
45
|
+
type -- The object type.
|
|
46
|
+
Returns: The object created for the given type, or nil if the factory is unable to create the object.
|
|
47
|
+
"""
|
|
48
|
+
raise NotImplementedError("method 'create' not implemented")
|
|
49
|
+
|
|
50
|
+
def destroy(self):
|
|
51
|
+
"""
|
|
52
|
+
Called when the factory is removed from the communicator, or if
|
|
53
|
+
the communicator is destroyed.
|
|
54
|
+
"""
|
|
55
|
+
raise NotImplementedError("method 'destroy' not implemented")
|
|
56
|
+
|
|
57
|
+
def __str__(self):
|
|
58
|
+
return IcePy.stringify(self, _M_Ice._t_ObjectFactory)
|
|
59
|
+
|
|
60
|
+
__repr__ = __str__
|
|
61
|
+
|
|
62
|
+
_M_Ice._t_ObjectFactory = IcePy.defineValue('::Ice::ObjectFactory', ObjectFactory, -1, (), False, True, None, ())
|
|
63
|
+
ObjectFactory._ice_type = _M_Ice._t_ObjectFactory
|
|
64
|
+
|
|
65
|
+
_M_Ice.ObjectFactory = ObjectFactory
|
|
66
|
+
del ObjectFactory
|
|
67
|
+
|
|
68
|
+
# End of module Ice
|
Ice/PluginF_ice.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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 `PluginF.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 'Plugin' not in _M_Ice.__dict__:
|
|
25
|
+
_M_Ice._t_Plugin = IcePy.declareValue('::Ice::Plugin')
|
|
26
|
+
|
|
27
|
+
if 'PluginManager' not in _M_Ice.__dict__:
|
|
28
|
+
_M_Ice._t_PluginManager = IcePy.declareValue('::Ice::PluginManager')
|
|
29
|
+
|
|
30
|
+
# End of module Ice
|