IceGrid.LocatorPrx

class IceGrid.LocatorPrx

Bases: LocatorPrx

Provides access to the IceGrid.QueryPrx and IceGrid.RegistryPrx objects implemented by the IceGrid registry.

Notes

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

getLocalRegistry(context: dict[str, str] | None = None) RegistryPrx | None

Gets a proxy to the registry object hosted by this IceGrid registry.

Parameters:

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

Returns:

A proxy to the registry object. This proxy is never null.

Return type:

RegistryPrx | None

getLocalRegistryAsync(context: dict[str, str] | None = None) Awaitable[RegistryPrx | None]

Gets a proxy to the registry object hosted by this IceGrid registry.

Parameters:

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

Returns:

A proxy to the registry object. This proxy is never null.

Return type:

Awaitable[RegistryPrx | None]

getLocalQuery(context: dict[str, str] | None = None) QueryPrx | None

Gets a proxy to the query object hosted by this IceGrid registry.

Parameters:

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

Returns:

A proxy to the query object. This proxy is never null.

Return type:

QueryPrx | None

getLocalQueryAsync(context: dict[str, str] | None = None) Awaitable[QueryPrx | None]

Gets a proxy to the query object hosted by this IceGrid registry.

Parameters:

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

Returns:

A proxy to the query object. This proxy is never null.

Return type:

Awaitable[QueryPrx | None]

static checkedCast(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) LocatorPrx | 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 | None, optional) – A facet name.

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

Returns:

A new proxy with the requested facet, or None if the source proxy is None or if the target object/facet 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[LocatorPrx | 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 | None, optional) – A facet name.

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

Returns:

A new proxy with the requested facet, or None if the source proxy is None or if the target object/facet does not support the requested type.

Return type:

ObjectPrx | None

static uncheckedCast(proxy: ObjectPrx, facet: str | None = None) LocatorPrx
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 | None, optional) – A facet name.

Returns:

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

Return type:

ObjectPrx | None

static ice_staticId() str

Returns the Slice type ID associated with this type.

Returns:

The Slice type ID.

Return type:

str