java.rmi.activation

Interface ActivationMonitor

public interface ActivationMonitor extends Remote

The activation and inactivation event listener. The group obtains this listener via {@link ActivationSystem#activeGroup} and must notify it when the group objects are activated or inactivated and also when the whole group becomes inactive.
Method Summary
voidactiveObject(ActivationID id, MarshalledObject obj)
Informs that the object is now active.
voidinactiveGroup(ActivationGroupID groupId, long incarnation)
Informs that the whole group is now inactive because all group objects are inactive.
voidinactiveObject(ActivationID id)
Informs that the object is not inactive.

Method Detail

activeObject

public void activeObject(ActivationID id, MarshalledObject obj)
Informs that the object is now active.

Parameters: id the activation id of the object that is now active

Throws: UnknownObjectException is such object is not known in this group RemoteException if remote call fails

inactiveGroup

public void inactiveGroup(ActivationGroupID groupId, long incarnation)
Informs that the whole group is now inactive because all group objects are inactive. The group will be recreated upon the later request to activate any object, belonging to the group.

Parameters: groupId the group id incarnation the group incarnation number

Throws: UnknownGroupException if the group id is not known RemoteException if the remote call fails

inactiveObject

public void inactiveObject(ActivationID id)
Informs that the object is not inactive.

Parameters: id the activation id of the object that is now inactive

Throws: UnknownObjectException is such object is not known in this group RemoteException if remote call fails