ibis.satin.impl.checkPointing
Class CheckpointFile

java.lang.Object
  extended by ibis.satin.impl.checkPointing.CheckpointFile

public class CheckpointFile
extends Object


Constructor Summary
CheckpointFile(String filename)
           
CheckpointFile(String filename, long maxFileSize)
           
 
Method Summary
 void close()
           
 void compress()
          Tries to compress the checkpointfile.
 int init(GlobalResultTable grt)
           
 int read(Set<ibis.ipl.IbisIdentifier> id, GlobalResultTable grt)
          Retrieves all the checkpoints which belonged to 'id' from the checkpoint-file and stores them in 'grt'.
 void restore(GlobalResultTable grt)
          Tries to restore the old checkpointFile.
 void write(ArrayList<Checkpoint> newCheckpoints)
          Writes newCheckpoints to the checkpointFile and checks the filesize of the checkpointfile for compression afterwards.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckpointFile

public CheckpointFile(String filename)

CheckpointFile

public CheckpointFile(String filename,
                      long maxFileSize)
Method Detail

init

public int init(GlobalResultTable grt)

write

public void write(ArrayList<Checkpoint> newCheckpoints)
Writes newCheckpoints to the checkpointFile and checks the filesize of the checkpointfile for compression afterwards. Every exception is fatal and results in no write-possibilities in the future whatsoever


read

public int read(Set<ibis.ipl.IbisIdentifier> id,
                GlobalResultTable grt)
Retrieves all the checkpoints which belonged to 'id' from the checkpoint-file and stores them in 'grt'. if id == null, all checkpoints belonging to any node will be stored in 'grt.'


compress

public void compress()
Tries to compress the checkpointfile. Every exception is fatal and results in no write-possibilities in the future whatsoever


restore

public void restore(GlobalResultTable grt)
Tries to restore the old checkpointFile. Every Exception is fatal and leads to no write-possibiliets in the future whatsoever


close

public void close()


The Ibis project