|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--java.rmi.activation.ActivationID
Activation makes use of special identifiers to denote remote
objects that can be activated over time. An activation identifier
(an instance of the class ActivationID) contains several
pieces of information needed for activating an object:
An activation id 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 Form| Constructor Summary | |
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. |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
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.activator - reference to the activator responsible for
activating the object| Method Detail |
public Remote activate(boolean force)
throws ActivationException,
UnknownObjectException,
RemoteException
force - 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.ActivationException - if activation failsUnknownObjectException - if the object is unknownRemoteException - if remote call failspublic int hashCode()
hashCode in class ObjectHashtablepublic boolean equals(Object obj)
equals in class Objectobj - the Object to compare withHashtable
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.