IceGrid.QueryPrx¶
- class IceGrid.QueryPrx¶
Bases:
ObjectPrxFinds well-known Ice objects registered with the IceGrid registry.
Notes
The Slice compiler generated this proxy class from Slice interface
::IceGrid::Query.- static checkedCast(proxy: ObjectPrx | None, facet: str | None = None, context: dict[str, str] | None = None) QueryPrx | 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[QueryPrx | 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
- findAllObjectsByType(type: str, context: dict[str, str] | None = None) list[ObjectPrx | None]¶
Finds all the well-known objects with the given type.
- findAllObjectsByTypeAsync(type: str, context: dict[str, str] | None = None) Awaitable[list[ObjectPrx | None]]¶
Finds all the well-known objects with the given type.
- findAllReplicas(proxy: ObjectPrx | None, context: dict[str, str] | None = None) list[ObjectPrx | None]¶
Finds all the replicas of a well-known object.
- findAllReplicasAsync(proxy: ObjectPrx | None, context: dict[str, str] | None = None) Awaitable[list[ObjectPrx | None]]¶
Finds all the replicas of a well-known object.
- Parameters:
- Returns:
A list of proxies to the replicas of the well-known object specified by
proxy. Can be empty.- Return type:
- findObjectById(id: Identity, context: dict[str, str] | None = None) ObjectPrx | None¶
Finds a well-known object by identity.
- findObjectByIdAsync(id: Identity, context: dict[str, str] | None = None) Awaitable[ObjectPrx | None]¶
Finds a well-known object by identity.
- findObjectByType(type: str, context: dict[str, str] | None = None) ObjectPrx | None¶
Finds a well-known object by type. If there are several objects registered for the given type, the object is randomly selected.
- findObjectByTypeAsync(type: str, context: dict[str, str] | None = None) Awaitable[ObjectPrx | None]¶
Finds a well-known object by type. If there are several objects registered for the given type, the object is randomly selected.
- findObjectByTypeOnLeastLoadedNode(type: str, sample: LoadSample, context: dict[str, str] | None = None) ObjectPrx | None¶
Finds a well-known object by type on the least-loaded node. If the registry does not know which node hosts the object (for example, because the object was registered with a direct proxy), the registry assumes the object is hosted on a node that has a load average of 1.0.
- findObjectByTypeOnLeastLoadedNodeAsync(type: str, sample: LoadSample, context: dict[str, str] | None = None) Awaitable[ObjectPrx | None]¶
Finds a well-known object by type on the least-loaded node. If the registry does not know which node hosts the object (for example, because the object was registered with a direct proxy), the registry assumes the object is hosted on a node that has a load average of 1.0.
- static ice_staticId() str¶
Gets the Slice type ID of the interface associated with this proxy.
- Returns:
The type ID, “::Ice::Object”.
- Return type: