IceGrid.ApplicationObserverPrx

class IceGrid.ApplicationObserverPrx

Bases: ObjectPrx

Monitors applications.

Notes

The Slice compiler generated this proxy class from Slice interface ::IceGrid::ApplicationObserver.

applicationAdded(serial: int, desc: ApplicationInfo, context: dict[str, str] | None = None) 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.

  • context (dict[str, str]) – The request context for the invocation.

Return type:

None

applicationAddedAsync(serial: int, desc: ApplicationInfo, context: dict[str, str] | None = 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.

  • context (dict[str, str]) – The request context for the invocation.

Returns:

An awaitable that is completed when the invocation completes.

Return type:

Awaitable[None]

applicationInit(serial: int, applications: Sequence[ApplicationInfo], context: dict[str, str] | None = None) 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 (Sequence[ApplicationInfo]) – The applications currently registered with the registry.

  • context (dict[str, str]) – The request context for the invocation.

Return type:

None

applicationInitAsync(serial: int, applications: Sequence[ApplicationInfo], context: dict[str, str] | None = 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 (Sequence[ApplicationInfo]) – The applications currently registered with the registry.

  • context (dict[str, str]) – The request context for the invocation.

Returns:

An awaitable that is completed when the invocation completes.

Return type:

Awaitable[None]

applicationRemoved(serial: int, name: str, context: dict[str, str] | None = None) 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.

  • context (dict[str, str]) – The request context for the invocation.

Return type:

None

applicationRemovedAsync(serial: int, name: str, context: dict[str, str] | None = 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.

  • context (dict[str, str]) – The request context for the invocation.

Returns:

An awaitable that is completed when the invocation completes.

Return type:

Awaitable[None]

applicationUpdated(serial: int, desc: ApplicationUpdateInfo, context: dict[str, str] | None = None) 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.

  • context (dict[str, str]) – The request context for the invocation.

Return type:

None

applicationUpdatedAsync(serial: int, desc: ApplicationUpdateInfo, context: dict[str, str] | None = 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.

  • 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 checkedCast(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) ApplicationObserverPrx | None

Creates a new proxy from an existing proxy after confirming the target object’s type via a remote invocation.

Parameters:
  • proxy (ObjectPrx | None) – The source proxy.

  • facet (str, optional) – A facet name.

  • context (dict[str, str], optional) – The request context.

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[ApplicationObserverPrx | None]

Creates a new proxy from an existing proxy after confirming the target object’s type via a remote invocation.

Parameters:
  • proxy (ObjectPrx | None) – The source proxy.

  • facet (str, optional) – A facet name.

  • context (dict[str, str], optional) – The request context.

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:

str

static uncheckedCast(proxy: ObjectPrx, facet: str | None = None) ApplicationObserverPrx
static uncheckedCast(proxy: None, facet: str | None = None) None

Creates a new proxy from an existing proxy.

Parameters:
  • proxy (ObjectPrx | None) – The source proxy.

  • facet (str, optional) – A facet name.

Returns:

A new proxy with the requested type, or None if the source proxy is None.

Return type:

ObjectPrx | None