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
Ice/Connection_ice.py
ADDED
|
@@ -0,0 +1,680 @@
|
|
|
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 `Connection.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.Identity_ice
|
|
21
|
+
import Ice.Endpoint_ice
|
|
22
|
+
|
|
23
|
+
# Included module Ice
|
|
24
|
+
_M_Ice = Ice.openModule('Ice')
|
|
25
|
+
|
|
26
|
+
# Start of module Ice
|
|
27
|
+
__name__ = 'Ice'
|
|
28
|
+
|
|
29
|
+
if 'CompressBatch' not in _M_Ice.__dict__:
|
|
30
|
+
_M_Ice.CompressBatch = Ice.createTempClass()
|
|
31
|
+
class CompressBatch(Ice.EnumBase):
|
|
32
|
+
"""
|
|
33
|
+
The batch compression option when flushing queued batch requests.
|
|
34
|
+
Enumerators:
|
|
35
|
+
Yes -- Compress the batch requests.
|
|
36
|
+
No -- Don't compress the batch requests.
|
|
37
|
+
BasedOnProxy -- Compress the batch requests if at least one request was
|
|
38
|
+
made on a compressed proxy.
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
def __init__(self, _n, _v):
|
|
42
|
+
Ice.EnumBase.__init__(self, _n, _v)
|
|
43
|
+
|
|
44
|
+
def valueOf(self, _n):
|
|
45
|
+
if _n in self._enumerators:
|
|
46
|
+
return self._enumerators[_n]
|
|
47
|
+
return None
|
|
48
|
+
valueOf = classmethod(valueOf)
|
|
49
|
+
|
|
50
|
+
CompressBatch.Yes = CompressBatch("Yes", 0)
|
|
51
|
+
CompressBatch.No = CompressBatch("No", 1)
|
|
52
|
+
CompressBatch.BasedOnProxy = CompressBatch("BasedOnProxy", 2)
|
|
53
|
+
CompressBatch._enumerators = { 0:CompressBatch.Yes, 1:CompressBatch.No, 2:CompressBatch.BasedOnProxy }
|
|
54
|
+
|
|
55
|
+
_M_Ice._t_CompressBatch = IcePy.defineEnum('::Ice::CompressBatch', CompressBatch, (), CompressBatch._enumerators)
|
|
56
|
+
|
|
57
|
+
_M_Ice.CompressBatch = CompressBatch
|
|
58
|
+
del CompressBatch
|
|
59
|
+
|
|
60
|
+
if 'ConnectionInfo' not in _M_Ice.__dict__:
|
|
61
|
+
_M_Ice.ConnectionInfo = Ice.createTempClass()
|
|
62
|
+
class ConnectionInfo(object):
|
|
63
|
+
"""
|
|
64
|
+
Base class providing access to the connection details.
|
|
65
|
+
Members:
|
|
66
|
+
underlying -- The information of the underyling transport or null if there's
|
|
67
|
+
no underlying transport.
|
|
68
|
+
incoming -- Whether or not the connection is an incoming or outgoing
|
|
69
|
+
connection.
|
|
70
|
+
adapterName -- The name of the adapter associated with the connection.
|
|
71
|
+
connectionId -- The connection id.
|
|
72
|
+
"""
|
|
73
|
+
def __init__(self, underlying=None, incoming=False, adapterName='', connectionId=''):
|
|
74
|
+
self.underlying = underlying
|
|
75
|
+
self.incoming = incoming
|
|
76
|
+
self.adapterName = adapterName
|
|
77
|
+
self.connectionId = connectionId
|
|
78
|
+
|
|
79
|
+
def __str__(self):
|
|
80
|
+
return IcePy.stringify(self, _M_Ice._t_ConnectionInfo)
|
|
81
|
+
|
|
82
|
+
__repr__ = __str__
|
|
83
|
+
|
|
84
|
+
_M_Ice._t_ConnectionInfo = IcePy.declareValue('::Ice::ConnectionInfo')
|
|
85
|
+
|
|
86
|
+
_M_Ice._t_ConnectionInfo = IcePy.defineValue('::Ice::ConnectionInfo', ConnectionInfo, -1, (), False, False, None, (
|
|
87
|
+
('underlying', (), _M_Ice._t_ConnectionInfo, False, 0),
|
|
88
|
+
('incoming', (), IcePy._t_bool, False, 0),
|
|
89
|
+
('adapterName', (), IcePy._t_string, False, 0),
|
|
90
|
+
('connectionId', (), IcePy._t_string, False, 0)
|
|
91
|
+
))
|
|
92
|
+
ConnectionInfo._ice_type = _M_Ice._t_ConnectionInfo
|
|
93
|
+
|
|
94
|
+
_M_Ice.ConnectionInfo = ConnectionInfo
|
|
95
|
+
del ConnectionInfo
|
|
96
|
+
|
|
97
|
+
if 'Connection' not in _M_Ice.__dict__:
|
|
98
|
+
_M_Ice._t_Connection = IcePy.declareValue('::Ice::Connection')
|
|
99
|
+
|
|
100
|
+
if 'CloseCallback' not in _M_Ice.__dict__:
|
|
101
|
+
_M_Ice.CloseCallback = Ice.createTempClass()
|
|
102
|
+
class CloseCallback(object):
|
|
103
|
+
"""
|
|
104
|
+
An application can implement this interface to receive notifications when
|
|
105
|
+
a connection closes.
|
|
106
|
+
"""
|
|
107
|
+
def __init__(self):
|
|
108
|
+
if Ice.getType(self) == _M_Ice.CloseCallback:
|
|
109
|
+
raise RuntimeError('Ice.CloseCallback is an abstract class')
|
|
110
|
+
|
|
111
|
+
def closed(self, con):
|
|
112
|
+
"""
|
|
113
|
+
This method is called by the connection when the connection is
|
|
114
|
+
closed. If the callback needs more information about the closure,
|
|
115
|
+
it can call Connection#throwException.
|
|
116
|
+
Arguments:
|
|
117
|
+
con -- The connection that closed.
|
|
118
|
+
"""
|
|
119
|
+
raise NotImplementedError("method 'closed' not implemented")
|
|
120
|
+
|
|
121
|
+
def __str__(self):
|
|
122
|
+
return IcePy.stringify(self, _M_Ice._t_CloseCallback)
|
|
123
|
+
|
|
124
|
+
__repr__ = __str__
|
|
125
|
+
|
|
126
|
+
_M_Ice._t_CloseCallback = IcePy.defineValue('::Ice::CloseCallback', CloseCallback, -1, (), False, True, None, ())
|
|
127
|
+
CloseCallback._ice_type = _M_Ice._t_CloseCallback
|
|
128
|
+
|
|
129
|
+
_M_Ice.CloseCallback = CloseCallback
|
|
130
|
+
del CloseCallback
|
|
131
|
+
|
|
132
|
+
if 'HeartbeatCallback' not in _M_Ice.__dict__:
|
|
133
|
+
_M_Ice.HeartbeatCallback = Ice.createTempClass()
|
|
134
|
+
class HeartbeatCallback(object):
|
|
135
|
+
"""
|
|
136
|
+
An application can implement this interface to receive notifications when
|
|
137
|
+
a connection receives a heartbeat message.
|
|
138
|
+
"""
|
|
139
|
+
def __init__(self):
|
|
140
|
+
if Ice.getType(self) == _M_Ice.HeartbeatCallback:
|
|
141
|
+
raise RuntimeError('Ice.HeartbeatCallback is an abstract class')
|
|
142
|
+
|
|
143
|
+
def heartbeat(self, con):
|
|
144
|
+
"""
|
|
145
|
+
This method is called by the connection when a heartbeat is
|
|
146
|
+
received from the peer.
|
|
147
|
+
Arguments:
|
|
148
|
+
con -- The connection on which a heartbeat was received.
|
|
149
|
+
"""
|
|
150
|
+
raise NotImplementedError("method 'heartbeat' not implemented")
|
|
151
|
+
|
|
152
|
+
def __str__(self):
|
|
153
|
+
return IcePy.stringify(self, _M_Ice._t_HeartbeatCallback)
|
|
154
|
+
|
|
155
|
+
__repr__ = __str__
|
|
156
|
+
|
|
157
|
+
_M_Ice._t_HeartbeatCallback = IcePy.defineValue('::Ice::HeartbeatCallback', HeartbeatCallback, -1, (), False, True, None, ())
|
|
158
|
+
HeartbeatCallback._ice_type = _M_Ice._t_HeartbeatCallback
|
|
159
|
+
|
|
160
|
+
_M_Ice.HeartbeatCallback = HeartbeatCallback
|
|
161
|
+
del HeartbeatCallback
|
|
162
|
+
|
|
163
|
+
if 'ACMClose' not in _M_Ice.__dict__:
|
|
164
|
+
_M_Ice.ACMClose = Ice.createTempClass()
|
|
165
|
+
class ACMClose(Ice.EnumBase):
|
|
166
|
+
"""
|
|
167
|
+
Specifies the close semantics for Active Connection Management.
|
|
168
|
+
Enumerators:
|
|
169
|
+
CloseOff -- Disables automatic connection closure.
|
|
170
|
+
CloseOnIdle -- Gracefully closes a connection that has been idle for the configured timeout period.
|
|
171
|
+
CloseOnInvocation -- Forcefully closes a connection that has been idle for the configured timeout period,
|
|
172
|
+
but only if the connection has pending invocations.
|
|
173
|
+
CloseOnInvocationAndIdle -- Combines the behaviors of CloseOnIdle and CloseOnInvocation.
|
|
174
|
+
CloseOnIdleForceful -- Forcefully closes a connection that has been idle for the configured timeout period,
|
|
175
|
+
regardless of whether the connection has pending invocations or dispatch.
|
|
176
|
+
"""
|
|
177
|
+
|
|
178
|
+
def __init__(self, _n, _v):
|
|
179
|
+
Ice.EnumBase.__init__(self, _n, _v)
|
|
180
|
+
|
|
181
|
+
def valueOf(self, _n):
|
|
182
|
+
if _n in self._enumerators:
|
|
183
|
+
return self._enumerators[_n]
|
|
184
|
+
return None
|
|
185
|
+
valueOf = classmethod(valueOf)
|
|
186
|
+
|
|
187
|
+
ACMClose.CloseOff = ACMClose("CloseOff", 0)
|
|
188
|
+
ACMClose.CloseOnIdle = ACMClose("CloseOnIdle", 1)
|
|
189
|
+
ACMClose.CloseOnInvocation = ACMClose("CloseOnInvocation", 2)
|
|
190
|
+
ACMClose.CloseOnInvocationAndIdle = ACMClose("CloseOnInvocationAndIdle", 3)
|
|
191
|
+
ACMClose.CloseOnIdleForceful = ACMClose("CloseOnIdleForceful", 4)
|
|
192
|
+
ACMClose._enumerators = { 0:ACMClose.CloseOff, 1:ACMClose.CloseOnIdle, 2:ACMClose.CloseOnInvocation, 3:ACMClose.CloseOnInvocationAndIdle, 4:ACMClose.CloseOnIdleForceful }
|
|
193
|
+
|
|
194
|
+
_M_Ice._t_ACMClose = IcePy.defineEnum('::Ice::ACMClose', ACMClose, (), ACMClose._enumerators)
|
|
195
|
+
|
|
196
|
+
_M_Ice.ACMClose = ACMClose
|
|
197
|
+
del ACMClose
|
|
198
|
+
|
|
199
|
+
if 'ACMHeartbeat' not in _M_Ice.__dict__:
|
|
200
|
+
_M_Ice.ACMHeartbeat = Ice.createTempClass()
|
|
201
|
+
class ACMHeartbeat(Ice.EnumBase):
|
|
202
|
+
"""
|
|
203
|
+
Specifies the heartbeat semantics for Active Connection Management.
|
|
204
|
+
Enumerators:
|
|
205
|
+
HeartbeatOff -- Disables heartbeats.
|
|
206
|
+
HeartbeatOnDispatch -- Send a heartbeat at regular intervals if the connection is idle and only if there are pending dispatch.
|
|
207
|
+
HeartbeatOnIdle -- Send a heartbeat at regular intervals when the connection is idle.
|
|
208
|
+
HeartbeatAlways -- Send a heartbeat at regular intervals until the connection is closed.
|
|
209
|
+
"""
|
|
210
|
+
|
|
211
|
+
def __init__(self, _n, _v):
|
|
212
|
+
Ice.EnumBase.__init__(self, _n, _v)
|
|
213
|
+
|
|
214
|
+
def valueOf(self, _n):
|
|
215
|
+
if _n in self._enumerators:
|
|
216
|
+
return self._enumerators[_n]
|
|
217
|
+
return None
|
|
218
|
+
valueOf = classmethod(valueOf)
|
|
219
|
+
|
|
220
|
+
ACMHeartbeat.HeartbeatOff = ACMHeartbeat("HeartbeatOff", 0)
|
|
221
|
+
ACMHeartbeat.HeartbeatOnDispatch = ACMHeartbeat("HeartbeatOnDispatch", 1)
|
|
222
|
+
ACMHeartbeat.HeartbeatOnIdle = ACMHeartbeat("HeartbeatOnIdle", 2)
|
|
223
|
+
ACMHeartbeat.HeartbeatAlways = ACMHeartbeat("HeartbeatAlways", 3)
|
|
224
|
+
ACMHeartbeat._enumerators = { 0:ACMHeartbeat.HeartbeatOff, 1:ACMHeartbeat.HeartbeatOnDispatch, 2:ACMHeartbeat.HeartbeatOnIdle, 3:ACMHeartbeat.HeartbeatAlways }
|
|
225
|
+
|
|
226
|
+
_M_Ice._t_ACMHeartbeat = IcePy.defineEnum('::Ice::ACMHeartbeat', ACMHeartbeat, (), ACMHeartbeat._enumerators)
|
|
227
|
+
|
|
228
|
+
_M_Ice.ACMHeartbeat = ACMHeartbeat
|
|
229
|
+
del ACMHeartbeat
|
|
230
|
+
|
|
231
|
+
if 'ACM' not in _M_Ice.__dict__:
|
|
232
|
+
_M_Ice.ACM = Ice.createTempClass()
|
|
233
|
+
class ACM(object):
|
|
234
|
+
"""
|
|
235
|
+
A collection of Active Connection Management configuration settings.
|
|
236
|
+
Members:
|
|
237
|
+
timeout -- A timeout value in seconds.
|
|
238
|
+
close -- The close semantics.
|
|
239
|
+
heartbeat -- The heartbeat semantics.
|
|
240
|
+
"""
|
|
241
|
+
def __init__(self, timeout=0, close=_M_Ice.ACMClose.CloseOff, heartbeat=_M_Ice.ACMHeartbeat.HeartbeatOff):
|
|
242
|
+
self.timeout = timeout
|
|
243
|
+
self.close = close
|
|
244
|
+
self.heartbeat = heartbeat
|
|
245
|
+
|
|
246
|
+
def __hash__(self):
|
|
247
|
+
_h = 0
|
|
248
|
+
_h = 5 * _h + Ice.getHash(self.timeout)
|
|
249
|
+
_h = 5 * _h + Ice.getHash(self.close)
|
|
250
|
+
_h = 5 * _h + Ice.getHash(self.heartbeat)
|
|
251
|
+
return _h % 0x7fffffff
|
|
252
|
+
|
|
253
|
+
def __compare(self, other):
|
|
254
|
+
if other is None:
|
|
255
|
+
return 1
|
|
256
|
+
elif not isinstance(other, _M_Ice.ACM):
|
|
257
|
+
return NotImplemented
|
|
258
|
+
else:
|
|
259
|
+
if self.timeout is None or other.timeout is None:
|
|
260
|
+
if self.timeout != other.timeout:
|
|
261
|
+
return (-1 if self.timeout is None else 1)
|
|
262
|
+
else:
|
|
263
|
+
if self.timeout < other.timeout:
|
|
264
|
+
return -1
|
|
265
|
+
elif self.timeout > other.timeout:
|
|
266
|
+
return 1
|
|
267
|
+
if self.close is None or other.close is None:
|
|
268
|
+
if self.close != other.close:
|
|
269
|
+
return (-1 if self.close is None else 1)
|
|
270
|
+
else:
|
|
271
|
+
if self.close < other.close:
|
|
272
|
+
return -1
|
|
273
|
+
elif self.close > other.close:
|
|
274
|
+
return 1
|
|
275
|
+
if self.heartbeat is None or other.heartbeat is None:
|
|
276
|
+
if self.heartbeat != other.heartbeat:
|
|
277
|
+
return (-1 if self.heartbeat is None else 1)
|
|
278
|
+
else:
|
|
279
|
+
if self.heartbeat < other.heartbeat:
|
|
280
|
+
return -1
|
|
281
|
+
elif self.heartbeat > other.heartbeat:
|
|
282
|
+
return 1
|
|
283
|
+
return 0
|
|
284
|
+
|
|
285
|
+
def __lt__(self, other):
|
|
286
|
+
r = self.__compare(other)
|
|
287
|
+
if r is NotImplemented:
|
|
288
|
+
return r
|
|
289
|
+
else:
|
|
290
|
+
return r < 0
|
|
291
|
+
|
|
292
|
+
def __le__(self, other):
|
|
293
|
+
r = self.__compare(other)
|
|
294
|
+
if r is NotImplemented:
|
|
295
|
+
return r
|
|
296
|
+
else:
|
|
297
|
+
return r <= 0
|
|
298
|
+
|
|
299
|
+
def __gt__(self, other):
|
|
300
|
+
r = self.__compare(other)
|
|
301
|
+
if r is NotImplemented:
|
|
302
|
+
return r
|
|
303
|
+
else:
|
|
304
|
+
return r > 0
|
|
305
|
+
|
|
306
|
+
def __ge__(self, other):
|
|
307
|
+
r = self.__compare(other)
|
|
308
|
+
if r is NotImplemented:
|
|
309
|
+
return r
|
|
310
|
+
else:
|
|
311
|
+
return r >= 0
|
|
312
|
+
|
|
313
|
+
def __eq__(self, other):
|
|
314
|
+
r = self.__compare(other)
|
|
315
|
+
if r is NotImplemented:
|
|
316
|
+
return r
|
|
317
|
+
else:
|
|
318
|
+
return r == 0
|
|
319
|
+
|
|
320
|
+
def __ne__(self, other):
|
|
321
|
+
r = self.__compare(other)
|
|
322
|
+
if r is NotImplemented:
|
|
323
|
+
return r
|
|
324
|
+
else:
|
|
325
|
+
return r != 0
|
|
326
|
+
|
|
327
|
+
def __str__(self):
|
|
328
|
+
return IcePy.stringify(self, _M_Ice._t_ACM)
|
|
329
|
+
|
|
330
|
+
__repr__ = __str__
|
|
331
|
+
|
|
332
|
+
_M_Ice._t_ACM = IcePy.defineStruct('::Ice::ACM', ACM, (), (
|
|
333
|
+
('timeout', (), IcePy._t_int),
|
|
334
|
+
('close', (), _M_Ice._t_ACMClose),
|
|
335
|
+
('heartbeat', (), _M_Ice._t_ACMHeartbeat)
|
|
336
|
+
))
|
|
337
|
+
|
|
338
|
+
_M_Ice.ACM = ACM
|
|
339
|
+
del ACM
|
|
340
|
+
|
|
341
|
+
if 'ConnectionClose' not in _M_Ice.__dict__:
|
|
342
|
+
_M_Ice.ConnectionClose = Ice.createTempClass()
|
|
343
|
+
class ConnectionClose(Ice.EnumBase):
|
|
344
|
+
"""
|
|
345
|
+
Determines the behavior when manually closing a connection.
|
|
346
|
+
Enumerators:
|
|
347
|
+
Forcefully -- Close the connection immediately without sending a close connection protocol message to the peer
|
|
348
|
+
and waiting for the peer to acknowledge it.
|
|
349
|
+
Gracefully -- Close the connection by notifying the peer but do not wait for pending outgoing invocations to complete.
|
|
350
|
+
On the server side, the connection will not be closed until all incoming invocations have completed.
|
|
351
|
+
GracefullyWithWait -- Wait for all pending invocations to complete before closing the connection.
|
|
352
|
+
"""
|
|
353
|
+
|
|
354
|
+
def __init__(self, _n, _v):
|
|
355
|
+
Ice.EnumBase.__init__(self, _n, _v)
|
|
356
|
+
|
|
357
|
+
def valueOf(self, _n):
|
|
358
|
+
if _n in self._enumerators:
|
|
359
|
+
return self._enumerators[_n]
|
|
360
|
+
return None
|
|
361
|
+
valueOf = classmethod(valueOf)
|
|
362
|
+
|
|
363
|
+
ConnectionClose.Forcefully = ConnectionClose("Forcefully", 0)
|
|
364
|
+
ConnectionClose.Gracefully = ConnectionClose("Gracefully", 1)
|
|
365
|
+
ConnectionClose.GracefullyWithWait = ConnectionClose("GracefullyWithWait", 2)
|
|
366
|
+
ConnectionClose._enumerators = { 0:ConnectionClose.Forcefully, 1:ConnectionClose.Gracefully, 2:ConnectionClose.GracefullyWithWait }
|
|
367
|
+
|
|
368
|
+
_M_Ice._t_ConnectionClose = IcePy.defineEnum('::Ice::ConnectionClose', ConnectionClose, (), ConnectionClose._enumerators)
|
|
369
|
+
|
|
370
|
+
_M_Ice.ConnectionClose = ConnectionClose
|
|
371
|
+
del ConnectionClose
|
|
372
|
+
|
|
373
|
+
if 'Connection' not in _M_Ice.__dict__:
|
|
374
|
+
_M_Ice.Connection = Ice.createTempClass()
|
|
375
|
+
class Connection(object):
|
|
376
|
+
"""
|
|
377
|
+
The user-level interface to a connection.
|
|
378
|
+
"""
|
|
379
|
+
def __init__(self):
|
|
380
|
+
if Ice.getType(self) == _M_Ice.Connection:
|
|
381
|
+
raise RuntimeError('Ice.Connection is an abstract class')
|
|
382
|
+
|
|
383
|
+
def close(self, mode):
|
|
384
|
+
"""
|
|
385
|
+
Manually close the connection using the specified closure mode.
|
|
386
|
+
Arguments:
|
|
387
|
+
mode -- Determines how the connection will be closed.
|
|
388
|
+
"""
|
|
389
|
+
raise NotImplementedError("method 'close' not implemented")
|
|
390
|
+
|
|
391
|
+
def createProxy(self, id):
|
|
392
|
+
"""
|
|
393
|
+
Create a special proxy that always uses this connection. This
|
|
394
|
+
can be used for callbacks from a server to a client if the
|
|
395
|
+
server cannot directly establish a connection to the client,
|
|
396
|
+
for example because of firewalls. In this case, the server
|
|
397
|
+
would create a proxy using an already established connection
|
|
398
|
+
from the client.
|
|
399
|
+
Arguments:
|
|
400
|
+
id -- The identity for which a proxy is to be created.
|
|
401
|
+
Returns: A proxy that matches the given identity and uses this connection.
|
|
402
|
+
"""
|
|
403
|
+
raise NotImplementedError("method 'createProxy' not implemented")
|
|
404
|
+
|
|
405
|
+
def setAdapter(self, adapter):
|
|
406
|
+
"""
|
|
407
|
+
Explicitly set an object adapter that dispatches requests that
|
|
408
|
+
are received over this connection. A client can invoke an
|
|
409
|
+
operation on a server using a proxy, and then set an object
|
|
410
|
+
adapter for the outgoing connection that is used by the proxy
|
|
411
|
+
in order to receive callbacks. This is useful if the server
|
|
412
|
+
cannot establish a connection back to the client, for example
|
|
413
|
+
because of firewalls.
|
|
414
|
+
Arguments:
|
|
415
|
+
adapter -- The object adapter that should be used by this connection to dispatch requests. The object adapter must be activated. When the object adapter is deactivated, it is automatically removed from the connection. Attempts to use a deactivated object adapter raise ObjectAdapterDeactivatedException
|
|
416
|
+
"""
|
|
417
|
+
raise NotImplementedError("method 'setAdapter' not implemented")
|
|
418
|
+
|
|
419
|
+
def getAdapter(self):
|
|
420
|
+
"""
|
|
421
|
+
Get the object adapter that dispatches requests for this
|
|
422
|
+
connection.
|
|
423
|
+
Returns: The object adapter that dispatches requests for the connection, or null if no adapter is set.
|
|
424
|
+
"""
|
|
425
|
+
raise NotImplementedError("method 'getAdapter' not implemented")
|
|
426
|
+
|
|
427
|
+
def getEndpoint(self):
|
|
428
|
+
"""
|
|
429
|
+
Get the endpoint from which the connection was created.
|
|
430
|
+
Returns: The endpoint from which the connection was created.
|
|
431
|
+
"""
|
|
432
|
+
raise NotImplementedError("method 'getEndpoint' not implemented")
|
|
433
|
+
|
|
434
|
+
def flushBatchRequests(self, compress):
|
|
435
|
+
"""
|
|
436
|
+
Flush any pending batch requests for this connection.
|
|
437
|
+
This means all batch requests invoked on fixed proxies
|
|
438
|
+
associated with the connection.
|
|
439
|
+
Arguments:
|
|
440
|
+
compress -- Specifies whether or not the queued batch requests should be compressed before being sent over the wire.
|
|
441
|
+
"""
|
|
442
|
+
raise NotImplementedError("method 'flushBatchRequests' not implemented")
|
|
443
|
+
|
|
444
|
+
def setCloseCallback(self, callback):
|
|
445
|
+
"""
|
|
446
|
+
Set a close callback on the connection. The callback is called by the
|
|
447
|
+
connection when it's closed. The callback is called from the
|
|
448
|
+
Ice thread pool associated with the connection. If the callback needs
|
|
449
|
+
more information about the closure, it can call Connection#throwException.
|
|
450
|
+
Arguments:
|
|
451
|
+
callback -- The close callback object.
|
|
452
|
+
"""
|
|
453
|
+
raise NotImplementedError("method 'setCloseCallback' not implemented")
|
|
454
|
+
|
|
455
|
+
def setHeartbeatCallback(self, callback):
|
|
456
|
+
"""
|
|
457
|
+
Set a heartbeat callback on the connection. The callback is called by the
|
|
458
|
+
connection when a heartbeat is received. The callback is called
|
|
459
|
+
from the Ice thread pool associated with the connection.
|
|
460
|
+
Arguments:
|
|
461
|
+
callback -- The heartbeat callback object.
|
|
462
|
+
"""
|
|
463
|
+
raise NotImplementedError("method 'setHeartbeatCallback' not implemented")
|
|
464
|
+
|
|
465
|
+
def heartbeat(self):
|
|
466
|
+
"""
|
|
467
|
+
Send a heartbeat message.
|
|
468
|
+
"""
|
|
469
|
+
raise NotImplementedError("method 'heartbeat' not implemented")
|
|
470
|
+
|
|
471
|
+
def setACM(self, timeout, close, heartbeat):
|
|
472
|
+
"""
|
|
473
|
+
Set the active connection management parameters.
|
|
474
|
+
Arguments:
|
|
475
|
+
timeout -- The timeout value in seconds, must be >= 0.
|
|
476
|
+
close -- The close condition
|
|
477
|
+
heartbeat -- The hertbeat condition
|
|
478
|
+
"""
|
|
479
|
+
raise NotImplementedError("method 'setACM' not implemented")
|
|
480
|
+
|
|
481
|
+
def getACM(self):
|
|
482
|
+
"""
|
|
483
|
+
Get the ACM parameters.
|
|
484
|
+
Returns: The ACM parameters.
|
|
485
|
+
"""
|
|
486
|
+
raise NotImplementedError("method 'getACM' not implemented")
|
|
487
|
+
|
|
488
|
+
def type(self):
|
|
489
|
+
"""
|
|
490
|
+
Return the connection type. This corresponds to the endpoint
|
|
491
|
+
type, i.e., "tcp", "udp", etc.
|
|
492
|
+
Returns: The type of the connection.
|
|
493
|
+
"""
|
|
494
|
+
raise NotImplementedError("method 'type' not implemented")
|
|
495
|
+
|
|
496
|
+
def timeout(self):
|
|
497
|
+
"""
|
|
498
|
+
Get the timeout for the connection.
|
|
499
|
+
Returns: The connection's timeout.
|
|
500
|
+
"""
|
|
501
|
+
raise NotImplementedError("method 'timeout' not implemented")
|
|
502
|
+
|
|
503
|
+
def toString(self):
|
|
504
|
+
"""
|
|
505
|
+
Return a description of the connection as human readable text,
|
|
506
|
+
suitable for logging or error messages.
|
|
507
|
+
Returns: The description of the connection as human readable text.
|
|
508
|
+
"""
|
|
509
|
+
raise NotImplementedError("method 'toString' not implemented")
|
|
510
|
+
|
|
511
|
+
def getInfo(self):
|
|
512
|
+
"""
|
|
513
|
+
Returns the connection information.
|
|
514
|
+
Returns: The connection information.
|
|
515
|
+
"""
|
|
516
|
+
raise NotImplementedError("method 'getInfo' not implemented")
|
|
517
|
+
|
|
518
|
+
def setBufferSize(self, rcvSize, sndSize):
|
|
519
|
+
"""
|
|
520
|
+
Set the connection buffer receive/send size.
|
|
521
|
+
Arguments:
|
|
522
|
+
rcvSize -- The connection receive buffer size.
|
|
523
|
+
sndSize -- The connection send buffer size.
|
|
524
|
+
"""
|
|
525
|
+
raise NotImplementedError("method 'setBufferSize' not implemented")
|
|
526
|
+
|
|
527
|
+
def throwException(self):
|
|
528
|
+
"""
|
|
529
|
+
Throw an exception indicating the reason for connection closure. For example,
|
|
530
|
+
CloseConnectionException is raised if the connection was closed gracefully,
|
|
531
|
+
whereas ConnectionManuallyClosedException is raised if the connection was
|
|
532
|
+
manually closed by the application. This operation does nothing if the connection is
|
|
533
|
+
not yet closed.
|
|
534
|
+
"""
|
|
535
|
+
raise NotImplementedError("method 'throwException' not implemented")
|
|
536
|
+
|
|
537
|
+
def __str__(self):
|
|
538
|
+
return IcePy.stringify(self, _M_Ice._t_Connection)
|
|
539
|
+
|
|
540
|
+
__repr__ = __str__
|
|
541
|
+
|
|
542
|
+
_M_Ice._t_Connection = IcePy.defineValue('::Ice::Connection', Connection, -1, (), False, True, None, ())
|
|
543
|
+
Connection._ice_type = _M_Ice._t_Connection
|
|
544
|
+
|
|
545
|
+
_M_Ice.Connection = Connection
|
|
546
|
+
del Connection
|
|
547
|
+
|
|
548
|
+
if 'IPConnectionInfo' not in _M_Ice.__dict__:
|
|
549
|
+
_M_Ice.IPConnectionInfo = Ice.createTempClass()
|
|
550
|
+
class IPConnectionInfo(_M_Ice.ConnectionInfo):
|
|
551
|
+
"""
|
|
552
|
+
Provides access to the connection details of an IP connection
|
|
553
|
+
Members:
|
|
554
|
+
localAddress -- The local address.
|
|
555
|
+
localPort -- The local port.
|
|
556
|
+
remoteAddress -- The remote address.
|
|
557
|
+
remotePort -- The remote port.
|
|
558
|
+
"""
|
|
559
|
+
def __init__(self, underlying=None, incoming=False, adapterName='', connectionId='', localAddress="", localPort=-1, remoteAddress="", remotePort=-1):
|
|
560
|
+
_M_Ice.ConnectionInfo.__init__(self, underlying, incoming, adapterName, connectionId)
|
|
561
|
+
self.localAddress = localAddress
|
|
562
|
+
self.localPort = localPort
|
|
563
|
+
self.remoteAddress = remoteAddress
|
|
564
|
+
self.remotePort = remotePort
|
|
565
|
+
|
|
566
|
+
def __str__(self):
|
|
567
|
+
return IcePy.stringify(self, _M_Ice._t_IPConnectionInfo)
|
|
568
|
+
|
|
569
|
+
__repr__ = __str__
|
|
570
|
+
|
|
571
|
+
_M_Ice._t_IPConnectionInfo = IcePy.declareValue('::Ice::IPConnectionInfo')
|
|
572
|
+
|
|
573
|
+
_M_Ice._t_IPConnectionInfo = IcePy.defineValue('::Ice::IPConnectionInfo', IPConnectionInfo, -1, (), False, False, _M_Ice._t_ConnectionInfo, (
|
|
574
|
+
('localAddress', (), IcePy._t_string, False, 0),
|
|
575
|
+
('localPort', (), IcePy._t_int, False, 0),
|
|
576
|
+
('remoteAddress', (), IcePy._t_string, False, 0),
|
|
577
|
+
('remotePort', (), IcePy._t_int, False, 0)
|
|
578
|
+
))
|
|
579
|
+
IPConnectionInfo._ice_type = _M_Ice._t_IPConnectionInfo
|
|
580
|
+
|
|
581
|
+
_M_Ice.IPConnectionInfo = IPConnectionInfo
|
|
582
|
+
del IPConnectionInfo
|
|
583
|
+
|
|
584
|
+
if 'TCPConnectionInfo' not in _M_Ice.__dict__:
|
|
585
|
+
_M_Ice.TCPConnectionInfo = Ice.createTempClass()
|
|
586
|
+
class TCPConnectionInfo(_M_Ice.IPConnectionInfo):
|
|
587
|
+
"""
|
|
588
|
+
Provides access to the connection details of a TCP connection
|
|
589
|
+
Members:
|
|
590
|
+
rcvSize -- The connection buffer receive size.
|
|
591
|
+
sndSize -- The connection buffer send size.
|
|
592
|
+
"""
|
|
593
|
+
def __init__(self, underlying=None, incoming=False, adapterName='', connectionId='', localAddress="", localPort=-1, remoteAddress="", remotePort=-1, rcvSize=0, sndSize=0):
|
|
594
|
+
_M_Ice.IPConnectionInfo.__init__(self, underlying, incoming, adapterName, connectionId, localAddress, localPort, remoteAddress, remotePort)
|
|
595
|
+
self.rcvSize = rcvSize
|
|
596
|
+
self.sndSize = sndSize
|
|
597
|
+
|
|
598
|
+
def __str__(self):
|
|
599
|
+
return IcePy.stringify(self, _M_Ice._t_TCPConnectionInfo)
|
|
600
|
+
|
|
601
|
+
__repr__ = __str__
|
|
602
|
+
|
|
603
|
+
_M_Ice._t_TCPConnectionInfo = IcePy.declareValue('::Ice::TCPConnectionInfo')
|
|
604
|
+
|
|
605
|
+
_M_Ice._t_TCPConnectionInfo = IcePy.defineValue('::Ice::TCPConnectionInfo', TCPConnectionInfo, -1, (), False, False, _M_Ice._t_IPConnectionInfo, (
|
|
606
|
+
('rcvSize', (), IcePy._t_int, False, 0),
|
|
607
|
+
('sndSize', (), IcePy._t_int, False, 0)
|
|
608
|
+
))
|
|
609
|
+
TCPConnectionInfo._ice_type = _M_Ice._t_TCPConnectionInfo
|
|
610
|
+
|
|
611
|
+
_M_Ice.TCPConnectionInfo = TCPConnectionInfo
|
|
612
|
+
del TCPConnectionInfo
|
|
613
|
+
|
|
614
|
+
if 'UDPConnectionInfo' not in _M_Ice.__dict__:
|
|
615
|
+
_M_Ice.UDPConnectionInfo = Ice.createTempClass()
|
|
616
|
+
class UDPConnectionInfo(_M_Ice.IPConnectionInfo):
|
|
617
|
+
"""
|
|
618
|
+
Provides access to the connection details of a UDP connection
|
|
619
|
+
Members:
|
|
620
|
+
mcastAddress -- The multicast address.
|
|
621
|
+
mcastPort -- The multicast port.
|
|
622
|
+
rcvSize -- The connection buffer receive size.
|
|
623
|
+
sndSize -- The connection buffer send size.
|
|
624
|
+
"""
|
|
625
|
+
def __init__(self, underlying=None, incoming=False, adapterName='', connectionId='', localAddress="", localPort=-1, remoteAddress="", remotePort=-1, mcastAddress='', mcastPort=-1, rcvSize=0, sndSize=0):
|
|
626
|
+
_M_Ice.IPConnectionInfo.__init__(self, underlying, incoming, adapterName, connectionId, localAddress, localPort, remoteAddress, remotePort)
|
|
627
|
+
self.mcastAddress = mcastAddress
|
|
628
|
+
self.mcastPort = mcastPort
|
|
629
|
+
self.rcvSize = rcvSize
|
|
630
|
+
self.sndSize = sndSize
|
|
631
|
+
|
|
632
|
+
def __str__(self):
|
|
633
|
+
return IcePy.stringify(self, _M_Ice._t_UDPConnectionInfo)
|
|
634
|
+
|
|
635
|
+
__repr__ = __str__
|
|
636
|
+
|
|
637
|
+
_M_Ice._t_UDPConnectionInfo = IcePy.declareValue('::Ice::UDPConnectionInfo')
|
|
638
|
+
|
|
639
|
+
_M_Ice._t_UDPConnectionInfo = IcePy.defineValue('::Ice::UDPConnectionInfo', UDPConnectionInfo, -1, (), False, False, _M_Ice._t_IPConnectionInfo, (
|
|
640
|
+
('mcastAddress', (), IcePy._t_string, False, 0),
|
|
641
|
+
('mcastPort', (), IcePy._t_int, False, 0),
|
|
642
|
+
('rcvSize', (), IcePy._t_int, False, 0),
|
|
643
|
+
('sndSize', (), IcePy._t_int, False, 0)
|
|
644
|
+
))
|
|
645
|
+
UDPConnectionInfo._ice_type = _M_Ice._t_UDPConnectionInfo
|
|
646
|
+
|
|
647
|
+
_M_Ice.UDPConnectionInfo = UDPConnectionInfo
|
|
648
|
+
del UDPConnectionInfo
|
|
649
|
+
|
|
650
|
+
if '_t_HeaderDict' not in _M_Ice.__dict__:
|
|
651
|
+
_M_Ice._t_HeaderDict = IcePy.defineDictionary('::Ice::HeaderDict', (), IcePy._t_string, IcePy._t_string)
|
|
652
|
+
|
|
653
|
+
if 'WSConnectionInfo' not in _M_Ice.__dict__:
|
|
654
|
+
_M_Ice.WSConnectionInfo = Ice.createTempClass()
|
|
655
|
+
class WSConnectionInfo(_M_Ice.ConnectionInfo):
|
|
656
|
+
"""
|
|
657
|
+
Provides access to the connection details of a WebSocket connection
|
|
658
|
+
Members:
|
|
659
|
+
headers -- The headers from the HTTP upgrade request.
|
|
660
|
+
"""
|
|
661
|
+
def __init__(self, underlying=None, incoming=False, adapterName='', connectionId='', headers=None):
|
|
662
|
+
_M_Ice.ConnectionInfo.__init__(self, underlying, incoming, adapterName, connectionId)
|
|
663
|
+
self.headers = headers
|
|
664
|
+
|
|
665
|
+
def __str__(self):
|
|
666
|
+
return IcePy.stringify(self, _M_Ice._t_WSConnectionInfo)
|
|
667
|
+
|
|
668
|
+
__repr__ = __str__
|
|
669
|
+
|
|
670
|
+
_M_Ice._t_WSConnectionInfo = IcePy.declareValue('::Ice::WSConnectionInfo')
|
|
671
|
+
|
|
672
|
+
_M_Ice._t_WSConnectionInfo = IcePy.defineValue('::Ice::WSConnectionInfo', WSConnectionInfo, -1, (), False, False, _M_Ice._t_ConnectionInfo, (('headers', (), _M_Ice._t_HeaderDict, False, 0),))
|
|
673
|
+
WSConnectionInfo._ice_type = _M_Ice._t_WSConnectionInfo
|
|
674
|
+
|
|
675
|
+
_M_Ice.WSConnectionInfo = WSConnectionInfo
|
|
676
|
+
del WSConnectionInfo
|
|
677
|
+
|
|
678
|
+
# End of module Ice
|
|
679
|
+
|
|
680
|
+
Ice.sliceChecksums["::Ice::HeaderDict"] = "9998817e127863d3f3d6e31fe248bbb"
|