Ice.PropertiesAdmin¶
- class Ice.PropertiesAdmin¶
-
Provides remote access to the properties of a communicator.
Notes
The Slice compiler generated this skeleton class from Slice interface
::Ice::PropertiesAdmin.- static ice_staticId() str¶
Returns the type ID of the associated Slice interface.
- Returns:
The return value is always
"::Ice::Object".- Return type:
- abstractmethod getProperty(key: str, current: Current) str | Awaitable[str]¶
Gets a property by key.
- Parameters:
key (str) – The property key.
current (Ice.Current) – The Current object for the dispatch.
- Returns:
The property value. This value is empty if the property is not set.
- Return type:
- abstractmethod getPropertiesForPrefix(prefix: str, current: Current) Mapping[str, str] | Awaitable[Mapping[str, str]]¶
Gets all properties whose keys begin with
prefix. Ifprefixis the empty string then all properties are returned.
- abstractmethod setProperties(newProperties: dict[str, str], current: Current) None | Awaitable[None]¶
Updates the communicator’s properties with the given property set. If an entry in
newPropertiesmatches the name of an existing property, that property’s value is replaced with the new value. If the new value is the empty string, the property is removed. Existing properties that are not modified or removed by the entries innewPropertiesare not affected by this update.- Parameters:
newProperties (dict[str, str]) – Properties to add, change, or remove.
current (Ice.Current) – The Current object for the dispatch.
- Returns:
None or an awaitable that completes when the dispatch completes.
- Return type:
None | Awaitable[None]