ObjectAdapter class abstract
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 Communicator @see ServantLocator
- Implementers
Constructors
Properties
- communicator → Communicator
-
Get the communicator this object adapter belongs to.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDeactivated → bool
-
Check whether object adapter has been deactivated.
no setter
- name → String
-
Get the name of this object adapter.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
activate(
) → void - Activate all endpoints that belong to this object adapter. After activation, the object adapter can dispatch requests received through its endpoints.
-
add(
Object servant, Identity id) → Object? - 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 {@link AlreadyRegisteredException}.
-
addFacet(
Object servant, Identity id, String facet) → Object? -
Like {@link #add}, but with a facet. Calling
add(servant, id)
is equivalent to calling {@link #addFacet} with an empty facet. -
deactivate(
) → void - Deactivate all endpoints that belong to this object adapter. After deactivation, the object adapter stops receiving requests through its endpoints. Object adapters that have been deactivated must not be reactivated again, and cannot be used otherwise. Attempts to use a deactivated object adapter raise {@link ObjectAdapterDeactivatedException} however, attempts to {@link #deactivate} an already deactivated object adapter are ignored and do nothing. Once deactivated, it is possible to destroy the adapter to clean up resources and then create and activate a new adapter with the same name.
-
destroy(
) → void - Destroys the object adapter and cleans up all resources held by the object adapter. If the object adapter has not yet been deactivated, destroy implicitly initiates the deactivation and waits for it to finish. Subsequent calls to destroy are ignored. Once destroy has returned, it is possible to create another object adapter with the same name.
-
hold(
) → void - Temporarily hold receiving and dispatching requests. The object adapter can be reactivated with the {@link #activate} operation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
waitForDeactivate(
) → void - Wait until the object adapter has deactivated. Calling {@link #deactivate} initiates object adapter deactivation, and {@link #waitForDeactivate} only returns when deactivation has been completed.
-
waitForHold(
) → void - Wait until the object adapter holds requests. Calling {@link #hold} initiates holding of requests, and {@link #waitForHold} only returns when holding of requests has been completed.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited