- All Superinterfaces:
Object
Finds well-known Ice objects registered with the IceGrid registry.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletionStage<OutgoingResponse>
dispatch
(IncomingRequest request) Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.findAllObjectsByType
(String type, Current current) Finds all the well-known objects with the given type.findAllReplicas
(ObjectPrx proxy, Current current) Finds all the replicas of a well-known object.findObjectById
(Identity id, Current current) Finds a well-known object by identity.findObjectByType
(String type, Current current) Finds a well-known object by type.findObjectByTypeOnLeastLoadedNode
(String type, LoadSample sample, Current current) Finds a well-known object by type on the least-loaded node.static String
Gets the type ID of the associated Slice interface.
-
Method Details
-
findObjectById
Finds a well-known object by identity.- Parameters:
id
- The identity.current
- The Current object of the incoming request.- Returns:
- A proxy to the well-known object, or null if no such object is registered.
-
findObjectByType
Finds 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 of the incoming request.- Returns:
- A proxy to a well-known object with the specified type, or null if no such object is registered.
-
findObjectByTypeOnLeastLoadedNode
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.- Parameters:
type
- The object type.sample
- The sampling interval.current
- The Current object of the incoming request.- Returns:
- A proxy to the well-known object, or null if no such object is registered.
-
findAllObjectsByType
Finds all the well-known objects with the given type.- Parameters:
type
- The object type.current
- The Current object of the incoming request.- Returns:
- A list of proxies to the well-known objects with the specified type. Can be empty.
-
findAllReplicas
Finds all the replicas of a well-known object.- Parameters:
proxy
- A proxy that identifies the well-known object.current
- The Current object of the incoming request.- Returns:
- A list of proxies to the replicas of the well-known object specified by
proxy
. Can be empty.
-
ice_staticId
Gets the type ID of the associated Slice interface.- Returns:
- the string "::IceGrid::Query"
-
dispatch
Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.- Specified by:
dispatch
in interfaceObject
- Parameters:
request
- the incoming request- Returns:
- the outgoing response
- Throws:
UserException
- if aUserException
is thrown, Ice will marshal it as the response payload.
-