Package com.zeroc.IceGrid
Interface Query
- All Superinterfaces:
Object
The IceGrid query interface. This interface is accessible to
Ice clients who wish to look up well-known objects.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult -
Method Summary
Modifier and TypeMethodDescriptionfindAllObjectsByType(String type, Current current) Find all the well-known objects with the given type.findAllReplicas(ObjectPrx proxy, Current current) Find all the object replicas associated with the given proxy.findObjectById(Identity id, Current current) Find a well-known object by identity.findObjectByType(String type, Current current) Find a well-known object by type.findObjectByTypeOnLeastLoadedNode(String type, LoadSample sample, Current current) Find a well-known object by type on the least-loaded node.default StringReturns the Slice type ID of the most-derived interface supported by this object.default String[]Returns the Slice type IDs of the interfaces supported by this object.static StringReturns the Slice type ID of the interface supported by this object.Methods inherited from interface com.zeroc.Ice.Object
ice_dispatch, ice_isA, ice_ping
-
Method Details
-
findObjectById
Find a well-known object by identity.- Parameters:
id- The identity.current- The Current object for the invocation.- Returns:
- The proxy or null if no such object has been found.
-
findObjectByType
Find a well-known object by type. If there are several objects registered for the given type, the object is randomly selected.- Parameters:
type- The object type.current- The Current object for the invocation.- Returns:
- The proxy or null, if no such object has been found.
-
findObjectByTypeOnLeastLoadedNode
Find 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.- Parameters:
type- The object type.sample- The sampling interval.current- The Current object for the invocation.- Returns:
- The proxy or null, if no such object has been found.
-
findAllObjectsByType
Find all the well-known objects with the given type.- Parameters:
type- The object type.current- The Current object for the invocation.- Returns:
- The proxies or an empty sequence, if no such objects have been found.
-
findAllReplicas
Find all the object replicas associated with the given proxy. If the given proxy is not an indirect proxy from a replica group, an empty sequence is returned.- Parameters:
proxy- The object proxy.current- The Current object for the invocation.- Returns:
- The proxies of each object replica or an empty sequence, if the given proxy is not from a replica group.
-
ice_ids
Description copied from interface:ObjectReturns the Slice type IDs of the interfaces supported by this object. -
ice_id
Description copied from interface:ObjectReturns the Slice type ID of the most-derived interface supported by this object. -
ice_staticId
Description copied from interface:ObjectReturns the Slice type ID of the interface supported by this object.- Returns:
- The return value is always ::Ice::Object.
-