IceGrid.ApplicationObserver¶
- class IceGrid.ApplicationObserver¶
-
Monitors applications.
Notes
The Slice compiler generated this skeleton class from Slice interface
::IceGrid::ApplicationObserver.- abstractmethod applicationAdded(serial: int, desc: ApplicationInfo, current: Current) None | Awaitable[None]¶
Notifies the observer that an application was added.
- Parameters:
serial (int) – The new serial number of the registry database.
desc (ApplicationInfo) – The descriptor of the new application.
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 applicationInit(serial: int, applications: list[ApplicationInfo], current: Current) None | Awaitable[None]¶
Provides the initial application infos to the observer.
- Parameters:
serial (int) – The current serial number of the registry database. This serial number allows observers to make sure that their internal state is synchronized with the registry.
applications (list[ApplicationInfo]) – The applications currently 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 applicationRemoved(serial: int, name: str, current: Current) None | Awaitable[None]¶
Notifies the observer that an application was removed.
- Parameters:
serial (int) – The new serial number of the registry database.
name (str) – The name of the application that was removed.
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 applicationUpdated(serial: int, desc: ApplicationUpdateInfo, current: Current) None | Awaitable[None]¶
Notifies the observer that an application was updated.
- Parameters:
serial (int) – The new serial number of the registry database.
desc (ApplicationUpdateInfo) – The descriptor of the update.
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]