Add a servant to this object adapter's Active Servant Map. Note that one servant can implement several Ice objects by registering the servant with multiple identities. Adding a servant with an identity that is in the map already throws AlreadyRegisteredException.
A proxy that matches the given identity and this object adapter.
Add a default servant to handle requests for a specific category.
Adding a default servant for a category for which a default servant is already registered throws AlreadyRegisteredException. To dispatch operation calls on servants, the object adapter tries to find a servant for a given Ice object identity and facet in the following order:
The default servant.
The category for which the default servant is registered. An empty category means it will handle all categories.
Like ObjectAdapter#add, but with a facet.
Calling add(servant, id)
is equivalent to calling ObjectAdapter#addFacet with an empty facet.
A proxy that matches the given identity, facet, and this object adapter.
Like ObjectAdapter#addWithUUID, but with a facet.
Calling addWithUUID(servant)
is equivalent to calling addFacetWithUUID
with an empty facet.
The servant to add.
The facet. An empty facet means the default facet.
A proxy that matches the generated UUID identity, facet, and this object adapter.
Add a Servant Locator to this object adapter.
Adding a servant locator for a category for which a servant locator is already registered throws AlreadyRegisteredException. To dispatch operation calls on servants, the object adapter tries to find a servant for a given Ice object identity and facet in the following order:
The locator to add.
The category for which the Servant Locator can locate servants, or an empty string if the Servant Locator does not belong to any specific category.
Add a servant to this object adapter's Active Servant Map, using an automatically generated UUID as its identity.
The generated UUID identity can be accessed using the ObjectPrx#ice_getIdentity operation.
The servant to add.
A proxy that matches the generated UUID identity and this object adapter.
Create a proxy for the object with the given identity.
If this object adapter is configured with an adapter id, the return value is an indirect proxy that refers to the adapter id. If a replica group id is also defined, the return value is an indirect proxy that refers to the replica group id. Otherwise, if no adapter id is defined, the return value is a direct proxy containing this object adapter's published endpoints.
The object's identity.
A proxy for the object with the given identity.
Destroys the object adapter and cleans up all resources held by the object adapter.
Look up a servant in this object adapter's Active Servant Map by the identity of the Ice object it implements.
This operation only tries to look up a servant in the Active Servant Map. It does not attempt to find a servant by using any installed ServantLocator.
The identity of the Ice object for which the servant should be returned.
The servant that implements the Ice object with the given identity, or null if no such servant has been found.
Find all facets with the given identity in the Active Servant Map.
The identity of the Ice object for which the facets should be returned.
A collection containing all the facet names and servants that have been found, or an empty map if there is no facet for the given identity.
Look up a servant in this object adapter's Active Servant Map, given a proxy.
This operation only tries to lookup a servant in the Active Servant Map. It does not attempt to find a servant by using any installed ServantLocator.
The proxy for which the servant should be returned.
The servant that matches the proxy, or null if no such servant has been found.
Find the default servant for a specific category.
The category of the default servant to find.
The default servant or null if no default servant was registered for the category.
Like ObjectAdapter#find, but with a facet.
Calling find(id)
is equivalent to calling ObjectAdapter#findFacet with an empty facet.
The identity of the Ice object for which the servant should be returned.
The facet. An empty facet means the default facet.
The servant that implements the Ice object with the given identity and facet, or null if no such servant has been found.
Find a Servant Locator installed with this object adapter.
The category for which the Servant Locator can locate servants, or an empty string if the Servant Locator does not belong to any specific category.
The Servant Locator, or null
if no Servant Locator was found for the given category.
Get the communicator this object adapter belongs to.
This object adapter's communicator.
Get the set of endpoints configured with this object adapter.
The set of endpoints.
Get the name of this object adapter.
This object adapter's name.
Remove a servant (that is, the default facet) from the object adapter's Active Servant Map.
The identity of the Ice object that is implemented by the servant. If the servant implements multiple Ice objects, ObjectAdapter#remove has to be called for all those Ice objects. Removing an identity that is not in the map throws NotRegisteredException.
The removed servant.
Remove all facets with the given identity from the Active Servant Map. The operation completely removes the Ice object, including its default facet. Removing an identity that is not in the map throws NotRegisteredException.
The identity of the Ice object to be removed.
A collection containing all the facet names and servants of the removed Ice object.
Remove the default servant for a specific category. Attempting to remove a default servant for a category that is not registered throws NotRegisteredException.
The category of the default servant to remove.
The default servant.
Like ObjectAdapter#remove, but with a facet. Calling remove(id)
is equivalent to calling
ObjectAdapter#removeFacet with an empty facet.
The identity of the Ice object that is implemented by the servant.
The facet. An empty facet means the default facet.
The removed servant.
Remove a Servant Locator from this object adapter.
The category for which the Servant Locator can locate servants, or an empty string if the Servant Locator does not belong to any specific category.
The Servant Locator.
NotRegisteredException if no Servant Locator was found for the given category.
The object adapter provides an up-call interface from the Ice run time to the implementation of Ice objects.
The object adapter is responsible for receiving requests from endpoints, and for mapping between servants, identities, and proxies.
See