public abstract class ActivationGroup extends ActivationGroup
java.rmi.activation.ActivationGroup
to allow activatable objects that
are exported using an Exporter
to go inactive.
This class can be used only productively in conjunction with an
activation system daemon implementation that will cause the createGroup
method of this class to be called. The
standard rmid
does not do this.
ref
Modifier | Constructor and Description |
---|---|
protected |
ActivationGroup(ActivationGroupID id)
Constructs an activation group with the specified activation group
identifier.
|
Modifier and Type | Method and Description |
---|---|
static ActivationGroup |
createGroup(ActivationGroupID id,
ActivationGroupDesc desc,
long incarnation)
Creates and sets the activation group for the current virtual machine.
|
static boolean |
inactive(ActivationID id,
Exporter exporter)
Attempts to make the remote object that is associated with the
specified activation identifier, and that was exported through the
specified exporter, inactive.
|
abstract boolean |
inactiveObject(ActivationID id,
Exporter exporter)
Attempts to make the remote object that is associated with the
specified activation identifier, and that was exported through the
specified exporter, inactive.
|
activeObject, activeObject, currentGroupID, getSystem, inactiveGroup, inactiveObject, setSystem
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
equals, getRef, hashCode, toString, toStub
finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance
protected ActivationGroup(ActivationGroupID id) throws RemoteException
UnicastRemoteObject
. A subclass constructor
can, if desired, unexport the group and then re-export it a different
way.id
- the activation group identifierRemoteException
- if this group could not be exportedpublic static ActivationGroup createGroup(ActivationGroupID id, ActivationGroupDesc desc, long incarnation) throws ActivationException
java.rmi.activation.ActivationGroup.createGroup
with the same
arguments, and returns the result. This method must be called in
order to use the inactive
method of this class.id
- the activation group identifierdesc
- the activation group descriptorincarnation
- the group incarnation number (zero on initial
creation)ActivationException
- if a group already exists, if the
group's class is not a subclass of this class, or if an
exception occurs creating the groupSecurityException
- if a security manager exists and invoking
its checkSetFactory
method
throws a SecurityException
public static boolean inactive(ActivationID id, Exporter exporter) throws ActivationException, RemoteException
inactiveObject
method of the current group
with the same arguments, and returns the result. The overall effect
is as follows. The unexport
method of the
specified exporter is called with false
as an argument.
If that call returns false
, this method returns
false
. If that call returns true
, the
object is marked inactive in this virtual machine, the ActivationMonitor.inactiveObject
method of the group's monitor is
called to inform the activation system daemon that the object is
inactive, and this method returns true
.id
- the object's activation identifierexporter
- the exporter to use to unexport the objecttrue
if the object was successfully made
inactive; false
otherwiseUnknownObjectException
- if the object is
not known to be active (it may already be inactive)ActivationException
- if the group is not activeRemoteException
- if the remote call to the activation
monitor failspublic abstract boolean inactiveObject(ActivationID id, Exporter exporter) throws ActivationException, RemoteException
unexport
method of the specified exporter is called with false
as an argument. If that call returns false
, this method
returns false
. If that call returns true
,
the object is marked inactive in this virtual machine, the ActivationMonitor.inactiveObject
method of the group's monitor is
called to inform the activation system daemon that the object is
inactive, and this method returns true
.id
- the object's activation identifierexporter
- the exporter to use to unexport the objecttrue
if the object was successfully made
inactive; false
otherwiseUnknownObjectException
- if the object is
not known to be active (it may already be inactive)ActivationException
- if the group is not activeRemoteException
- if the remote call to the activation
monitor failsCopyright © GigaSpaces.