IceGrid.RegistryObserverPrx¶
- class IceGrid.RegistryObserverPrx¶
Bases:
ObjectPrxMonitors changes to the state of the registries.
Notes
The Slice compiler generated this proxy class from Slice interface
::IceGrid::RegistryObserver.- registryInit(registries: Sequence[RegistryInfo], context: dict[str, str] | None = None) None¶
Provides the initial state of the registries to the observer.
- Parameters:
registries (Sequence[RegistryInfo]) – The current state of the registries.
context (dict[str, str]) – The request context for the invocation.
- Return type:
None
- registryInitAsync(registries: Sequence[RegistryInfo], context: dict[str, str] | None = None) Awaitable[None]¶
Provides the initial state of the registries to the observer.
- Parameters:
registries (Sequence[RegistryInfo]) – The current state of the registries.
context (dict[str, str]) – The request context for the invocation.
- Returns:
An awaitable that is completed when the invocation completes.
- Return type:
Awaitable[None]
- registryUp(registryReplica: RegistryInfo, context: dict[str, str] | None = None) None¶
Notifies the observer that a registry replica came up.
- Parameters:
registryReplica (RegistryInfo) – The registry state.
context (dict[str, str]) – The request context for the invocation.
- Return type:
None
- registryUpAsync(registryReplica: RegistryInfo, context: dict[str, str] | None = None) Awaitable[None]¶
Notifies the observer that a registry replica came up.
- Parameters:
registryReplica (RegistryInfo) – The registry state.
context (dict[str, str]) – The request context for the invocation.
- Returns:
An awaitable that is completed when the invocation completes.
- Return type:
Awaitable[None]
- registryDown(name: str, context: dict[str, str] | None = None) None¶
Notifies the observer that a registry replica went down.
- registryDownAsync(name: str, context: dict[str, str] | None = None) Awaitable[None]¶
Notifies the observer that a registry replica went down.
- static checkedCast(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) RegistryObserverPrx | 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[RegistryObserverPrx | 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