java.rmi.activation
public class ActivationID extends Object implements Serializable
Activatable.register(ActivationDesc)
UID
as its component and
hence is globally unique.Constructor and Description |
---|
ActivationID(Activator an_activator)
Create a new instance with the given activator.
|
Modifier and Type | Method and Description |
---|---|
Remote |
activate(boolean force)
Activate the object.
|
boolean |
equals(Object obj)
Compares the activators for equality.
|
int |
hashCode()
Returns the hash code of the activator.
|
String |
toString()
Return the content based string representation.
|
public ActivationID(Activator an_activator)
an_activator
- tha activator that should activate the object.public Remote activate(boolean force) throws ActivationException, UnknownObjectException, RemoteException
force
- if true, always contact the group. Otherwise, the cached value
may be returned.UnknownObjectException
- if the object is unknownActivationException
- if the activation has failedRemoteException
- if the remote call has failedpublic int hashCode()
hashCode
in class Object
Object.equals(Object)
,
System.identityHashCode(Object)
public boolean equals(Object obj)
equals
in class Object
obj
- the Object to compare toObject.hashCode()
public String toString()
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)