IceGrid.ObjectObserverPrx¶
- class IceGrid.ObjectObserverPrx¶
Bases:
ObjectPrxMonitors well-known objects that are added, updated or removed using
IceGrid.AdminPrx.Notes
The Slice compiler generated this proxy class from Slice interface
::IceGrid::ObjectObserver.- static checkedCast(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) ObjectObserverPrx | 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[ObjectObserverPrx | 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:
- objectAdded(info: ObjectInfo, context: dict[str, str] | None = None) None¶
Notifies the observer that a well-known object was added.
- Parameters:
info (ObjectInfo) – The details of the new object.
context (dict[str, str]) – The request context for the invocation.
- Return type:
None
- objectAddedAsync(info: ObjectInfo, context: dict[str, str] | None = None) Awaitable[None]¶
Notifies the observer that a well-known object was added.
- Parameters:
info (ObjectInfo) – The details of the new object.
context (dict[str, str]) – The request context for the invocation.
- Returns:
An awaitable that is completed when the invocation completes.
- Return type:
Awaitable[None]
- objectInit(objects: Sequence[ObjectInfo], context: dict[str, str] | None = None) None¶
Provides the initial list of well-known objects to the observer.
- Parameters:
objects (Sequence[ObjectInfo]) – The well-known objects registered using
IceGrid.AdminPrx.context (dict[str, str]) – The request context for the invocation.
- Return type:
None
- objectInitAsync(objects: Sequence[ObjectInfo], context: dict[str, str] | None = None) Awaitable[None]¶
Provides the initial list of well-known objects to the observer.
- Parameters:
objects (Sequence[ObjectInfo]) – The well-known objects registered using
IceGrid.AdminPrx.context (dict[str, str]) – The request context for the invocation.
- Returns:
An awaitable that is completed when the invocation completes.
- Return type:
Awaitable[None]
- objectRemoved(id: Identity, context: dict[str, str] | None = None) None¶
Notifies the observer that a well-known object was removed.
- objectRemovedAsync(id: Identity, context: dict[str, str] | None = None) Awaitable[None]¶
Notifies the observer that a well-known object was removed.
- objectUpdated(info: ObjectInfo, context: dict[str, str] | None = None) None¶
Notifies the observer that a well-known object was updated.
- Parameters:
info (ObjectInfo) – The details of the updated object.
context (dict[str, str]) – The request context for the invocation.
- Return type:
None
- objectUpdatedAsync(info: ObjectInfo, context: dict[str, str] | None = None) Awaitable[None]¶
Notifies the observer that a well-known object was updated.
- Parameters:
info (ObjectInfo) – The details of the updated object.
context (dict[str, str]) – The request context for the invocation.
- Returns:
An awaitable that is completed when the invocation completes.
- Return type:
Awaitable[None]