net.openwings.container
Interface MobileProcessListener
- public interface MobileProcessListener
This interface describes a callback that can be used to register
interest in receiving notification when the serialized state of
processes from a MobileProcess,
Container, or ContainerManager
are updated.
processStateCheckpoint
public void processStateCheckpoint(MobileProcess process)
throws java.rmi.RemoteException
- This method is called when the serialized state of
a
MobileProcess is updated.
The serialized state of the process is not actually passed
in the method. Instead, the listener can choose whether to
obtain the serialized state directly from the
MobileProcess. This allows a listener to
skip storing checkpoints to improve performance.
- Parameters:
process - the MobileProcess that has an updated state
checkpoint applies. This parameter makes it possible to use
the same MobileProcessListener to track the
state of multiple processes.
- Throws:
java.rmi.RemoteException - if there is an error communicating with
the MobileProcessListener.