zeroc-ice 3.8.0__cp312-cp312-macosx_10_13_universal2.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- Glacier2/CannotCreateSessionException.py +40 -0
- Glacier2/IdentitySet.py +293 -0
- Glacier2/IdentitySet_forward.py +10 -0
- Glacier2/PermissionDeniedException.py +40 -0
- Glacier2/PermissionsVerifier.py +189 -0
- Glacier2/PermissionsVerifier_forward.py +10 -0
- Glacier2/Router.py +661 -0
- Glacier2/Router_forward.py +10 -0
- Glacier2/SSLInfo.py +62 -0
- Glacier2/SSLPermissionsVerifier.py +186 -0
- Glacier2/SSLPermissionsVerifier_forward.py +10 -0
- Glacier2/SSLSessionManager.py +192 -0
- Glacier2/SSLSessionManager_forward.py +10 -0
- Glacier2/Session.py +161 -0
- Glacier2/SessionControl.py +407 -0
- Glacier2/SessionControl_forward.py +10 -0
- Glacier2/SessionManager.py +189 -0
- Glacier2/SessionManager_forward.py +10 -0
- Glacier2/SessionNotExistException.py +39 -0
- Glacier2/Session_forward.py +10 -0
- Glacier2/StringSet.py +289 -0
- Glacier2/StringSet_forward.py +10 -0
- Glacier2/__init__.py +79 -0
- Glacier2/py.typed +0 -0
- Ice/AdapterAlreadyActiveException.py +35 -0
- Ice/AdapterNotFoundException.py +35 -0
- Ice/BTEndpointType.py +11 -0
- Ice/BTSEndpointType.py +11 -0
- Ice/Blobject.py +42 -0
- Ice/BoolSeq.py +10 -0
- Ice/Builtin.py +11 -0
- Ice/ByteSeq.py +10 -0
- Ice/Communicator.py +621 -0
- Ice/CompressBatch.py +25 -0
- Ice/Context.py +10 -0
- Ice/Current.py +48 -0
- Ice/Dispatch.py +122 -0
- Ice/DoubleSeq.py +10 -0
- Ice/EncodingVersion.py +41 -0
- Ice/EndpointSelectionType.py +22 -0
- Ice/EventLoopAdapter.py +52 -0
- Ice/Exception.py +29 -0
- Ice/FloatSeq.py +10 -0
- Ice/FormatType.py +15 -0
- Ice/Future.py +375 -0
- Ice/IcePyTypes.py +47 -0
- Ice/Identity.py +40 -0
- Ice/IdentitySeq.py +12 -0
- Ice/ImplicitContext.py +126 -0
- Ice/InitializationData.py +64 -0
- Ice/IntSeq.py +10 -0
- Ice/InvalidReplicaGroupIdException.py +34 -0
- Ice/InvocationFuture.py +158 -0
- Ice/LocalException.py +12 -0
- Ice/LocalExceptions.py +546 -0
- Ice/Locator.py +332 -0
- Ice/LocatorFinder.py +163 -0
- Ice/LocatorFinder_forward.py +10 -0
- Ice/LocatorRegistry.py +387 -0
- Ice/LocatorRegistry_forward.py +10 -0
- Ice/Locator_forward.py +10 -0
- Ice/LogMessage.py +51 -0
- Ice/LogMessageSeq.py +12 -0
- Ice/LogMessageType.py +50 -0
- Ice/LogMessageTypeSeq.py +12 -0
- Ice/Logger.py +100 -0
- Ice/LoggerAdmin.py +380 -0
- Ice/LoggerAdmin_forward.py +10 -0
- Ice/LongSeq.py +10 -0
- Ice/Object.py +145 -0
- Ice/ObjectAdapter.py +588 -0
- Ice/ObjectNotFoundException.py +35 -0
- Ice/ObjectProxySeq.py +12 -0
- Ice/ObjectPrx.py +940 -0
- Ice/ObjectPrx_forward.py +7 -0
- Ice/ObjectSeq.py +12 -0
- Ice/OperationMode.py +47 -0
- Ice/Process.py +217 -0
- Ice/ProcessLogger.py +25 -0
- Ice/Process_forward.py +10 -0
- Ice/Properties.py +387 -0
- Ice/PropertiesAdmin.py +302 -0
- Ice/PropertiesAdmin_forward.py +10 -0
- Ice/PropertyDict.py +10 -0
- Ice/ProtocolVersion.py +39 -0
- Ice/Proxy.py +63 -0
- Ice/RemoteLogger.py +238 -0
- Ice/RemoteLoggerAlreadyAttachedException.py +34 -0
- Ice/RemoteLogger_forward.py +10 -0
- Ice/ReplyStatus.py +84 -0
- Ice/Router.py +322 -0
- Ice/RouterFinder.py +163 -0
- Ice/RouterFinder_forward.py +10 -0
- Ice/Router_forward.py +10 -0
- Ice/SSLEndpointType.py +11 -0
- Ice/ServantLocator.py +93 -0
- Ice/ServerNotFoundException.py +34 -0
- Ice/ShortSeq.py +10 -0
- Ice/SliceChecksumDict.py +10 -0
- Ice/SliceInfo.py +22 -0
- Ice/SlicedData.py +14 -0
- Ice/StringSeq.py +10 -0
- Ice/TCPEndpointType.py +11 -0
- Ice/ToStringMode.py +34 -0
- Ice/UDPEndpointType.py +11 -0
- Ice/URIEndpointType.py +11 -0
- Ice/UnknownSlicedValue.py +31 -0
- Ice/UserException.py +18 -0
- Ice/Util.py +170 -0
- Ice/Value.py +59 -0
- Ice/Value_forward.py +7 -0
- Ice/WSEndpointType.py +11 -0
- Ice/WSSEndpointType.py +11 -0
- Ice/_ArrayUtil.py +51 -0
- Ice/_LoggerI.py +32 -0
- Ice/__init__.py +367 -0
- Ice/asyncio/EventLoopAdapter.py +31 -0
- Ice/asyncio/__init__.py +5 -0
- Ice/iAPEndpointType.py +11 -0
- Ice/iAPSEndpointType.py +11 -0
- Ice/py.typed +0 -0
- IceBox/AlreadyStartedException.py +34 -0
- IceBox/AlreadyStoppedException.py +34 -0
- IceBox/NoSuchServiceException.py +34 -0
- IceBox/ServiceManager.py +447 -0
- IceBox/ServiceManager_forward.py +10 -0
- IceBox/ServiceObserver.py +229 -0
- IceBox/ServiceObserver_forward.py +10 -0
- IceBox/__init__.py +33 -0
- IceBox/py.typed +0 -0
- IceGrid/AccessDeniedException.py +40 -0
- IceGrid/AdapterDescriptor.py +77 -0
- IceGrid/AdapterDescriptorSeq.py +12 -0
- IceGrid/AdapterDynamicInfo.py +46 -0
- IceGrid/AdapterDynamicInfoSeq.py +12 -0
- IceGrid/AdapterInfo.py +50 -0
- IceGrid/AdapterInfoSeq.py +12 -0
- IceGrid/AdapterNotExistException.py +40 -0
- IceGrid/AdapterObserver.py +338 -0
- IceGrid/AdapterObserver_forward.py +10 -0
- IceGrid/AdaptiveLoadBalancingPolicy.py +48 -0
- IceGrid/AdaptiveLoadBalancingPolicy_forward.py +10 -0
- IceGrid/Admin.py +3662 -0
- IceGrid/AdminSession.py +1406 -0
- IceGrid/AdminSession_forward.py +10 -0
- IceGrid/Admin_forward.py +10 -0
- IceGrid/AllocationException.py +40 -0
- IceGrid/AllocationTimeoutException.py +35 -0
- IceGrid/ApplicationDescriptor.py +89 -0
- IceGrid/ApplicationDescriptorSeq.py +12 -0
- IceGrid/ApplicationInfo.py +63 -0
- IceGrid/ApplicationInfoSeq.py +12 -0
- IceGrid/ApplicationNotExistException.py +40 -0
- IceGrid/ApplicationObserver.py +374 -0
- IceGrid/ApplicationObserver_forward.py +10 -0
- IceGrid/ApplicationUpdateDescriptor.py +118 -0
- IceGrid/ApplicationUpdateInfo.py +51 -0
- IceGrid/BadSignalException.py +40 -0
- IceGrid/BoxedDistributionDescriptor.py +49 -0
- IceGrid/BoxedDistributionDescriptor_forward.py +10 -0
- IceGrid/BoxedString.py +45 -0
- IceGrid/BoxedString_forward.py +10 -0
- IceGrid/CommunicatorDescriptor.py +79 -0
- IceGrid/CommunicatorDescriptor_forward.py +10 -0
- IceGrid/DbEnvDescriptor.py +55 -0
- IceGrid/DbEnvDescriptorSeq.py +12 -0
- IceGrid/DeploymentException.py +40 -0
- IceGrid/DistributionDescriptor.py +42 -0
- IceGrid/FileIterator.py +246 -0
- IceGrid/FileIterator_forward.py +10 -0
- IceGrid/FileNotAvailableException.py +49 -0
- IceGrid/FileParser.py +182 -0
- IceGrid/FileParser_forward.py +10 -0
- IceGrid/IceBoxDescriptor.py +55 -0
- IceGrid/IceBoxDescriptor_forward.py +10 -0
- IceGrid/LoadBalancingPolicy.py +45 -0
- IceGrid/LoadBalancingPolicy_forward.py +10 -0
- IceGrid/LoadInfo.py +43 -0
- IceGrid/LoadSample.py +45 -0
- IceGrid/Locator.py +232 -0
- IceGrid/Locator_forward.py +10 -0
- IceGrid/NodeDescriptor.py +71 -0
- IceGrid/NodeDescriptorDict.py +12 -0
- IceGrid/NodeDynamicInfo.py +57 -0
- IceGrid/NodeDynamicInfoSeq.py +12 -0
- IceGrid/NodeInfo.py +64 -0
- IceGrid/NodeNotExistException.py +40 -0
- IceGrid/NodeObserver.py +424 -0
- IceGrid/NodeObserver_forward.py +10 -0
- IceGrid/NodeUnreachableException.py +46 -0
- IceGrid/NodeUpdateDescriptor.py +92 -0
- IceGrid/NodeUpdateDescriptorSeq.py +12 -0
- IceGrid/ObjectDescriptor.py +48 -0
- IceGrid/ObjectDescriptorSeq.py +12 -0
- IceGrid/ObjectExistsException.py +44 -0
- IceGrid/ObjectInfo.py +46 -0
- IceGrid/ObjectInfoSeq.py +12 -0
- IceGrid/ObjectNotRegisteredException.py +44 -0
- IceGrid/ObjectObserver.py +347 -0
- IceGrid/ObjectObserver_forward.py +10 -0
- IceGrid/ObserverAlreadyRegisteredException.py +49 -0
- IceGrid/OrderedLoadBalancingPolicy.py +41 -0
- IceGrid/OrderedLoadBalancingPolicy_forward.py +10 -0
- IceGrid/ParseException.py +40 -0
- IceGrid/PermissionDeniedException.py +40 -0
- IceGrid/PropertyDescriptor.py +39 -0
- IceGrid/PropertyDescriptorSeq.py +12 -0
- IceGrid/PropertySetDescriptor.py +49 -0
- IceGrid/PropertySetDescriptorDict.py +12 -0
- IceGrid/Query.py +451 -0
- IceGrid/Query_forward.py +10 -0
- IceGrid/RandomLoadBalancingPolicy.py +41 -0
- IceGrid/RandomLoadBalancingPolicy_forward.py +10 -0
- IceGrid/Registry.py +477 -0
- IceGrid/RegistryInfo.py +39 -0
- IceGrid/RegistryInfoSeq.py +12 -0
- IceGrid/RegistryNotExistException.py +40 -0
- IceGrid/RegistryObserver.py +282 -0
- IceGrid/RegistryObserver_forward.py +10 -0
- IceGrid/RegistryUnreachableException.py +46 -0
- IceGrid/Registry_forward.py +10 -0
- IceGrid/ReplicaGroupDescriptor.py +66 -0
- IceGrid/ReplicaGroupDescriptorSeq.py +12 -0
- IceGrid/RoundRobinLoadBalancingPolicy.py +41 -0
- IceGrid/RoundRobinLoadBalancingPolicy_forward.py +10 -0
- IceGrid/ServerDescriptor.py +107 -0
- IceGrid/ServerDescriptorSeq.py +12 -0
- IceGrid/ServerDescriptor_forward.py +10 -0
- IceGrid/ServerDynamicInfo.py +50 -0
- IceGrid/ServerDynamicInfoSeq.py +12 -0
- IceGrid/ServerInfo.py +62 -0
- IceGrid/ServerInstanceDescriptor.py +58 -0
- IceGrid/ServerInstanceDescriptorSeq.py +12 -0
- IceGrid/ServerNotExistException.py +40 -0
- IceGrid/ServerStartException.py +46 -0
- IceGrid/ServerState.py +66 -0
- IceGrid/ServerStopException.py +46 -0
- IceGrid/ServiceDescriptor.py +53 -0
- IceGrid/ServiceDescriptorSeq.py +12 -0
- IceGrid/ServiceDescriptor_forward.py +10 -0
- IceGrid/ServiceInstanceDescriptor.py +60 -0
- IceGrid/ServiceInstanceDescriptorSeq.py +12 -0
- IceGrid/Session.py +498 -0
- IceGrid/Session_forward.py +10 -0
- IceGrid/StringObjectProxyDict.py +12 -0
- IceGrid/StringStringDict.py +10 -0
- IceGrid/TemplateDescriptor.py +55 -0
- IceGrid/TemplateDescriptorDict.py +12 -0
- IceGrid/UserAccountMapper.py +178 -0
- IceGrid/UserAccountMapper_forward.py +10 -0
- IceGrid/UserAccountNotFoundException.py +34 -0
- IceGrid/__init__.py +375 -0
- IceGrid/py.typed +0 -0
- IceMX/ChildInvocationMetrics.py +56 -0
- IceMX/ChildInvocationMetrics_forward.py +10 -0
- IceMX/CollocatedMetrics.py +42 -0
- IceMX/CollocatedMetrics_forward.py +10 -0
- IceMX/ConnectionMetrics.py +53 -0
- IceMX/ConnectionMetrics_forward.py +10 -0
- IceMX/DispatchMetrics.py +57 -0
- IceMX/DispatchMetrics_forward.py +10 -0
- IceMX/InvocationMetrics.py +66 -0
- IceMX/InvocationMetrics_forward.py +10 -0
- IceMX/Metrics.py +66 -0
- IceMX/MetricsAdmin.py +586 -0
- IceMX/MetricsAdmin_forward.py +10 -0
- IceMX/MetricsFailures.py +42 -0
- IceMX/MetricsFailuresSeq.py +12 -0
- IceMX/MetricsMap.py +12 -0
- IceMX/MetricsView.py +12 -0
- IceMX/Metrics_forward.py +10 -0
- IceMX/RemoteMetrics.py +42 -0
- IceMX/RemoteMetrics_forward.py +10 -0
- IceMX/SessionMetrics.py +73 -0
- IceMX/SessionMetrics_forward.py +10 -0
- IceMX/StringIntDict.py +10 -0
- IceMX/SubscriberMetrics.py +57 -0
- IceMX/SubscriberMetrics_forward.py +10 -0
- IceMX/ThreadMetrics.py +59 -0
- IceMX/ThreadMetrics_forward.py +10 -0
- IceMX/TopicMetrics.py +53 -0
- IceMX/TopicMetrics_forward.py +10 -0
- IceMX/UnknownMetricsView.py +34 -0
- IceMX/__init__.py +75 -0
- IceMX/py.typed +0 -0
- IcePy-stubs/__init__.pyi +740 -0
- IcePy.cpython-312-darwin.so +0 -0
- IceStorm/AlreadySubscribed.py +34 -0
- IceStorm/BadQoS.py +40 -0
- IceStorm/Finder.py +163 -0
- IceStorm/Finder_forward.py +10 -0
- IceStorm/LinkExists.py +40 -0
- IceStorm/LinkInfo.py +50 -0
- IceStorm/LinkInfoSeq.py +12 -0
- IceStorm/NoSuchLink.py +40 -0
- IceStorm/NoSuchTopic.py +40 -0
- IceStorm/QoS.py +10 -0
- IceStorm/Topic.py +825 -0
- IceStorm/TopicDict.py +12 -0
- IceStorm/TopicExists.py +40 -0
- IceStorm/TopicManager.py +394 -0
- IceStorm/TopicManager_forward.py +10 -0
- IceStorm/Topic_forward.py +10 -0
- IceStorm/__init__.py +61 -0
- IceStorm/py.typed +0 -0
- slice/DataStorm/SampleEvent.ice +29 -0
- slice/Glacier2/Metrics.ice +47 -0
- slice/Glacier2/PermissionsVerifier.ice +55 -0
- slice/Glacier2/Router.ice +93 -0
- slice/Glacier2/SSLInfo.ice +42 -0
- slice/Glacier2/Session.ice +133 -0
- slice/Ice/BuiltinSequences.ice +54 -0
- slice/Ice/Context.ice +24 -0
- slice/Ice/EndpointTypes.ice +50 -0
- slice/Ice/Identity.ice +36 -0
- slice/Ice/Locator.ice +74 -0
- slice/Ice/LocatorRegistry.ice +77 -0
- slice/Ice/Metrics.ice +201 -0
- slice/Ice/OperationMode.ice +38 -0
- slice/Ice/Process.ice +28 -0
- slice/Ice/PropertiesAdmin.ice +37 -0
- slice/Ice/PropertyDict.ice +23 -0
- slice/Ice/RemoteLogger.ice +126 -0
- slice/Ice/ReplyStatus.ice +65 -0
- slice/Ice/Router.ice +54 -0
- slice/Ice/SliceChecksumDict.ice +18 -0
- slice/Ice/Version.ice +43 -0
- slice/IceBox/ServiceManager.ice +79 -0
- slice/IceGrid/Admin.ice +981 -0
- slice/IceGrid/Descriptor.ice +519 -0
- slice/IceGrid/Exception.ice +98 -0
- slice/IceGrid/FileParser.ice +36 -0
- slice/IceGrid/Registry.ice +130 -0
- slice/IceGrid/Session.ice +64 -0
- slice/IceGrid/UserAccountMapper.ice +34 -0
- slice/IceStorm/IceStorm.ice +186 -0
- slice/IceStorm/Metrics.ice +41 -0
- slice2py.py +20 -0
- zeroc_ice-3.8.0.dist-info/METADATA +106 -0
- zeroc_ice-3.8.0.dist-info/RECORD +343 -0
- zeroc_ice-3.8.0.dist-info/WHEEL +5 -0
- zeroc_ice-3.8.0.dist-info/entry_points.txt +2 -0
- zeroc_ice-3.8.0.dist-info/top_level.txt +10 -0
Ice/ObjectPrx_forward.py
ADDED
Ice/ObjectSeq.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Copyright (c) ZeroC, Inc.
|
|
2
|
+
|
|
3
|
+
# slice2py version 3.8.0
|
|
4
|
+
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
import IcePy
|
|
7
|
+
|
|
8
|
+
from Ice.Value_forward import _Ice_Value_t
|
|
9
|
+
|
|
10
|
+
_Ice_ObjectSeq_t = IcePy.defineSequence("::Ice::ObjectSeq", (), _Ice_Value_t)
|
|
11
|
+
|
|
12
|
+
__all__ = ["_Ice_ObjectSeq_t"]
|
Ice/OperationMode.py
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Copyright (c) ZeroC, Inc.
|
|
2
|
+
|
|
3
|
+
# slice2py version 3.8.0
|
|
4
|
+
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
import IcePy
|
|
7
|
+
|
|
8
|
+
from enum import Enum
|
|
9
|
+
|
|
10
|
+
class OperationMode(Enum):
|
|
11
|
+
"""
|
|
12
|
+
Specifies if an operation is idempotent, which affects the retry behavior of the Ice client runtime.
|
|
13
|
+
|
|
14
|
+
Enumerators:
|
|
15
|
+
|
|
16
|
+
- Normal:
|
|
17
|
+
A non-idempotent operation (the default). The Ice client runtime guarantees that it will not violate
|
|
18
|
+
at-most-once semantics for operations with this mode.
|
|
19
|
+
|
|
20
|
+
- Nonmutating:
|
|
21
|
+
Equivalent to :class:`Ice.OperationMode.Idempotent`, but deprecated.
|
|
22
|
+
|
|
23
|
+
- Idempotent:
|
|
24
|
+
An idempotent operation. The Ice client runtime does not guarantee at-most-once semantics for such an
|
|
25
|
+
operation.
|
|
26
|
+
|
|
27
|
+
Notes
|
|
28
|
+
-----
|
|
29
|
+
The Slice compiler generated this enum class from Slice enumeration ``::Ice::OperationMode``.
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
Normal = 0
|
|
33
|
+
Nonmutating = 1
|
|
34
|
+
Idempotent = 2
|
|
35
|
+
|
|
36
|
+
_Ice_OperationMode_t = IcePy.defineEnum(
|
|
37
|
+
"::Ice::OperationMode",
|
|
38
|
+
OperationMode,
|
|
39
|
+
(),
|
|
40
|
+
{
|
|
41
|
+
0: OperationMode.Normal,
|
|
42
|
+
1: OperationMode.Nonmutating,
|
|
43
|
+
2: OperationMode.Idempotent,
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
__all__ = ["OperationMode", "_Ice_OperationMode_t"]
|
Ice/Process.py
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# Copyright (c) ZeroC, Inc.
|
|
2
|
+
|
|
3
|
+
# slice2py version 3.8.0
|
|
4
|
+
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
import IcePy
|
|
7
|
+
|
|
8
|
+
from Ice.Object import Object
|
|
9
|
+
|
|
10
|
+
from Ice.ObjectPrx import ObjectPrx
|
|
11
|
+
from Ice.ObjectPrx import checkedCast
|
|
12
|
+
from Ice.ObjectPrx import checkedCastAsync
|
|
13
|
+
from Ice.ObjectPrx import uncheckedCast
|
|
14
|
+
|
|
15
|
+
from Ice.OperationMode import OperationMode
|
|
16
|
+
|
|
17
|
+
from Ice.Process_forward import _Ice_ProcessPrx_t
|
|
18
|
+
|
|
19
|
+
from abc import ABC
|
|
20
|
+
from abc import abstractmethod
|
|
21
|
+
|
|
22
|
+
from typing import TYPE_CHECKING
|
|
23
|
+
from typing import overload
|
|
24
|
+
|
|
25
|
+
if TYPE_CHECKING:
|
|
26
|
+
from Ice.Current import Current
|
|
27
|
+
from collections.abc import Awaitable
|
|
28
|
+
from collections.abc import Sequence
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class ProcessPrx(ObjectPrx):
|
|
32
|
+
"""
|
|
33
|
+
A server application managed by a locator implementation such as IceGrid hosts a Process object and registers a
|
|
34
|
+
proxy to this object with the locator registry. See :meth:`Ice.LocatorRegistryPrx.setServerProcessProxyAsync`.
|
|
35
|
+
|
|
36
|
+
Notes
|
|
37
|
+
-----
|
|
38
|
+
The Slice compiler generated this proxy class from Slice interface ``::Ice::Process``.
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
def shutdown(self, context: dict[str, str] | None = None) -> None:
|
|
42
|
+
"""
|
|
43
|
+
Initiates a graceful shutdown of the server application.
|
|
44
|
+
|
|
45
|
+
Parameters
|
|
46
|
+
----------
|
|
47
|
+
context : dict[str, str]
|
|
48
|
+
The request context for the invocation.
|
|
49
|
+
"""
|
|
50
|
+
return Process._op_shutdown.invoke(self, ((), context))
|
|
51
|
+
|
|
52
|
+
def shutdownAsync(self, context: dict[str, str] | None = None) -> Awaitable[None]:
|
|
53
|
+
"""
|
|
54
|
+
Initiates a graceful shutdown of the server application.
|
|
55
|
+
|
|
56
|
+
Parameters
|
|
57
|
+
----------
|
|
58
|
+
context : dict[str, str]
|
|
59
|
+
The request context for the invocation.
|
|
60
|
+
|
|
61
|
+
Returns
|
|
62
|
+
-------
|
|
63
|
+
Awaitable[None]
|
|
64
|
+
An awaitable that is completed when the invocation completes.
|
|
65
|
+
"""
|
|
66
|
+
return Process._op_shutdown.invokeAsync(self, ((), context))
|
|
67
|
+
|
|
68
|
+
def writeMessage(self, message: str, fd: int, context: dict[str, str] | None = None) -> None:
|
|
69
|
+
"""
|
|
70
|
+
Writes a message on the server application's stdout or stderr.
|
|
71
|
+
|
|
72
|
+
Parameters
|
|
73
|
+
----------
|
|
74
|
+
message : str
|
|
75
|
+
The message to write.
|
|
76
|
+
fd : int
|
|
77
|
+
1 for stdout, 2 for stderr.
|
|
78
|
+
context : dict[str, str]
|
|
79
|
+
The request context for the invocation.
|
|
80
|
+
"""
|
|
81
|
+
return Process._op_writeMessage.invoke(self, ((message, fd), context))
|
|
82
|
+
|
|
83
|
+
def writeMessageAsync(self, message: str, fd: int, context: dict[str, str] | None = None) -> Awaitable[None]:
|
|
84
|
+
"""
|
|
85
|
+
Writes a message on the server application's stdout or stderr.
|
|
86
|
+
|
|
87
|
+
Parameters
|
|
88
|
+
----------
|
|
89
|
+
message : str
|
|
90
|
+
The message to write.
|
|
91
|
+
fd : int
|
|
92
|
+
1 for stdout, 2 for stderr.
|
|
93
|
+
context : dict[str, str]
|
|
94
|
+
The request context for the invocation.
|
|
95
|
+
|
|
96
|
+
Returns
|
|
97
|
+
-------
|
|
98
|
+
Awaitable[None]
|
|
99
|
+
An awaitable that is completed when the invocation completes.
|
|
100
|
+
"""
|
|
101
|
+
return Process._op_writeMessage.invokeAsync(self, ((message, fd), context))
|
|
102
|
+
|
|
103
|
+
@staticmethod
|
|
104
|
+
def checkedCast(
|
|
105
|
+
proxy: ObjectPrx | None,
|
|
106
|
+
facet: str | None = None,
|
|
107
|
+
context: dict[str, str] | None = None
|
|
108
|
+
) -> ProcessPrx | None:
|
|
109
|
+
return checkedCast(ProcessPrx, proxy, facet, context)
|
|
110
|
+
|
|
111
|
+
@staticmethod
|
|
112
|
+
def checkedCastAsync(
|
|
113
|
+
proxy: ObjectPrx | None,
|
|
114
|
+
facet: str | None = None,
|
|
115
|
+
context: dict[str, str] | None = None
|
|
116
|
+
) -> Awaitable[ProcessPrx | None ]:
|
|
117
|
+
return checkedCastAsync(ProcessPrx, proxy, facet, context)
|
|
118
|
+
|
|
119
|
+
@overload
|
|
120
|
+
@staticmethod
|
|
121
|
+
def uncheckedCast(proxy: ObjectPrx, facet: str | None = None) -> ProcessPrx:
|
|
122
|
+
...
|
|
123
|
+
|
|
124
|
+
@overload
|
|
125
|
+
@staticmethod
|
|
126
|
+
def uncheckedCast(proxy: None, facet: str | None = None) -> None:
|
|
127
|
+
...
|
|
128
|
+
|
|
129
|
+
@staticmethod
|
|
130
|
+
def uncheckedCast(proxy: ObjectPrx | None, facet: str | None = None) -> ProcessPrx | None:
|
|
131
|
+
return uncheckedCast(ProcessPrx, proxy, facet)
|
|
132
|
+
|
|
133
|
+
@staticmethod
|
|
134
|
+
def ice_staticId() -> str:
|
|
135
|
+
return "::Ice::Process"
|
|
136
|
+
|
|
137
|
+
IcePy.defineProxy("::Ice::Process", ProcessPrx)
|
|
138
|
+
|
|
139
|
+
class Process(Object, ABC):
|
|
140
|
+
"""
|
|
141
|
+
A server application managed by a locator implementation such as IceGrid hosts a Process object and registers a
|
|
142
|
+
proxy to this object with the locator registry. See :meth:`Ice.LocatorRegistryPrx.setServerProcessProxyAsync`.
|
|
143
|
+
|
|
144
|
+
Notes
|
|
145
|
+
-----
|
|
146
|
+
The Slice compiler generated this skeleton class from Slice interface ``::Ice::Process``.
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
_ice_ids: Sequence[str] = ("::Ice::Object", "::Ice::Process", )
|
|
150
|
+
_op_shutdown: IcePy.Operation
|
|
151
|
+
_op_writeMessage: IcePy.Operation
|
|
152
|
+
|
|
153
|
+
@staticmethod
|
|
154
|
+
def ice_staticId() -> str:
|
|
155
|
+
return "::Ice::Process"
|
|
156
|
+
|
|
157
|
+
@abstractmethod
|
|
158
|
+
def shutdown(self, current: Current) -> None | Awaitable[None]:
|
|
159
|
+
"""
|
|
160
|
+
Initiates a graceful shutdown of the server application.
|
|
161
|
+
|
|
162
|
+
Parameters
|
|
163
|
+
----------
|
|
164
|
+
current : Ice.Current
|
|
165
|
+
The Current object for the dispatch.
|
|
166
|
+
|
|
167
|
+
Returns
|
|
168
|
+
-------
|
|
169
|
+
None | Awaitable[None]
|
|
170
|
+
None or an awaitable that completes when the dispatch completes.
|
|
171
|
+
"""
|
|
172
|
+
pass
|
|
173
|
+
|
|
174
|
+
@abstractmethod
|
|
175
|
+
def writeMessage(self, message: str, fd: int, current: Current) -> None | Awaitable[None]:
|
|
176
|
+
"""
|
|
177
|
+
Writes a message on the server application's stdout or stderr.
|
|
178
|
+
|
|
179
|
+
Parameters
|
|
180
|
+
----------
|
|
181
|
+
message : str
|
|
182
|
+
The message to write.
|
|
183
|
+
fd : int
|
|
184
|
+
1 for stdout, 2 for stderr.
|
|
185
|
+
current : Ice.Current
|
|
186
|
+
The Current object for the dispatch.
|
|
187
|
+
|
|
188
|
+
Returns
|
|
189
|
+
-------
|
|
190
|
+
None | Awaitable[None]
|
|
191
|
+
None or an awaitable that completes when the dispatch completes.
|
|
192
|
+
"""
|
|
193
|
+
pass
|
|
194
|
+
|
|
195
|
+
Process._op_shutdown = IcePy.Operation(
|
|
196
|
+
"shutdown",
|
|
197
|
+
"shutdown",
|
|
198
|
+
OperationMode.Normal,
|
|
199
|
+
None,
|
|
200
|
+
(),
|
|
201
|
+
(),
|
|
202
|
+
(),
|
|
203
|
+
None,
|
|
204
|
+
())
|
|
205
|
+
|
|
206
|
+
Process._op_writeMessage = IcePy.Operation(
|
|
207
|
+
"writeMessage",
|
|
208
|
+
"writeMessage",
|
|
209
|
+
OperationMode.Normal,
|
|
210
|
+
None,
|
|
211
|
+
(),
|
|
212
|
+
(((), IcePy._t_string, False, 0), ((), IcePy._t_int, False, 0)),
|
|
213
|
+
(),
|
|
214
|
+
None,
|
|
215
|
+
())
|
|
216
|
+
|
|
217
|
+
__all__ = ["Process", "ProcessPrx", "_Ice_ProcessPrx_t"]
|
Ice/ProcessLogger.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Copyright (c) ZeroC, Inc.
|
|
2
|
+
|
|
3
|
+
import IcePy
|
|
4
|
+
|
|
5
|
+
from ._LoggerI import LoggerI
|
|
6
|
+
from .Logger import Logger
|
|
7
|
+
|
|
8
|
+
__name__ = "Ice"
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def getProcessLogger() -> Logger:
|
|
12
|
+
"""Returns the default logger object."""
|
|
13
|
+
logger = IcePy.getProcessLogger()
|
|
14
|
+
if isinstance(logger, Logger):
|
|
15
|
+
return logger
|
|
16
|
+
else:
|
|
17
|
+
return LoggerI(logger)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def setProcessLogger(logger: Logger):
|
|
21
|
+
"""Sets the default logger object."""
|
|
22
|
+
IcePy.setProcessLogger(logger)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
__all__ = ["getProcessLogger", "setProcessLogger"]
|
Ice/Process_forward.py
ADDED
Ice/Properties.py
ADDED
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
# Copyright (c) ZeroC, Inc.
|
|
2
|
+
|
|
3
|
+
from typing import Self, final, overload
|
|
4
|
+
|
|
5
|
+
import IcePy
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@final
|
|
9
|
+
class Properties:
|
|
10
|
+
"""
|
|
11
|
+
Represents a set of properties used to configure Ice and Ice-based applications. A property is a key/value pair,
|
|
12
|
+
where both the key and the value are strings. By convention, property keys should have the form
|
|
13
|
+
application-name[.category[.sub-category]].name.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
@overload
|
|
17
|
+
def __init__(self, args: list[str] | None = None, defaults: Self | None = None): ...
|
|
18
|
+
|
|
19
|
+
@overload
|
|
20
|
+
def __init__(self, *, properties: IcePy.Properties): ...
|
|
21
|
+
|
|
22
|
+
def __init__(
|
|
23
|
+
self, args: list[str] | None = None, defaults: Self | None = None, properties: IcePy.Properties | None = None
|
|
24
|
+
):
|
|
25
|
+
"""
|
|
26
|
+
Initialize a new instance of the Properties class.
|
|
27
|
+
|
|
28
|
+
This constructor loads the configuration files specified by the ``Ice.Config`` property or the
|
|
29
|
+
``ICE_CONFIG`` environment variable, and then parses Ice properties from ``args``.
|
|
30
|
+
|
|
31
|
+
Parameters
|
|
32
|
+
----------
|
|
33
|
+
args : list of str, optional
|
|
34
|
+
The command-line arguments. Arguments starting with ``--`` and one of the reserved prefixes
|
|
35
|
+
(``Ice``, ``IceSSL``, etc.) are parsed as properties and removed from the list. If there is
|
|
36
|
+
an argument starting with ``--Ice.Config``, the specified configuration file is loaded. When
|
|
37
|
+
the same property is set in both a configuration file and a command-line argument, the
|
|
38
|
+
command-line setting takes precedence.
|
|
39
|
+
defaults : dict of (str, str), optional
|
|
40
|
+
Default values for the new Properties object. Settings in configuration files and command-line
|
|
41
|
+
arguments override these defaults.
|
|
42
|
+
|
|
43
|
+
Notes
|
|
44
|
+
-----
|
|
45
|
+
When there is no ``--Ice.Config`` command-line argument, this constructor loads properties from
|
|
46
|
+
the files specified by the ``ICE_CONFIG`` environment variable.
|
|
47
|
+
|
|
48
|
+
Examples
|
|
49
|
+
--------
|
|
50
|
+
.. code-block:: python
|
|
51
|
+
# Create a new empty property set.
|
|
52
|
+
properties = Ice.Properties()
|
|
53
|
+
|
|
54
|
+
# Create a property set from command-line arguments.
|
|
55
|
+
properties = Ice.Properties(sys.argv)
|
|
56
|
+
|
|
57
|
+
# Create a property set using default values.
|
|
58
|
+
defaultProperties = Ice.Properties()
|
|
59
|
+
defaultProperties.setProperty("Ice.Trace.Protocol", "1")
|
|
60
|
+
properties = Ice.Properties(defaults=defaultProperties)
|
|
61
|
+
|
|
62
|
+
# Combine command-line parsing with default values.
|
|
63
|
+
defaultProperties = Ice.Properties()
|
|
64
|
+
defaultProperties.setProperty("Ice.Trace.Protocol", "1")
|
|
65
|
+
properties = Ice.Properties(sys.argv, defaultProperties)
|
|
66
|
+
"""
|
|
67
|
+
if isinstance(properties, IcePy.Properties):
|
|
68
|
+
self._impl = properties
|
|
69
|
+
else:
|
|
70
|
+
self._impl = IcePy.createProperties(args, defaults)
|
|
71
|
+
|
|
72
|
+
def getProperty(self, key: str) -> str:
|
|
73
|
+
"""
|
|
74
|
+
Get a property by key.
|
|
75
|
+
|
|
76
|
+
If the property is not set, an empty string is returned.
|
|
77
|
+
|
|
78
|
+
Parameters
|
|
79
|
+
----------
|
|
80
|
+
key : str
|
|
81
|
+
The property key.
|
|
82
|
+
|
|
83
|
+
Returns
|
|
84
|
+
-------
|
|
85
|
+
str
|
|
86
|
+
The property value, or an empty string if the property is not set.
|
|
87
|
+
"""
|
|
88
|
+
return self._impl.getProperty(key)
|
|
89
|
+
|
|
90
|
+
def getIceProperty(self, key: str) -> str:
|
|
91
|
+
"""
|
|
92
|
+
Get an Ice property by key.
|
|
93
|
+
|
|
94
|
+
If the property is not set, its default value is returned.
|
|
95
|
+
|
|
96
|
+
Parameters
|
|
97
|
+
----------
|
|
98
|
+
key : str
|
|
99
|
+
The property key.
|
|
100
|
+
|
|
101
|
+
Returns
|
|
102
|
+
-------
|
|
103
|
+
str
|
|
104
|
+
The property value, or the default value if the property is not set.
|
|
105
|
+
|
|
106
|
+
Raises
|
|
107
|
+
------
|
|
108
|
+
PropertyException
|
|
109
|
+
When the property is not a known Ice property.
|
|
110
|
+
"""
|
|
111
|
+
return self._impl.getIceProperty(key)
|
|
112
|
+
|
|
113
|
+
def getPropertyWithDefault(self, key: str, value: str) -> str:
|
|
114
|
+
"""
|
|
115
|
+
Get a property by key.
|
|
116
|
+
|
|
117
|
+
If the property is not set, the given default value is returned.
|
|
118
|
+
|
|
119
|
+
Parameters
|
|
120
|
+
----------
|
|
121
|
+
key : str
|
|
122
|
+
The property key.
|
|
123
|
+
value : str
|
|
124
|
+
The default value to use if the property does not exist.
|
|
125
|
+
|
|
126
|
+
Returns
|
|
127
|
+
-------
|
|
128
|
+
str
|
|
129
|
+
The property value, or the default value if the property does not exist.
|
|
130
|
+
"""
|
|
131
|
+
return self._impl.getPropertyWithDefault(key, value)
|
|
132
|
+
|
|
133
|
+
def getPropertyAsInt(self, key: str) -> int:
|
|
134
|
+
"""
|
|
135
|
+
Get a property as an integer.
|
|
136
|
+
|
|
137
|
+
If the property is not set, 0 is returned.
|
|
138
|
+
|
|
139
|
+
Parameters
|
|
140
|
+
----------
|
|
141
|
+
key : str
|
|
142
|
+
The property key.
|
|
143
|
+
|
|
144
|
+
Returns
|
|
145
|
+
-------
|
|
146
|
+
int
|
|
147
|
+
The property value interpreted as an integer, or 0 if the property is not set.
|
|
148
|
+
|
|
149
|
+
Raises
|
|
150
|
+
------
|
|
151
|
+
PropertyException
|
|
152
|
+
When the property value is not a valid integer.
|
|
153
|
+
"""
|
|
154
|
+
return self._impl.getPropertyAsInt(key)
|
|
155
|
+
|
|
156
|
+
def getIcePropertyAsInt(self, key: str) -> int:
|
|
157
|
+
"""
|
|
158
|
+
Get an Ice property as an integer.
|
|
159
|
+
|
|
160
|
+
If the property is not set, its default value is returned.
|
|
161
|
+
|
|
162
|
+
Parameters
|
|
163
|
+
----------
|
|
164
|
+
key : str
|
|
165
|
+
The property key.
|
|
166
|
+
|
|
167
|
+
Returns
|
|
168
|
+
-------
|
|
169
|
+
int
|
|
170
|
+
The property value interpreted as an integer, or the default value if the property is not set.
|
|
171
|
+
|
|
172
|
+
Raises
|
|
173
|
+
------
|
|
174
|
+
PropertyException
|
|
175
|
+
When the property is not a known Ice property or the property value is not a valid integer.
|
|
176
|
+
"""
|
|
177
|
+
return self._impl.getIcePropertyAsInt(key)
|
|
178
|
+
|
|
179
|
+
def getPropertyAsIntWithDefault(self, key: str, value: int) -> int:
|
|
180
|
+
"""
|
|
181
|
+
Get a property as an integer.
|
|
182
|
+
|
|
183
|
+
If the property is not set, the given default value is returned.
|
|
184
|
+
|
|
185
|
+
Parameters
|
|
186
|
+
----------
|
|
187
|
+
key : str
|
|
188
|
+
The property key.
|
|
189
|
+
value : int
|
|
190
|
+
The default value to use if the property does not exist.
|
|
191
|
+
|
|
192
|
+
Returns
|
|
193
|
+
-------
|
|
194
|
+
int
|
|
195
|
+
The property value interpreted as an integer, or the default value if the property does not exist.
|
|
196
|
+
|
|
197
|
+
Raises
|
|
198
|
+
------
|
|
199
|
+
PropertyException
|
|
200
|
+
When the property value is not a valid integer.
|
|
201
|
+
"""
|
|
202
|
+
return self._impl.getPropertyAsIntWithDefault(key, value)
|
|
203
|
+
|
|
204
|
+
def getPropertyAsList(self, key: str) -> list[str]:
|
|
205
|
+
"""
|
|
206
|
+
Get a property as a list of strings.
|
|
207
|
+
|
|
208
|
+
The strings must be separated by whitespace or comma. If the property is not set, an empty list is returned.
|
|
209
|
+
The strings in the list can contain whitespace and commas if they are enclosed in single or double quotes.
|
|
210
|
+
If quotes are mismatched, an empty list is returned. Within single or double quotes, you can escape the quote
|
|
211
|
+
in question with a backslash, e.g., O'Reilly can be written as O'Reilly, "O'Reilly" or 'O\'Reilly'.
|
|
212
|
+
|
|
213
|
+
Parameters
|
|
214
|
+
----------
|
|
215
|
+
key : str
|
|
216
|
+
The property key.
|
|
217
|
+
|
|
218
|
+
Returns
|
|
219
|
+
-------
|
|
220
|
+
list of str
|
|
221
|
+
The property value interpreted as a list of strings.
|
|
222
|
+
"""
|
|
223
|
+
return self._impl.getPropertyAsList(key)
|
|
224
|
+
|
|
225
|
+
def getIcePropertyAsList(self, key: str) -> list[str]:
|
|
226
|
+
"""
|
|
227
|
+
Get an Ice property as a list of strings.
|
|
228
|
+
|
|
229
|
+
The strings must be separated by whitespace or comma. If the property is not set, its default value is returned.
|
|
230
|
+
The strings in the list can contain whitespace and commas if they are enclosed in single or double quotes.
|
|
231
|
+
If quotes are mismatched, the default value is returned. Within single or double quotes, you can escape the quote
|
|
232
|
+
in question with a backslash, e.g., O'Reilly can be written as O'Reilly, "O'Reilly" or 'O\'Reilly'.
|
|
233
|
+
|
|
234
|
+
Parameters
|
|
235
|
+
----------
|
|
236
|
+
key : str
|
|
237
|
+
The property key.
|
|
238
|
+
|
|
239
|
+
Returns
|
|
240
|
+
-------
|
|
241
|
+
list of str
|
|
242
|
+
The property value interpreted as a list of strings, or the default value if the property is not set.
|
|
243
|
+
|
|
244
|
+
Raises
|
|
245
|
+
------
|
|
246
|
+
PropertyException
|
|
247
|
+
When the property is not a known Ice property.
|
|
248
|
+
"""
|
|
249
|
+
return self._impl.getIcePropertyAsList(key)
|
|
250
|
+
|
|
251
|
+
def getPropertyAsListWithDefault(self, key: str, value: list[str]) -> list[str]:
|
|
252
|
+
"""
|
|
253
|
+
Get a property as a list of strings.
|
|
254
|
+
|
|
255
|
+
The strings must be separated by whitespace or comma. If the property is not set, the default value is returned.
|
|
256
|
+
The strings in the list can contain whitespace and commas if they are enclosed in single or double quotes.
|
|
257
|
+
If quotes are mismatched, the default value is returned. Within single or double quotes, you can escape the quote
|
|
258
|
+
in question with a backslash, e.g., O'Reilly can be written as O'Reilly, "O'Reilly" or 'O\'Reilly'.
|
|
259
|
+
|
|
260
|
+
Parameters
|
|
261
|
+
----------
|
|
262
|
+
key : str
|
|
263
|
+
The property key.
|
|
264
|
+
value : list of str
|
|
265
|
+
The default value to use if the property is not set.
|
|
266
|
+
|
|
267
|
+
Returns
|
|
268
|
+
-------
|
|
269
|
+
list of str
|
|
270
|
+
The property value interpreted as a list of strings, or the default value if the property is not set.
|
|
271
|
+
"""
|
|
272
|
+
return self._impl.getPropertyAsListWithDefault(key, value)
|
|
273
|
+
|
|
274
|
+
def getPropertiesForPrefix(self, prefix: str) -> dict[str, str]:
|
|
275
|
+
"""
|
|
276
|
+
Get all properties whose keys begin with the given prefix.
|
|
277
|
+
|
|
278
|
+
If the prefix is an empty string, then all properties are returned.
|
|
279
|
+
|
|
280
|
+
Parameters
|
|
281
|
+
----------
|
|
282
|
+
prefix : str
|
|
283
|
+
The prefix to search for (empty string if none).
|
|
284
|
+
|
|
285
|
+
Returns
|
|
286
|
+
-------
|
|
287
|
+
dict[str, str]
|
|
288
|
+
The matching property set with keys and values as strings.
|
|
289
|
+
"""
|
|
290
|
+
return self._impl.getPropertiesForPrefix(prefix)
|
|
291
|
+
|
|
292
|
+
def setProperty(self, key: str, value: str) -> None:
|
|
293
|
+
"""
|
|
294
|
+
Set a property.
|
|
295
|
+
|
|
296
|
+
To unset a property, set it to the empty string.
|
|
297
|
+
|
|
298
|
+
Parameters
|
|
299
|
+
----------
|
|
300
|
+
key : str
|
|
301
|
+
The property key.
|
|
302
|
+
value : str
|
|
303
|
+
The property value.
|
|
304
|
+
"""
|
|
305
|
+
self._impl.setProperty(key, value)
|
|
306
|
+
|
|
307
|
+
def getCommandLineOptions(self) -> list[str]:
|
|
308
|
+
"""
|
|
309
|
+
Get a sequence of command-line options that is equivalent to this property set.
|
|
310
|
+
|
|
311
|
+
Each element of the returned sequence is a command-line option of the form --key=value.
|
|
312
|
+
|
|
313
|
+
Returns
|
|
314
|
+
-------
|
|
315
|
+
list of str
|
|
316
|
+
The command line options for this property set.
|
|
317
|
+
"""
|
|
318
|
+
return self._impl.getCommandLineOptions()
|
|
319
|
+
|
|
320
|
+
def parseCommandLineOptions(self, prefix: str, options: list[str]) -> list[str]:
|
|
321
|
+
"""
|
|
322
|
+
Convert a sequence of command-line options into properties.
|
|
323
|
+
|
|
324
|
+
All options that begin with `--prefix.` are converted into properties. If the prefix is empty, all options that
|
|
325
|
+
begin with `--` are converted to properties.
|
|
326
|
+
|
|
327
|
+
Parameters
|
|
328
|
+
----------
|
|
329
|
+
prefix : str
|
|
330
|
+
The property prefix, or an empty string to convert all options starting with `--`.
|
|
331
|
+
options : list of str
|
|
332
|
+
The command-line options.
|
|
333
|
+
|
|
334
|
+
Returns
|
|
335
|
+
-------
|
|
336
|
+
list of str
|
|
337
|
+
The command-line options that do not start with the specified prefix, in their original order.
|
|
338
|
+
"""
|
|
339
|
+
return self._impl.parseCommandLineOptions(prefix, options)
|
|
340
|
+
|
|
341
|
+
def parseIceCommandLineOptions(self, options: list[str]) -> list[str]:
|
|
342
|
+
"""
|
|
343
|
+
Convert a sequence of command-line options into properties.
|
|
344
|
+
|
|
345
|
+
All options that begin with one of the following prefixes are converted into properties: `--Ice`, `--IceBox`,
|
|
346
|
+
`--IceGrid`, `--IceSSL`, `--IceStorm`, and `--Glacier2`.
|
|
347
|
+
|
|
348
|
+
Parameters
|
|
349
|
+
----------
|
|
350
|
+
options : list of str
|
|
351
|
+
The command-line options.
|
|
352
|
+
|
|
353
|
+
Returns
|
|
354
|
+
-------
|
|
355
|
+
list of str
|
|
356
|
+
The command-line options that do not start with one of the listed prefixes, in their original order.
|
|
357
|
+
"""
|
|
358
|
+
return self._impl.parseIceCommandLineOptions(options)
|
|
359
|
+
|
|
360
|
+
def load(self, file: str) -> None:
|
|
361
|
+
"""
|
|
362
|
+
Load properties from a file.
|
|
363
|
+
|
|
364
|
+
Parameters
|
|
365
|
+
----------
|
|
366
|
+
file : str
|
|
367
|
+
The property file.
|
|
368
|
+
"""
|
|
369
|
+
self._impl.load(file)
|
|
370
|
+
|
|
371
|
+
def clone(self) -> "Properties":
|
|
372
|
+
"""
|
|
373
|
+
Create a copy of this property set.
|
|
374
|
+
|
|
375
|
+
Returns
|
|
376
|
+
-------
|
|
377
|
+
Properties
|
|
378
|
+
A copy of this property set.
|
|
379
|
+
"""
|
|
380
|
+
return Properties(properties=self._impl.clone())
|
|
381
|
+
|
|
382
|
+
def __iter__(self):
|
|
383
|
+
dict = self._impl.getPropertiesForPrefix("")
|
|
384
|
+
return iter(dict)
|
|
385
|
+
|
|
386
|
+
def __str__(self) -> str:
|
|
387
|
+
return str(self._impl)
|