zeroc-ice 3.8.0__cp314-cp314-win_amd64.whl → 3.8.0.post1__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.
- Ice/BTEndpointType.py +7 -0
- Ice/BTSEndpointType.py +7 -0
- Ice/Blobject.py +1 -1
- Ice/Communicator.py +130 -118
- Ice/CompressBatch.py +12 -12
- Ice/Current.py +5 -6
- Ice/EndpointSelectionType.py +8 -8
- Ice/EventLoopAdapter.py +4 -4
- Ice/Exception.py +6 -8
- Ice/FormatType.py +8 -1
- Ice/Future.py +78 -78
- Ice/IcePyTypes.py +2 -0
- Ice/ImplicitContext.py +28 -35
- Ice/InitializationData.py +23 -22
- Ice/InvocationFuture.py +31 -34
- Ice/LocalException.py +1 -1
- Ice/LocalExceptions.py +82 -94
- Ice/LogMessageType.py +16 -15
- Ice/Logger.py +10 -10
- Ice/Object.py +22 -17
- Ice/ObjectAdapter.py +200 -167
- Ice/ObjectPrx.py +196 -202
- Ice/OperationMode.py +19 -14
- Ice/ProcessLogger.py +18 -2
- Ice/Properties.py +63 -79
- Ice/Proxy.py +73 -10
- Ice/ReplyStatus.py +42 -35
- Ice/SSLEndpointType.py +7 -0
- Ice/ServantLocator.py +30 -35
- Ice/SliceInfo.py +3 -3
- Ice/SlicedData.py +1 -1
- Ice/TCPEndpointType.py +7 -0
- Ice/ToStringMode.py +19 -19
- Ice/UDPEndpointType.py +7 -0
- Ice/URIEndpointType.py +7 -0
- Ice/UnknownSlicedValue.py +11 -3
- Ice/UserException.py +1 -1
- Ice/Util.py +27 -26
- Ice/Value.py +7 -7
- Ice/WSEndpointType.py +7 -0
- Ice/WSSEndpointType.py +7 -0
- Ice/__init__.py +2 -0
- Ice/iAPEndpointType.py +7 -0
- Ice/iAPSEndpointType.py +7 -0
- IceGrid/LoadSample.py +12 -12
- IceGrid/ServerState.py +29 -25
- IcePy-stubs/__init__.pyi +151 -152
- IcePy.cp314-win_amd64.pdb +0 -0
- IcePy.cp314-win_amd64.pyd +0 -0
- {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/METADATA +1 -1
- {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/RECORD +54 -54
- {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/WHEEL +0 -0
- {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/entry_points.txt +0 -0
- {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/top_level.txt +0 -0
Ice/ObjectPrx.py
CHANGED
|
@@ -16,7 +16,7 @@ if TYPE_CHECKING:
|
|
|
16
16
|
from .Communicator import Communicator
|
|
17
17
|
from .EncodingVersion import EncodingVersion
|
|
18
18
|
from .EndpointSelectionType import EndpointSelectionType
|
|
19
|
-
from .IcePyTypes import Connection
|
|
19
|
+
from .IcePyTypes import Connection, Endpoint
|
|
20
20
|
from .Identity import Identity
|
|
21
21
|
from .Locator import LocatorPrx
|
|
22
22
|
from .Router import RouterPrx
|
|
@@ -38,19 +38,17 @@ def uncheckedCast(type: Type[T], proxy: ObjectPrx | None, facet: str | None = No
|
|
|
38
38
|
|
|
39
39
|
Parameters
|
|
40
40
|
----------
|
|
41
|
-
type :
|
|
41
|
+
type : Type[T]
|
|
42
42
|
The proxy target type.
|
|
43
|
-
|
|
44
43
|
proxy : ObjectPrx | None
|
|
45
44
|
The source proxy.
|
|
46
|
-
|
|
47
|
-
facet : str, optional
|
|
45
|
+
facet : str | None, optional
|
|
48
46
|
A facet name.
|
|
49
47
|
|
|
50
48
|
Returns
|
|
51
49
|
-------
|
|
52
|
-
|
|
53
|
-
A new proxy with the requested type, or None if the source proxy is None
|
|
50
|
+
T | None
|
|
51
|
+
A new proxy with the requested type and facet, or ``None`` if the source proxy is ``None``.
|
|
54
52
|
"""
|
|
55
53
|
if proxy is None:
|
|
56
54
|
return None
|
|
@@ -67,23 +65,20 @@ def checkedCast(
|
|
|
67
65
|
|
|
68
66
|
Parameters
|
|
69
67
|
----------
|
|
70
|
-
type :
|
|
68
|
+
type : Type[T]
|
|
71
69
|
The proxy target type.
|
|
72
|
-
|
|
73
70
|
proxy : ObjectPrx | None
|
|
74
71
|
The source proxy.
|
|
75
|
-
|
|
76
|
-
facet : str, optional
|
|
72
|
+
facet : str | None, optional
|
|
77
73
|
A facet name.
|
|
78
|
-
|
|
79
|
-
context : dict[str, str], optional
|
|
74
|
+
context : dict[str, str] | None, optional
|
|
80
75
|
The request context.
|
|
81
76
|
|
|
82
77
|
Returns
|
|
83
78
|
-------
|
|
84
|
-
|
|
85
|
-
A new proxy with the requested type, or None if the source proxy is None or if the target
|
|
86
|
-
support the requested type.
|
|
79
|
+
T | None
|
|
80
|
+
A new proxy with the requested type and facet, or ``None`` if the source proxy is ``None`` or if the target
|
|
81
|
+
object/facet does not support the requested type.
|
|
87
82
|
"""
|
|
88
83
|
if proxy is None:
|
|
89
84
|
return None
|
|
@@ -100,23 +95,20 @@ async def checkedCastAsync(
|
|
|
100
95
|
|
|
101
96
|
Parameters
|
|
102
97
|
----------
|
|
103
|
-
type :
|
|
98
|
+
type : Type[T]
|
|
104
99
|
The proxy target type.
|
|
105
|
-
|
|
106
100
|
proxy : ObjectPrx | None
|
|
107
101
|
The source proxy.
|
|
108
|
-
|
|
109
|
-
facet : str, optional
|
|
102
|
+
facet : str | None, optional
|
|
110
103
|
A facet name.
|
|
111
|
-
|
|
112
|
-
context : dict[str, str], optional
|
|
104
|
+
context : dict[str, str] | None, optional
|
|
113
105
|
The request context.
|
|
114
106
|
|
|
115
107
|
Returns
|
|
116
108
|
-------
|
|
117
|
-
|
|
118
|
-
A new proxy with the requested type, or None if the source proxy is None or if the target
|
|
119
|
-
support the requested type.
|
|
109
|
+
T | None
|
|
110
|
+
A new proxy with the requested type and facet, or ``None`` if the source proxy is ``None`` or if the target
|
|
111
|
+
object/facet does not support the requested type.
|
|
120
112
|
"""
|
|
121
113
|
if proxy is None:
|
|
122
114
|
return None
|
|
@@ -128,7 +120,7 @@ async def checkedCastAsync(
|
|
|
128
120
|
|
|
129
121
|
class ObjectPrx(IcePy.ObjectPrx):
|
|
130
122
|
"""
|
|
131
|
-
The base class for all proxies.
|
|
123
|
+
The base class for all Ice proxies.
|
|
132
124
|
"""
|
|
133
125
|
|
|
134
126
|
@staticmethod
|
|
@@ -140,14 +132,13 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
140
132
|
----------
|
|
141
133
|
proxy : ObjectPrx | None
|
|
142
134
|
The source proxy.
|
|
143
|
-
|
|
144
|
-
facet : str, optional
|
|
135
|
+
facet : str | None, optional
|
|
145
136
|
A facet name.
|
|
146
137
|
|
|
147
138
|
Returns
|
|
148
139
|
-------
|
|
149
140
|
ObjectPrx | None
|
|
150
|
-
A new proxy with the requested
|
|
141
|
+
A new proxy with the requested facet, or ``None`` if the source proxy is ``None``.
|
|
151
142
|
"""
|
|
152
143
|
return uncheckedCast(ObjectPrx, proxy, facet)
|
|
153
144
|
|
|
@@ -162,18 +153,16 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
162
153
|
----------
|
|
163
154
|
proxy : ObjectPrx | None
|
|
164
155
|
The source proxy.
|
|
165
|
-
|
|
166
|
-
facet : str, optional
|
|
156
|
+
facet : str | None, optional
|
|
167
157
|
A facet name.
|
|
168
|
-
|
|
169
|
-
context : dict[str, str], optional
|
|
158
|
+
context : dict[str, str] | None, optional
|
|
170
159
|
The request context.
|
|
171
160
|
|
|
172
161
|
Returns
|
|
173
162
|
-------
|
|
174
163
|
ObjectPrx | None
|
|
175
|
-
A new proxy with the requested
|
|
176
|
-
support the requested type.
|
|
164
|
+
A new proxy with the requested facet, or ``None`` if the source proxy is ``None`` or if the target
|
|
165
|
+
object/facet does not support the requested type.
|
|
177
166
|
"""
|
|
178
167
|
return checkedCast(ObjectPrx, proxy, facet, context)
|
|
179
168
|
|
|
@@ -188,36 +177,34 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
188
177
|
----------
|
|
189
178
|
proxy : ObjectPrx | None
|
|
190
179
|
The source proxy.
|
|
191
|
-
|
|
192
|
-
facet : str, optional
|
|
180
|
+
facet : str | None, optional
|
|
193
181
|
A facet name.
|
|
194
|
-
|
|
195
|
-
context : dict[str, str], optional
|
|
182
|
+
context : dict[str, str] | None, optional
|
|
196
183
|
The request context.
|
|
197
184
|
|
|
198
185
|
Returns
|
|
199
186
|
-------
|
|
200
187
|
ObjectPrx | None
|
|
201
|
-
A new proxy with the requested
|
|
202
|
-
support the requested type.
|
|
188
|
+
A new proxy with the requested facet, or ``None`` if the source proxy is ``None`` or if the target
|
|
189
|
+
object/facet does not support the requested type.
|
|
203
190
|
"""
|
|
204
191
|
return checkedCastAsync(ObjectPrx, proxy, facet, context)
|
|
205
192
|
|
|
206
193
|
@staticmethod
|
|
207
194
|
def ice_staticId() -> str:
|
|
208
195
|
"""
|
|
209
|
-
|
|
196
|
+
Returns the Slice type ID associated with this type.
|
|
210
197
|
|
|
211
198
|
Returns
|
|
212
199
|
-------
|
|
213
200
|
str
|
|
214
|
-
The type ID
|
|
201
|
+
The Slice type ID.
|
|
215
202
|
"""
|
|
216
203
|
return "::Ice::Object"
|
|
217
204
|
|
|
218
205
|
def ice_getCommunicator(self) -> Communicator:
|
|
219
206
|
"""
|
|
220
|
-
|
|
207
|
+
Gets the communicator that created this proxy.
|
|
221
208
|
|
|
222
209
|
Returns
|
|
223
210
|
-------
|
|
@@ -228,110 +215,111 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
228
215
|
|
|
229
216
|
def ice_isA(self, id: str, context: dict[str, str] | None = None) -> bool:
|
|
230
217
|
"""
|
|
231
|
-
|
|
218
|
+
Tests whether this object supports a specific Slice interface.
|
|
232
219
|
|
|
233
220
|
Parameters
|
|
234
221
|
----------
|
|
235
222
|
id : str
|
|
236
223
|
The type ID of the Slice interface to test against.
|
|
237
|
-
context : dict[str, str], optional
|
|
238
|
-
The context
|
|
224
|
+
context : dict[str, str] | None, optional
|
|
225
|
+
The request context.
|
|
239
226
|
|
|
240
227
|
Returns
|
|
241
228
|
-------
|
|
242
229
|
bool
|
|
243
|
-
True if the target object
|
|
230
|
+
``True`` if the target object implements the Slice interface specified by ``id``
|
|
231
|
+
or implements a derived interface, ``False`` otherwise.
|
|
244
232
|
"""
|
|
245
233
|
return Object._op_ice_isA.invoke(self, ((id,), context))
|
|
246
234
|
|
|
247
235
|
def ice_isAAsync(self, id: str, context: dict[str, str] | None = None) -> Awaitable[bool]:
|
|
248
236
|
"""
|
|
249
|
-
|
|
237
|
+
Tests whether this object supports a specific Slice interface.
|
|
250
238
|
|
|
251
239
|
Parameters
|
|
252
240
|
----------
|
|
253
241
|
id : str
|
|
254
242
|
The type ID of the Slice interface to test against.
|
|
255
|
-
context : dict[str, str], optional
|
|
256
|
-
The context
|
|
243
|
+
context : dict[str, str] | None, optional
|
|
244
|
+
The request context.
|
|
257
245
|
|
|
258
246
|
Returns
|
|
259
247
|
-------
|
|
260
|
-
bool
|
|
261
|
-
|
|
248
|
+
Awaitable[bool]
|
|
249
|
+
An :class:`Awaitable` that completes when the invocation completes.
|
|
250
|
+
It holds ``True`` if the target object implements the Slice interface specified by ``id``
|
|
251
|
+
or implements a derived interface, ``False`` otherwise.
|
|
262
252
|
"""
|
|
263
253
|
return Object._op_ice_isA.invokeAsync(self, ((id,), context))
|
|
264
254
|
|
|
265
255
|
def ice_ping(self, context: dict[str, str] | None = None):
|
|
266
256
|
"""
|
|
267
|
-
|
|
257
|
+
Tests whether the target object of this proxy can be reached.
|
|
268
258
|
|
|
269
259
|
Parameters
|
|
270
260
|
----------
|
|
271
|
-
context : dict[str, str], optional
|
|
272
|
-
The context
|
|
273
|
-
|
|
274
|
-
Examples
|
|
275
|
-
--------
|
|
276
|
-
>>> obj.ice_ping(context={"key": "value"})
|
|
261
|
+
context : dict[str, str] | None, optional
|
|
262
|
+
The request context.
|
|
277
263
|
"""
|
|
278
264
|
Object._op_ice_ping.invoke(self, ((), context))
|
|
279
265
|
|
|
280
|
-
def ice_pingAsync(self, context: dict[str, str] | None = None):
|
|
266
|
+
def ice_pingAsync(self, context: dict[str, str] | None = None) -> Awaitable[None]:
|
|
281
267
|
"""
|
|
282
|
-
|
|
268
|
+
Tests whether the target object of this proxy can be reached.
|
|
283
269
|
|
|
284
270
|
Parameters
|
|
285
271
|
----------
|
|
286
|
-
context : dict[str, str], optional
|
|
287
|
-
The context
|
|
272
|
+
context : dict[str, str] | None, optional
|
|
273
|
+
The request context.
|
|
288
274
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
275
|
+
Returns
|
|
276
|
+
-------
|
|
277
|
+
Awaitable[None]
|
|
278
|
+
An :class:`Awaitable` that completes when the invocation completes.
|
|
292
279
|
"""
|
|
293
280
|
return Object._op_ice_ping.invokeAsync(self, ((), context))
|
|
294
281
|
|
|
295
282
|
def ice_ids(self, context: dict[str, str] | None = None) -> list[str]:
|
|
296
283
|
"""
|
|
297
|
-
|
|
284
|
+
Returns the Slice interfaces supported by this object as a list of Slice type IDs.
|
|
298
285
|
|
|
299
286
|
Parameters
|
|
300
287
|
----------
|
|
301
|
-
context : dict[str, str], optional
|
|
302
|
-
The context
|
|
288
|
+
context : dict[str, str] | None, optional
|
|
289
|
+
The request context.
|
|
303
290
|
|
|
304
291
|
Returns
|
|
305
292
|
-------
|
|
306
|
-
list
|
|
307
|
-
The Slice type IDs of the interfaces supported by
|
|
293
|
+
list[str]
|
|
294
|
+
The Slice type IDs of the interfaces supported by this object, in alphabetical order.
|
|
308
295
|
"""
|
|
309
296
|
return Object._op_ice_ids.invoke(self, ((), context))
|
|
310
297
|
|
|
311
298
|
def ice_idsAsync(self, context: dict[str, str] | None = None) -> Awaitable[list[str]]:
|
|
312
299
|
"""
|
|
313
|
-
|
|
300
|
+
Returns the Slice interfaces supported by this object as a list of Slice type IDs.
|
|
314
301
|
|
|
315
302
|
Parameters
|
|
316
303
|
----------
|
|
317
|
-
context : dict[str, str], optional
|
|
318
|
-
The context
|
|
304
|
+
context : dict[str, str] | None, optional
|
|
305
|
+
The request context.
|
|
319
306
|
|
|
320
307
|
Returns
|
|
321
308
|
-------
|
|
322
|
-
list
|
|
323
|
-
|
|
309
|
+
Awaitable[list[str]]
|
|
310
|
+
An :class:`Awaitable` that completes when the invocation completes.
|
|
311
|
+
It holds the Slice type IDs of the interfaces supported by the target object, in alphabetical order.
|
|
324
312
|
"""
|
|
325
313
|
return Object._op_ice_ids.invokeAsync(self, ((), context))
|
|
326
314
|
|
|
327
315
|
def ice_id(self, context: dict[str, str] | None = None) -> str:
|
|
328
316
|
"""
|
|
329
|
-
|
|
317
|
+
Returns the type ID of the most-derived Slice interface supported by this object.
|
|
330
318
|
|
|
331
319
|
Parameters
|
|
332
320
|
----------
|
|
333
|
-
context : dict[str, str], optional
|
|
334
|
-
The context
|
|
321
|
+
context : dict[str, str] | None, optional
|
|
322
|
+
The request context.
|
|
335
323
|
|
|
336
324
|
Returns
|
|
337
325
|
-------
|
|
@@ -342,23 +330,24 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
342
330
|
|
|
343
331
|
def ice_idAsync(self, context: dict[str, str] | None = None) -> Awaitable[str]:
|
|
344
332
|
"""
|
|
345
|
-
|
|
333
|
+
Returns the type ID of the most-derived Slice interface supported by this object.
|
|
346
334
|
|
|
347
335
|
Parameters
|
|
348
336
|
----------
|
|
349
|
-
context : dict[str, str], optional
|
|
350
|
-
The context
|
|
337
|
+
context : dict[str, str] | None, optional
|
|
338
|
+
The request context.
|
|
351
339
|
|
|
352
340
|
Returns
|
|
353
341
|
-------
|
|
354
|
-
str
|
|
355
|
-
|
|
342
|
+
Awaitable[str]
|
|
343
|
+
An :class:`Awaitable` that completes when the invocation completes.
|
|
344
|
+
It holds the Slice type ID of the most-derived interface.
|
|
356
345
|
"""
|
|
357
346
|
return Object._op_ice_id.invokeAsync(self, ((), context))
|
|
358
347
|
|
|
359
348
|
def ice_getIdentity(self) -> Identity:
|
|
360
349
|
"""
|
|
361
|
-
|
|
350
|
+
Gets the identity embedded in this proxy.
|
|
362
351
|
|
|
363
352
|
Returns
|
|
364
353
|
-------
|
|
@@ -369,7 +358,7 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
369
358
|
|
|
370
359
|
def ice_identity(self, newIdentity: Identity) -> Self:
|
|
371
360
|
"""
|
|
372
|
-
|
|
361
|
+
Creates a proxy that is identical to this proxy, except for the identity.
|
|
373
362
|
|
|
374
363
|
Parameters
|
|
375
364
|
----------
|
|
@@ -378,25 +367,25 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
378
367
|
|
|
379
368
|
Returns
|
|
380
369
|
-------
|
|
381
|
-
|
|
382
|
-
|
|
370
|
+
Self
|
|
371
|
+
A proxy with the new identity.
|
|
383
372
|
"""
|
|
384
373
|
return super().ice_identity(newIdentity)
|
|
385
374
|
|
|
386
375
|
def ice_getContext(self) -> dict[str, str] | None:
|
|
387
376
|
"""
|
|
388
|
-
|
|
377
|
+
Gets the per-proxy context for this proxy.
|
|
389
378
|
|
|
390
379
|
Returns
|
|
391
380
|
-------
|
|
392
381
|
dict[str, str] | None
|
|
393
|
-
The per-proxy context
|
|
382
|
+
The per-proxy context, or ``None`` if the proxy does not have a per-proxy context.
|
|
394
383
|
"""
|
|
395
384
|
return super().ice_getContext()
|
|
396
385
|
|
|
397
386
|
def ice_context(self, new_context: dict[str, str]) -> Self:
|
|
398
387
|
"""
|
|
399
|
-
Creates a
|
|
388
|
+
Creates a proxy that is identical to this proxy, except for the per-proxy context.
|
|
400
389
|
|
|
401
390
|
Parameters
|
|
402
391
|
----------
|
|
@@ -405,14 +394,14 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
405
394
|
|
|
406
395
|
Returns
|
|
407
396
|
-------
|
|
408
|
-
|
|
409
|
-
|
|
397
|
+
Self
|
|
398
|
+
A proxy with the new per-proxy context.
|
|
410
399
|
"""
|
|
411
400
|
return super().ice_context(new_context)
|
|
412
401
|
|
|
413
402
|
def ice_getFacet(self) -> str:
|
|
414
403
|
"""
|
|
415
|
-
|
|
404
|
+
Gets the facet for this proxy.
|
|
416
405
|
|
|
417
406
|
Returns
|
|
418
407
|
-------
|
|
@@ -423,7 +412,7 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
423
412
|
|
|
424
413
|
def ice_facet(self, new_facet: str) -> Self:
|
|
425
414
|
"""
|
|
426
|
-
Creates a
|
|
415
|
+
Creates a proxy that is identical to this proxy, except for the facet.
|
|
427
416
|
|
|
428
417
|
Parameters
|
|
429
418
|
----------
|
|
@@ -432,14 +421,14 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
432
421
|
|
|
433
422
|
Returns
|
|
434
423
|
-------
|
|
435
|
-
|
|
436
|
-
|
|
424
|
+
Self
|
|
425
|
+
A proxy with the new facet.
|
|
437
426
|
"""
|
|
438
427
|
return super().ice_facet(new_facet)
|
|
439
428
|
|
|
440
429
|
def ice_getAdapterId(self) -> str:
|
|
441
430
|
"""
|
|
442
|
-
|
|
431
|
+
Gets the adapter ID for this proxy.
|
|
443
432
|
|
|
444
433
|
Returns
|
|
445
434
|
-------
|
|
@@ -450,7 +439,7 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
450
439
|
|
|
451
440
|
def ice_adapterId(self, newAdapterId: str) -> Self:
|
|
452
441
|
"""
|
|
453
|
-
Creates a
|
|
442
|
+
Creates a proxy that is identical to this proxy, except for the adapter ID.
|
|
454
443
|
|
|
455
444
|
Parameters
|
|
456
445
|
----------
|
|
@@ -459,41 +448,41 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
459
448
|
|
|
460
449
|
Returns
|
|
461
450
|
-------
|
|
462
|
-
|
|
463
|
-
|
|
451
|
+
Self
|
|
452
|
+
A proxy with the new adapter ID.
|
|
464
453
|
"""
|
|
465
454
|
return super().ice_adapterId(newAdapterId)
|
|
466
455
|
|
|
467
|
-
def ice_getEndpoints(self) -> tuple[
|
|
456
|
+
def ice_getEndpoints(self) -> tuple[Endpoint, ...]:
|
|
468
457
|
"""
|
|
469
|
-
|
|
458
|
+
Gets the endpoints used by this proxy.
|
|
470
459
|
|
|
471
460
|
Returns
|
|
472
461
|
-------
|
|
473
|
-
tuple[
|
|
462
|
+
tuple[Ice.Endpoint, ...]
|
|
474
463
|
The endpoints used by this proxy.
|
|
475
464
|
"""
|
|
476
465
|
return super().ice_getEndpoints()
|
|
477
466
|
|
|
478
|
-
def ice_endpoints(self, newEndpoints: tuple[
|
|
467
|
+
def ice_endpoints(self, newEndpoints: tuple[Endpoint, ...] | list[Endpoint]) -> Self:
|
|
479
468
|
"""
|
|
480
|
-
Creates a
|
|
469
|
+
Creates a proxy that is identical to this proxy, except for the endpoints.
|
|
481
470
|
|
|
482
471
|
Parameters
|
|
483
472
|
----------
|
|
484
|
-
newEndpoints : tuple[
|
|
473
|
+
newEndpoints : tuple[Ice.Endpoint, ...] | list[Ice.Endpoint]
|
|
485
474
|
The endpoints for the new proxy.
|
|
486
475
|
|
|
487
476
|
Returns
|
|
488
477
|
-------
|
|
489
|
-
|
|
490
|
-
|
|
478
|
+
Self
|
|
479
|
+
A proxy with the new endpoints.
|
|
491
480
|
"""
|
|
492
481
|
return super().ice_endpoints(newEndpoints)
|
|
493
482
|
|
|
494
483
|
def ice_getLocatorCacheTimeout(self) -> int:
|
|
495
484
|
"""
|
|
496
|
-
|
|
485
|
+
Gets the locator cache timeout of this proxy.
|
|
497
486
|
|
|
498
487
|
Returns
|
|
499
488
|
-------
|
|
@@ -504,7 +493,7 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
504
493
|
|
|
505
494
|
def ice_locatorCacheTimeout(self, timeout: int) -> Self:
|
|
506
495
|
"""
|
|
507
|
-
Creates a
|
|
496
|
+
Creates a proxy that is identical to this proxy, except for the locator cache timeout.
|
|
508
497
|
|
|
509
498
|
Parameters
|
|
510
499
|
----------
|
|
@@ -513,68 +502,68 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
513
502
|
|
|
514
503
|
Returns
|
|
515
504
|
-------
|
|
516
|
-
|
|
517
|
-
|
|
505
|
+
Self
|
|
506
|
+
A proxy with the new timeout.
|
|
518
507
|
"""
|
|
519
508
|
return super().ice_locatorCacheTimeout(timeout)
|
|
520
509
|
|
|
521
510
|
def ice_invocationTimeout(self, timeout: int) -> Self:
|
|
522
511
|
"""
|
|
523
|
-
Creates a
|
|
512
|
+
Creates a proxy that is identical to this proxy, except for the invocation timeout.
|
|
524
513
|
|
|
525
514
|
Parameters
|
|
526
515
|
----------
|
|
527
516
|
timeout : int
|
|
528
|
-
The new invocation timeout (in
|
|
517
|
+
The new invocation timeout (in milliseconds).
|
|
529
518
|
|
|
530
519
|
Returns
|
|
531
520
|
-------
|
|
532
|
-
|
|
533
|
-
|
|
521
|
+
Self
|
|
522
|
+
A proxy with the new timeout.
|
|
534
523
|
"""
|
|
535
524
|
return super().ice_invocationTimeout(timeout)
|
|
536
525
|
|
|
537
526
|
def ice_getInvocationTimeout(self) -> int:
|
|
538
527
|
"""
|
|
539
|
-
|
|
528
|
+
Gets the invocation timeout of this proxy.
|
|
540
529
|
|
|
541
530
|
Returns
|
|
542
531
|
-------
|
|
543
532
|
int
|
|
544
|
-
The invocation timeout value (in
|
|
533
|
+
The invocation timeout value (in milliseconds).
|
|
545
534
|
"""
|
|
546
535
|
return super().ice_getInvocationTimeout()
|
|
547
536
|
|
|
548
537
|
def ice_isConnectionCached(self) -> bool:
|
|
549
538
|
"""
|
|
550
|
-
|
|
539
|
+
Determines whether this proxy caches connections.
|
|
551
540
|
|
|
552
541
|
Returns
|
|
553
542
|
-------
|
|
554
543
|
bool
|
|
555
|
-
True if this proxy caches connections
|
|
544
|
+
``True`` if this proxy caches connections, ``False`` otherwise.
|
|
556
545
|
"""
|
|
557
546
|
return super().ice_isConnectionCached()
|
|
558
547
|
|
|
559
548
|
def ice_connectionCached(self, newCache: bool) -> Self:
|
|
560
549
|
"""
|
|
561
|
-
Creates a
|
|
550
|
+
Creates a proxy that is identical to this proxy, except for connection caching.
|
|
562
551
|
|
|
563
552
|
Parameters
|
|
564
553
|
----------
|
|
565
554
|
newCache : bool
|
|
566
|
-
True if the new proxy should cache connections
|
|
555
|
+
``True`` if the new proxy should cache connections, ``False`` otherwise.
|
|
567
556
|
|
|
568
557
|
Returns
|
|
569
558
|
-------
|
|
570
|
-
|
|
571
|
-
|
|
559
|
+
Self
|
|
560
|
+
A proxy with the specified caching policy.
|
|
572
561
|
"""
|
|
573
562
|
return super().ice_connectionCached(newCache)
|
|
574
563
|
|
|
575
564
|
def ice_getEndpointSelection(self) -> EndpointSelectionType:
|
|
576
565
|
"""
|
|
577
|
-
|
|
566
|
+
Gets the endpoint selection policy for this proxy (randomly or ordered).
|
|
578
567
|
|
|
579
568
|
Returns
|
|
580
569
|
-------
|
|
@@ -585,7 +574,7 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
585
574
|
|
|
586
575
|
def ice_endpointSelection(self, newType: EndpointSelectionType) -> Self:
|
|
587
576
|
"""
|
|
588
|
-
Creates a
|
|
577
|
+
Creates a proxy that is identical to this proxy, except for the endpoint selection policy.
|
|
589
578
|
|
|
590
579
|
Parameters
|
|
591
580
|
----------
|
|
@@ -594,30 +583,30 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
594
583
|
|
|
595
584
|
Returns
|
|
596
585
|
-------
|
|
597
|
-
|
|
598
|
-
|
|
586
|
+
Self
|
|
587
|
+
A proxy with the specified endpoint selection policy.
|
|
599
588
|
"""
|
|
600
589
|
return super().ice_endpointSelection(newType)
|
|
601
590
|
|
|
602
591
|
def ice_encodingVersion(self, version: EncodingVersion) -> Self:
|
|
603
592
|
"""
|
|
604
|
-
Creates a
|
|
593
|
+
Creates a proxy that is identical to this proxy, except for the encoding used to marshal parameters.
|
|
605
594
|
|
|
606
595
|
Parameters
|
|
607
596
|
----------
|
|
608
597
|
version : EncodingVersion
|
|
609
|
-
The encoding version to use to marshal
|
|
598
|
+
The encoding version to use to marshal request parameters.
|
|
610
599
|
|
|
611
600
|
Returns
|
|
612
601
|
-------
|
|
613
|
-
|
|
614
|
-
|
|
602
|
+
Self
|
|
603
|
+
A proxy with the specified encoding version.
|
|
615
604
|
"""
|
|
616
605
|
return super().ice_encodingVersion(version)
|
|
617
606
|
|
|
618
607
|
def ice_getEncodingVersion(self) -> EncodingVersion:
|
|
619
608
|
"""
|
|
620
|
-
|
|
609
|
+
Gets the encoding version used to marshal request parameters.
|
|
621
610
|
|
|
622
611
|
Returns
|
|
623
612
|
-------
|
|
@@ -628,225 +617,226 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
628
617
|
|
|
629
618
|
def ice_getRouter(self) -> RouterPrx | None:
|
|
630
619
|
"""
|
|
631
|
-
|
|
620
|
+
Gets the router for this proxy.
|
|
632
621
|
|
|
633
622
|
Returns
|
|
634
623
|
-------
|
|
635
|
-
RouterPrx
|
|
636
|
-
The router for the proxy. If no router is configured for the proxy, the return value is None
|
|
624
|
+
RouterPrx | None
|
|
625
|
+
The router for the proxy. If no router is configured for the proxy, the return value is ``None``.
|
|
637
626
|
"""
|
|
638
627
|
return super().ice_getRouter()
|
|
639
628
|
|
|
640
629
|
def ice_router(self, router: RouterPrx | None) -> Self:
|
|
641
630
|
"""
|
|
642
|
-
Creates a
|
|
631
|
+
Creates a proxy that is identical to this proxy, except for the router.
|
|
643
632
|
|
|
644
633
|
Parameters
|
|
645
634
|
----------
|
|
646
|
-
router : RouterPrx
|
|
635
|
+
router : RouterPrx | None
|
|
647
636
|
The router for the new proxy.
|
|
648
637
|
|
|
649
638
|
Returns
|
|
650
639
|
-------
|
|
651
|
-
|
|
652
|
-
|
|
640
|
+
Self
|
|
641
|
+
A proxy with the specified router.
|
|
653
642
|
"""
|
|
654
643
|
return super().ice_router(router)
|
|
655
644
|
|
|
656
645
|
def ice_getLocator(self) -> LocatorPrx | None:
|
|
657
646
|
"""
|
|
658
|
-
|
|
647
|
+
Gets the locator for this proxy.
|
|
659
648
|
|
|
660
649
|
Returns
|
|
661
650
|
-------
|
|
662
|
-
LocatorPrx
|
|
663
|
-
The locator for this proxy. If no locator is configured, the return value is None
|
|
651
|
+
LocatorPrx | None
|
|
652
|
+
The locator for this proxy. If no locator is configured, the return value is ``None``.
|
|
664
653
|
"""
|
|
665
654
|
return super().ice_getLocator()
|
|
666
655
|
|
|
667
656
|
def ice_locator(self, locator: LocatorPrx | None) -> Self:
|
|
668
657
|
"""
|
|
669
|
-
Creates a
|
|
658
|
+
Creates a proxy that is identical to this proxy, except for the locator.
|
|
670
659
|
|
|
671
660
|
Parameters
|
|
672
661
|
----------
|
|
673
|
-
locator : LocatorPrx
|
|
662
|
+
locator : LocatorPrx | None
|
|
674
663
|
The locator for the new proxy.
|
|
675
664
|
|
|
676
665
|
Returns
|
|
677
666
|
-------
|
|
678
|
-
|
|
679
|
-
|
|
667
|
+
Self
|
|
668
|
+
A proxy with the specified locator.
|
|
680
669
|
"""
|
|
681
670
|
return super().ice_locator(locator)
|
|
682
671
|
|
|
683
672
|
def ice_isCollocationOptimized(self) -> bool:
|
|
684
673
|
"""
|
|
685
|
-
|
|
674
|
+
Determines whether this proxy uses collocation optimization.
|
|
686
675
|
|
|
687
676
|
Returns
|
|
688
677
|
-------
|
|
689
678
|
bool
|
|
690
|
-
True if the proxy uses collocation optimization
|
|
679
|
+
``True`` if the proxy uses collocation optimization, ``False`` otherwise.
|
|
691
680
|
"""
|
|
692
681
|
return super().ice_isCollocationOptimized()
|
|
693
682
|
|
|
694
683
|
def ice_collocationOptimized(self, collocated: bool) -> Self:
|
|
695
684
|
"""
|
|
696
|
-
Creates a
|
|
685
|
+
Creates a proxy that is identical to this proxy, except for collocation optimization.
|
|
697
686
|
|
|
698
687
|
Parameters
|
|
699
688
|
----------
|
|
700
689
|
collocated : bool
|
|
701
|
-
True if the new proxy enables collocation optimization
|
|
690
|
+
``True`` if the new proxy enables collocation optimization, ``False`` otherwise.
|
|
702
691
|
|
|
703
692
|
Returns
|
|
704
693
|
-------
|
|
705
|
-
|
|
706
|
-
|
|
694
|
+
Self
|
|
695
|
+
A proxy with the specified collocation optimization.
|
|
707
696
|
"""
|
|
708
697
|
return super().ice_collocationOptimized(collocated)
|
|
709
698
|
|
|
710
699
|
def ice_twoway(self) -> Self:
|
|
711
700
|
"""
|
|
712
|
-
Creates a
|
|
701
|
+
Creates a proxy that is identical to this proxy, but uses twoway invocations.
|
|
713
702
|
|
|
714
703
|
Returns
|
|
715
704
|
-------
|
|
716
|
-
|
|
717
|
-
A
|
|
705
|
+
Self
|
|
706
|
+
A proxy that uses twoway invocations.
|
|
718
707
|
"""
|
|
719
708
|
return super().ice_twoway()
|
|
720
709
|
|
|
721
710
|
def ice_isTwoway(self) -> bool:
|
|
722
711
|
"""
|
|
723
|
-
|
|
712
|
+
Determines whether this proxy uses twoway invocations.
|
|
724
713
|
|
|
725
714
|
Returns
|
|
726
715
|
-------
|
|
727
716
|
bool
|
|
728
|
-
True if this proxy uses twoway invocations
|
|
717
|
+
``True`` if this proxy uses twoway invocations, ``False`` otherwise.
|
|
729
718
|
"""
|
|
730
719
|
return super().ice_isTwoway()
|
|
731
720
|
|
|
732
721
|
def ice_oneway(self) -> Self:
|
|
733
722
|
"""
|
|
734
|
-
Creates a
|
|
723
|
+
Creates a proxy that is identical to this proxy, but uses oneway invocations.
|
|
735
724
|
|
|
736
725
|
Returns
|
|
737
726
|
-------
|
|
738
|
-
|
|
739
|
-
A
|
|
727
|
+
Self
|
|
728
|
+
A proxy that uses oneway invocations.
|
|
740
729
|
"""
|
|
741
730
|
return super().ice_oneway()
|
|
742
731
|
|
|
743
732
|
def ice_isOneway(self) -> bool:
|
|
744
733
|
"""
|
|
745
|
-
|
|
734
|
+
Determines whether this proxy uses oneway invocations.
|
|
746
735
|
|
|
747
736
|
Returns
|
|
748
737
|
-------
|
|
749
738
|
bool
|
|
750
|
-
True if this proxy uses oneway invocations
|
|
739
|
+
``True`` if this proxy uses oneway invocations, ``False`` otherwise.
|
|
751
740
|
"""
|
|
752
741
|
return super().ice_isOneway()
|
|
753
742
|
|
|
754
743
|
def ice_batchOneway(self) -> Self:
|
|
755
744
|
"""
|
|
756
|
-
Creates a
|
|
745
|
+
Creates a proxy that is identical to this proxy, but uses batch oneway invocations.
|
|
757
746
|
|
|
758
747
|
Returns
|
|
759
748
|
-------
|
|
760
|
-
|
|
761
|
-
A
|
|
749
|
+
Self
|
|
750
|
+
A proxy that uses batch oneway invocations.
|
|
762
751
|
"""
|
|
763
752
|
return super().ice_batchOneway()
|
|
764
753
|
|
|
765
754
|
def ice_isBatchOneway(self) -> bool:
|
|
766
755
|
"""
|
|
767
|
-
|
|
756
|
+
Determines whether this proxy uses batch oneway invocations.
|
|
768
757
|
|
|
769
758
|
Returns
|
|
770
759
|
-------
|
|
771
760
|
bool
|
|
772
|
-
True if this proxy uses batch oneway invocations
|
|
761
|
+
``True`` if this proxy uses batch oneway invocations, ``False`` otherwise.
|
|
773
762
|
"""
|
|
774
763
|
return super().ice_isBatchOneway()
|
|
775
764
|
|
|
776
765
|
def ice_datagram(self) -> Self:
|
|
777
766
|
"""
|
|
778
|
-
Creates a
|
|
767
|
+
Creates a proxy that is identical to this proxy, but uses datagram invocations.
|
|
779
768
|
|
|
780
769
|
Returns
|
|
781
770
|
-------
|
|
782
|
-
|
|
783
|
-
A
|
|
771
|
+
Self
|
|
772
|
+
A proxy that uses datagram invocations.
|
|
784
773
|
"""
|
|
785
774
|
return super().ice_datagram()
|
|
786
775
|
|
|
787
776
|
def ice_isDatagram(self) -> bool:
|
|
788
777
|
"""
|
|
789
|
-
|
|
778
|
+
Determines whether this proxy uses datagram invocations.
|
|
790
779
|
|
|
791
780
|
Returns
|
|
792
781
|
-------
|
|
793
782
|
bool
|
|
794
|
-
True if this proxy uses datagram invocations
|
|
783
|
+
``True`` if this proxy uses datagram invocations, ``False`` otherwise.
|
|
795
784
|
"""
|
|
796
785
|
return super().ice_isDatagram()
|
|
797
786
|
|
|
798
787
|
def ice_batchDatagram(self) -> Self:
|
|
799
788
|
"""
|
|
800
|
-
Creates a
|
|
789
|
+
Creates a proxy that is identical to this proxy, but uses batch datagram invocations.
|
|
801
790
|
|
|
802
791
|
Returns
|
|
803
792
|
-------
|
|
804
|
-
|
|
805
|
-
A
|
|
793
|
+
Self
|
|
794
|
+
A proxy that uses batch datagram invocations.
|
|
806
795
|
"""
|
|
807
796
|
return super().ice_batchDatagram()
|
|
808
797
|
|
|
809
798
|
def ice_isBatchDatagram(self) -> bool:
|
|
810
799
|
"""
|
|
811
|
-
|
|
800
|
+
Determines whether this proxy uses batch datagram invocations.
|
|
812
801
|
|
|
813
802
|
Returns
|
|
814
803
|
-------
|
|
815
804
|
bool
|
|
816
|
-
True if this proxy uses batch datagram invocations
|
|
805
|
+
``True`` if this proxy uses batch datagram invocations, ``False`` otherwise.
|
|
817
806
|
"""
|
|
818
807
|
return super().ice_isBatchDatagram()
|
|
819
808
|
|
|
820
809
|
def ice_compress(self, compress: bool) -> Self:
|
|
821
810
|
"""
|
|
822
|
-
Creates a
|
|
811
|
+
Creates a proxy that is identical to this proxy, except for its compression setting which overrides the
|
|
812
|
+
compression setting from the proxy endpoints.
|
|
823
813
|
|
|
824
814
|
Parameters
|
|
825
815
|
----------
|
|
826
816
|
compress : bool
|
|
827
|
-
True enables compression for the new proxy
|
|
817
|
+
``True`` enables compression for the new proxy, ``False`` disables compression.
|
|
828
818
|
|
|
829
819
|
Returns
|
|
830
820
|
-------
|
|
831
|
-
|
|
832
|
-
A
|
|
821
|
+
Self
|
|
822
|
+
A proxy with the specified compression override setting.
|
|
833
823
|
"""
|
|
834
824
|
return super().ice_compress(compress)
|
|
835
825
|
|
|
836
826
|
def ice_getCompress(self) -> bool | None:
|
|
837
827
|
"""
|
|
838
|
-
|
|
828
|
+
Gets the compression override setting of this proxy.
|
|
839
829
|
|
|
840
830
|
Returns
|
|
841
831
|
-------
|
|
842
|
-
|
|
843
|
-
|
|
832
|
+
The compression override setting. If ``None`` is returned, no override is set.
|
|
833
|
+
Otherwise, ``True`` if compression is enabled, ``False`` otherwise.
|
|
844
834
|
"""
|
|
845
835
|
return super().ice_getCompress()
|
|
846
836
|
|
|
847
837
|
def ice_connectionId(self, connectionId: str) -> Self:
|
|
848
838
|
"""
|
|
849
|
-
Creates a
|
|
839
|
+
Creates a proxy that is identical to this proxy, except for its connection ID.
|
|
850
840
|
|
|
851
841
|
Parameters
|
|
852
842
|
----------
|
|
@@ -855,26 +845,25 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
855
845
|
|
|
856
846
|
Returns
|
|
857
847
|
-------
|
|
858
|
-
|
|
859
|
-
A
|
|
848
|
+
Self
|
|
849
|
+
A proxy with the specified connection ID.
|
|
860
850
|
"""
|
|
861
851
|
return super().ice_connectionId(connectionId)
|
|
862
852
|
|
|
863
853
|
def ice_getConnectionId(self) -> str:
|
|
864
854
|
"""
|
|
865
|
-
|
|
855
|
+
Gets the connection ID of this proxy.
|
|
866
856
|
|
|
867
857
|
Returns
|
|
868
858
|
-------
|
|
869
859
|
str
|
|
870
|
-
The connection
|
|
860
|
+
The connection ID.
|
|
871
861
|
"""
|
|
872
862
|
return super().ice_getConnectionId()
|
|
873
863
|
|
|
874
864
|
def ice_fixed(self, connection: Connection) -> Self:
|
|
875
865
|
"""
|
|
876
|
-
|
|
877
|
-
to the given connection.
|
|
866
|
+
Creates a proxy that is identical to this proxy, except it's a fixed proxy bound to the given connection.
|
|
878
867
|
|
|
879
868
|
Parameters
|
|
880
869
|
----------
|
|
@@ -883,43 +872,48 @@ class ObjectPrx(IcePy.ObjectPrx):
|
|
|
883
872
|
|
|
884
873
|
Returns
|
|
885
874
|
-------
|
|
886
|
-
|
|
875
|
+
Self
|
|
887
876
|
A fixed proxy bound to the given connection.
|
|
888
877
|
"""
|
|
889
878
|
return super().ice_fixed(connection)
|
|
890
879
|
|
|
891
880
|
def ice_isFixed(self) -> bool:
|
|
892
881
|
"""
|
|
893
|
-
|
|
882
|
+
Determines whether this proxy is a fixed proxy.
|
|
894
883
|
|
|
895
884
|
Returns
|
|
896
885
|
-------
|
|
897
886
|
bool
|
|
898
|
-
True if this is a fixed proxy
|
|
887
|
+
``True`` if this proxy is a fixed proxy, ``False`` otherwise.
|
|
899
888
|
"""
|
|
900
889
|
return super().ice_isFixed()
|
|
901
890
|
|
|
902
891
|
def ice_getConnection(self) -> Connection | None:
|
|
903
892
|
"""
|
|
904
|
-
|
|
893
|
+
Gets the connection for this proxy. If the proxy does not yet have an established connection,
|
|
905
894
|
it first attempts to create a connection.
|
|
906
895
|
|
|
907
896
|
Returns
|
|
908
897
|
-------
|
|
909
898
|
Connection | None
|
|
910
|
-
The Connection for this proxy, or
|
|
899
|
+
The Connection for this proxy, or ``None`` when the target object is collocated.
|
|
900
|
+
|
|
901
|
+
Notes
|
|
902
|
+
-----
|
|
903
|
+
You can call this function to establish a connection or associate the proxy with an existing
|
|
904
|
+
connection and ignore the return value.
|
|
911
905
|
"""
|
|
912
906
|
return super().ice_getConnection()
|
|
913
907
|
|
|
914
908
|
def ice_getCachedConnection(self) -> Connection | None:
|
|
915
909
|
"""
|
|
916
|
-
|
|
917
|
-
|
|
910
|
+
Gets the cached Connection for this proxy. If the proxy does not yet have an established connection,
|
|
911
|
+
it does not attempt to create a connection.
|
|
918
912
|
|
|
919
913
|
Returns
|
|
920
914
|
-------
|
|
921
915
|
Connection | None
|
|
922
|
-
The cached
|
|
916
|
+
The cached connection for this proxy, or ``None`` if the proxy does not have an established connection.
|
|
923
917
|
"""
|
|
924
918
|
return super().ice_getCachedConnection()
|
|
925
919
|
|