IceGrid.NodeObserver

class IceGrid.NodeObserver

Bases: Object, ABC

Monitors changes to the state of the nodes.

Notes

The Slice compiler generated this skeleton class from Slice interface ::IceGrid::NodeObserver.

static ice_staticId() str

Obtain the type ID of the Slice interface.

Returns:

The type ID.

Return type:

str

abstractmethod nodeDown(name: str, current: Current) None | Awaitable[None]

Notifies the observer that a node went down.

Parameters:
  • name (str) – The node name.

  • 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]

abstractmethod nodeInit(nodes: list[NodeDynamicInfo], current: Current) None | Awaitable[None]

Provides the initial state of the nodes to the observer.

Parameters:
Returns:

None or an awaitable that completes when the dispatch completes.

Return type:

None | Awaitable[None]

abstractmethod nodeUp(node: NodeDynamicInfo, current: Current) None | Awaitable[None]

Notifies the observer that a node came up.

Parameters:
Returns:

None or an awaitable that completes when the dispatch completes.

Return type:

None | Awaitable[None]

abstractmethod updateAdapter(node: str, updatedInfo: AdapterDynamicInfo, current: Current) 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.

  • 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]

abstractmethod updateServer(node: str, updatedInfo: ServerDynamicInfo, current: Current) 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.

  • 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]