Package com.zeroc.Ice
Interface Locator
- All Superinterfaces:
Object
- All Known Subinterfaces:
Locator
The Ice locator interface. This interface is used by clients to
lookup adapters and objects. It is also used by servers to get the
locator registry proxy.
The Locator
interface is intended to be used by
Ice internals and by locator implementations. Regular user code
should not attempt to use any functionality of this interface
directly.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Method Summary
Modifier and TypeMethodDescriptionfindAdapterByIdAsync
(String id, Current current) Find an adapter by id and return a proxy that contains its endpoints.findObjectByIdAsync
(Identity id, Current current) Find an object by identity and return a proxy that contains the adapter ID or endpoints which can be used to access the object.getRegistry
(Current current) Get the locator registry.default String
Returns 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 String
Returns 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
-
findObjectByIdAsync
CompletionStage<ObjectPrx> findObjectByIdAsync(Identity id, Current current) throws ObjectNotFoundException Find an object by identity and return a proxy that contains the adapter ID or endpoints which can be used to access the object.- Parameters:
id
- The identity.current
- The Current object for the invocation.- Returns:
- The proxy, or null if the object is not active.
- Throws:
ObjectNotFoundException
- Raised if the object cannot be found.
-
findAdapterByIdAsync
CompletionStage<ObjectPrx> findAdapterByIdAsync(String id, Current current) throws AdapterNotFoundException Find an adapter by id and return a proxy that contains its endpoints.- Parameters:
id
- The adapter id.current
- The Current object for the invocation.- Returns:
- The adapter proxy, or null if the adapter is not active.
- Throws:
AdapterNotFoundException
- Raised if the adapter cannot be found.
-
getRegistry
Get the locator registry.- Parameters:
current
- The Current object for the invocation.- Returns:
- The locator registry.
-
ice_ids
Description copied from interface:Object
Returns the Slice type IDs of the interfaces supported by this object. -
ice_id
Description copied from interface:Object
Returns the Slice type ID of the most-derived interface supported by this object. -
ice_staticId
Description copied from interface:Object
Returns the Slice type ID of the interface supported by this object.- Returns:
- The return value is always ::Ice::Object.
-