Ice.PropertiesAdminPrx¶
- class Ice.PropertiesAdminPrx¶
Bases:
ObjectPrxProvides remote access to the properties of a communicator.
Notes
The Slice compiler generated this proxy class from Slice interface
::Ice::PropertiesAdmin.- getPropertyAsync(key: str, context: dict[str, str] | None = None) Awaitable[str]¶
Gets a property by key.
- getPropertiesForPrefix(prefix: str, context: dict[str, str] | None = None) dict[str, str]¶
Gets all properties whose keys begin with
prefix. Ifprefixis the empty string then all properties are returned.
- getPropertiesForPrefixAsync(prefix: str, context: dict[str, str] | None = None) Awaitable[dict[str, str]]¶
Gets all properties whose keys begin with
prefix. Ifprefixis the empty string then all properties are returned.
- setProperties(newProperties: Mapping[str, str], context: dict[str, str] | None = None) 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.
- setPropertiesAsync(newProperties: Mapping[str, str], context: dict[str, str] | None = 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.
- static checkedCast(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) PropertiesAdminPrx | None¶
Creates a new proxy from an existing proxy after confirming the target object’s type via a remote invocation.
- Parameters:
- Returns:
A new proxy with the requested facet, or
Noneif the source proxy isNoneor if the target object/facet does not support the requested type.- Return type:
ObjectPrx | None
- static checkedCastAsync(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) Awaitable[PropertiesAdminPrx | None]¶
Creates a new proxy from an existing proxy after confirming the target object’s type via a remote invocation.
- Parameters:
- Returns:
A new proxy with the requested facet, or
Noneif the source proxy isNoneor if the target object/facet does not support the requested type.- Return type:
ObjectPrx | None