public class ActivationID extends Object implements Serializable
ActivationID
) contains several
pieces of information needed for activating an object:
RemoteRef
instance), and
UID
instance) for the object. An activation identifier for an object can be obtained by registering an object with the activation system. Registration is accomplished in a few ways:
Activatable.register
method
Activatable
constructor (that takes
three arguments and both registers and exports the object, and
Activatable.exportObject
method
that takes the activation descriptor, object and port as arguments;
this method both registers and exports the object. Activatable
,
Serialized FormConstructor and Description |
---|
ActivationID(Activator activator)
The constructor for
ActivationID takes a single
argument, activator, that specifies a remote reference to the
activator responsible for activating the object associated with
this identifier. |
Modifier and Type | Method and Description |
---|---|
Remote |
activate(boolean force)
Activate the object for this id.
|
boolean |
equals(Object obj)
Compares two activation ids for content equality.
|
int |
hashCode()
Returns a hashcode for the activation id.
|
public ActivationID(Activator activator)
ActivationID
takes a single
argument, activator, that specifies a remote reference to the
activator responsible for activating the object associated with
this identifier. An instance of ActivationID
is globally
unique.UnsupportedOperationException
- if and only if activation is
not supported by this implementationactivator
- reference to the activator responsible for
activating the objectpublic Remote activate(boolean force) throws ActivationException, UnknownObjectException, RemoteException
ActivationException
- if activation failsUnknownObjectException
- if the object is unknownRemoteException
- if remote call failsforce
- if true, forces the activator to contact the group
when activating the object (instead of returning a cached reference);
if false, returning a cached value is acceptable.public int hashCode()
public boolean equals(Object obj)
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.