IceGrid.NodeObserverPrx¶
- class IceGrid.NodeObserverPrx¶
Bases:
ObjectPrxMonitors changes to the state of the nodes.
Notes
The Slice compiler generated this proxy class from Slice interface
::IceGrid::NodeObserver.- static checkedCast(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) NodeObserverPrx | 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 type, or None if the source proxy is None or if the target object 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[NodeObserverPrx | 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 type, or None if the source proxy is None or if the target object does not support the requested type.
- Return type:
ObjectPrx | None
- static ice_staticId() str¶
Gets the Slice type ID of the interface associated with this proxy.
- Returns:
The type ID, “::Ice::Object”.
- Return type:
- nodeDown(name: str, context: dict[str, str] | None = None) None¶
Notifies the observer that a node went down.
- nodeDownAsync(name: str, context: dict[str, str] | None = None) Awaitable[None]¶
Notifies the observer that a node went down.
- nodeInit(nodes: Sequence[NodeDynamicInfo], context: dict[str, str] | None = None) None¶
Provides the initial state of the nodes to the observer.
- Parameters:
nodes (Sequence[NodeDynamicInfo]) – The current state of the nodes.
context (dict[str, str]) – The request context for the invocation.
- Return type:
None
- nodeInitAsync(nodes: Sequence[NodeDynamicInfo], context: dict[str, str] | None = None) Awaitable[None]¶
Provides the initial state of the nodes to the observer.
- Parameters:
nodes (Sequence[NodeDynamicInfo]) – The current state of the nodes.
context (dict[str, str]) – The request context for the invocation.
- Returns:
An awaitable that is completed when the invocation completes.
- Return type:
Awaitable[None]
- nodeUp(node: NodeDynamicInfo, context: dict[str, str] | None = None) None¶
Notifies the observer that a node came up.
- Parameters:
node (NodeDynamicInfo) – The node state.
context (dict[str, str]) – The request context for the invocation.
- Return type:
None
- nodeUpAsync(node: NodeDynamicInfo, context: dict[str, str] | None = None) Awaitable[None]¶
Notifies the observer that a node came up.
- Parameters:
node (NodeDynamicInfo) – The node 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]
- static uncheckedCast(proxy: ObjectPrx, facet: str | None = None) NodeObserverPrx¶
- static uncheckedCast(proxy: None, facet: str | None = None) None
Creates a new proxy from an existing proxy.
- updateAdapter(node: str, updatedInfo: AdapterDynamicInfo, context: dict[str, str] | None = None) None¶
Notifies the observer that the state of an object adapter changed.
- Parameters:
node (str) – The node hosting the adapter.
updatedInfo (AdapterDynamicInfo) – The new adapter state.
context (dict[str, str]) – The request context for the invocation.
- Return type:
None
- updateAdapterAsync(node: str, updatedInfo: AdapterDynamicInfo, context: dict[str, str] | None = None) Awaitable[None]¶
Notifies the observer that the state of an object adapter changed.
- Parameters:
node (str) – The node hosting the adapter.
updatedInfo (AdapterDynamicInfo) – The new adapter 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]
- updateServer(node: str, updatedInfo: ServerDynamicInfo, context: dict[str, str] | None = None) None¶
Notifies the observer that the state of a server changed.
- Parameters:
node (str) – The node hosting the server.
updatedInfo (ServerDynamicInfo) – The new server state.
context (dict[str, str]) – The request context for the invocation.
- Return type:
None
- updateServerAsync(node: str, updatedInfo: ServerDynamicInfo, context: dict[str, str] | None = None) Awaitable[None]¶
Notifies the observer that the state of a server changed.
- Parameters:
node (str) – The node hosting the server.
updatedInfo (ServerDynamicInfo) – The new server 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]