Ice.LocatorFinderPrx

class Ice.LocatorFinderPrx

Bases: ObjectPrx

Provides access to a Ice.LocatorPrx object via a fixed identity. A LocatorFinder is always registered with identity Ice/LocatorFinder. This allows clients to obtain the associated Locator proxy with just the endpoint information of the object. For example, you can use the LocatorFinder proxy Ice/LocatorFinder:tcp -h somehost -p 4061 to get the Locator proxy MyIceGrid/Locator:tcp -h somehost -p 4061.

Notes

The Slice compiler generated this proxy class from Slice interface ::Ice::LocatorFinder.

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

getLocator(context: dict[str, str] | None = None) LocatorPrx | None

Gets a proxy to the associated Ice.LocatorPrx. The proxy might point to several replicas.

Parameters:

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

Returns:

The locator proxy. This proxy is never null.

Return type:

LocatorPrx | None

getLocatorAsync(context: dict[str, str] | None = None) Awaitable[LocatorPrx | None]

Gets a proxy to the associated Ice.LocatorPrx. The proxy might point to several replicas.

Parameters:

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

Returns:

The locator proxy. This proxy is never null.

Return type:

Awaitable[LocatorPrx | 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) LocatorFinderPrx
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