public interface ActivationMonitor
An ActivationMonitor is specific to an ActivationGroup and is obtained when a group is reported active via a call to ActivationSystem.activeGroup (this is done internally). An activation group is responsible for informing its ActivationMonitor when either: its objects become active or inactive, or the group as a whole becomes inactive.
Method Summary | |
---|---|
void |
activeObject
(
ActivationID
id,
MarshalledObject
<? extends
Remote
Informs that an object is now active. |
void |
inactiveGroup
(
ActivationGroupID
id, long incarnation) Informs that the group is now inactive. |
void |
inactiveObject
(
ActivationID
id) An activation group calls its monitor's inactiveObject method when an object in its group becomes inactive (deactivates). |
Method Detail |
---|
void inactiveObject(ActivationID id) throws UnknownObjectException, RemoteException
The inactiveObject call informs the ActivationMonitor that the remote object reference it holds for the object with the activation identifier, id, is no longer valid. The monitor considers the reference associated with id as a stale reference. Since the reference is considered stale, a subsequent activate call for the same activation identifier results in re-activating the remote object.
void activeObject(ActivationID id, MarshalledObject<? extends Remoteobj) throwsUnknownObjectException> obj) throws UnknownObjectException, RemoteException
void inactiveGroup(ActivationGroupID id, long incarnation) throws UnknownGroupException, RemoteException