IceGrid.AdapterObserver

class IceGrid.AdapterObserver

Bases: Object, ABC

Monitors dynamically-registered object adapters.

Notes

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

abstractmethod adapterAdded(info: AdapterInfo, current: Current) None | Awaitable[None]

Notifies the observer that a dynamically-registered adapter was added.

Parameters:
  • info (AdapterInfo) – The details of the new adapter.

  • 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 adapterInit(adpts: list[AdapterInfo], current: Current) None | Awaitable[None]

Provides the initial list of dynamically registered adapters to the observer.

Parameters:
  • adpts (list[AdapterInfo]) – The adapters that were dynamically registered with the registry.

  • 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 adapterRemoved(id: str, current: Current) None | Awaitable[None]

Notifies the observer that a dynamically-registered adapter was removed.

Parameters:
  • id (str) – The ID of the removed adapter.

  • 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 adapterUpdated(info: AdapterInfo, current: Current) None | Awaitable[None]
Parameters:
  • info (AdapterInfo) – The details of the updated adapter.

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

static ice_staticId() str

Obtain the type ID of the Slice interface.

Returns:

The type ID.

Return type:

str