org.objectweb.proactive.core.body.ft.checkpointing
Class Checkpoint

java.lang.Object
  extended byorg.objectweb.proactive.core.body.ft.checkpointing.Checkpoint
All Implemented Interfaces:
java.io.Serializable

public class Checkpoint
extends java.lang.Object
implements java.io.Serializable

This class defines a checkpoint object. A checkpoint is used for recovering a failed active object by being sent to a free ProActive runtime. A checkpoint contains a serialized copy of the owner. It is identified by an index and the id of the owner.

Since:
ProActive 2.2
Author:
cdelbe
See Also:
Serialized Form

Constructor Summary
Checkpoint(Body bodyToCheckpoint, int index, java.lang.String additionalCodebase)
          Create a checkpoint.
 
Method Summary
 UniqueID getBodyID()
           
 CheckpointInfo getCheckpointInfo()
           
 int getIndex()
           
 Body recover()
          Recovers an active object from this checkpoint.
 void setBodyID(UniqueID uniqueID)
           
 void setCheckpointInfo(CheckpointInfo ci)
           
 void setIndex(int index)
           
 java.lang.String toString()
          Pretty printing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Checkpoint

public Checkpoint(Body bodyToCheckpoint,
                  int index,
                  java.lang.String additionalCodebase)
Create a checkpoint. The body given as parameter is serialized in this constructor.

Parameters:
bodyToCheckpoint - the body that have to be checkpointed
index - the index of the checkpoint
additionalCodebase - the URL of the CheckpointServer classserver
Method Detail

getBodyID

public UniqueID getBodyID()

setBodyID

public void setBodyID(UniqueID uniqueID)

getIndex

public int getIndex()

setIndex

public void setIndex(int index)

setCheckpointInfo

public void setCheckpointInfo(CheckpointInfo ci)

getCheckpointInfo

public CheckpointInfo getCheckpointInfo()

recover

public Body recover()
Recovers an active object from this checkpoint. A body is deserialized in this method.

Returns:
the new instance of the checkpointed body.

toString

public java.lang.String toString()
Pretty printing



Copyright ? April 2005 INRIA All Rights Reserved.