- All Superinterfaces:
Object
- All Known Subinterfaces:
Locator
Client applications use the Locator object to resolve Ice indirect proxies. This object also allows
server applications to retrieve a proxy to the associated
LocatorRegistryPrx object where they can register
their object adapters.
Remarks:
The Slice compiler generated this skeleton interface from Slice interface ::Ice::Locator.
-
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.findAdapterById(String id, Current current) Finds an object adapter by adapter ID and returns a dummy proxy with the object adapter's endpoint(s).findObjectById(Identity id, Current current) Finds an object by identity and returns a dummy proxy with the endpoint(s) that can be used to reach this object.getRegistry(Current current) Gets a proxy to the locator registry.static StringGets the type ID of the associated Slice interface.
-
Method Details
-
findObjectById
Finds an object by identity and returns a dummy proxy with the endpoint(s) that can be used to reach this object. This dummy proxy may be an indirect proxy that requires further resolution usingLocatorPrx.findAdapterById(java.lang.String).- Parameters:
id- The identity.current- the Current object of the incoming request- Returns:
- A dummy proxy, or null if an object with the requested identity was not found.
- Throws:
ObjectNotFoundException- Thrown when an object with the requested identity was not found. The caller should treat this exception like a null return value.
-
findAdapterById
Finds an object adapter by adapter ID and returns a dummy proxy with the object adapter's endpoint(s).- Parameters:
id- The adapter ID.current- the Current object of the incoming request- Returns:
- A dummy proxy with the adapter's endpoints, or null if an object adapter with
idwas not found. - Throws:
AdapterNotFoundException- Thrown when an object adapter with this adapter ID was not found. The caller should treat this exception like a null return value.
-
getRegistry
Gets a proxy to the locator registry.- Parameters:
current- the Current object of the incoming request- Returns:
- A proxy to the locator registry, or null if this locator has no associated registry.
-
ice_staticId
Gets the type ID of the associated Slice interface.- Returns:
- the string "::Ice::Locator"
-
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:
dispatchin interfaceObject- Parameters:
request- the incoming request- Returns:
- the outgoing response
- Throws:
UserException- if aUserExceptionis thrown, Ice will marshal it as the response payload.
-