00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 package org.objectweb.proactive.core.body.ft.protocols.cic.infos;
00032
00033 import java.util.Iterator;
00034 import java.util.Vector;
00035
00036 import org.objectweb.proactive.core.body.reply.Reply;
00037 import org.objectweb.proactive.core.body.request.Request;
00038
00039
00046 public class CheckpointInfoCIC
00047 implements org.objectweb.proactive.core.body.ft.checkpointing.CheckpointInfo {
00048
00050 public int checkpointIndex;
00051
00053 public Vector requestToResend;
00054
00056 public Vector replyToResend;
00057
00059 public Request pendingRequest;
00060
00062 public Vector history;
00063
00065 public long lastRcvdRequestIndex;
00066
00068 public long lastCommitedIndex;
00069
00073 public String toString() {
00074 StringBuffer r = new StringBuffer();
00075 r.append("---------------------------------------------\n");
00076 r.append("CkptIndex : " + this.checkpointIndex + "\n");
00077 Iterator itrep = replyToResend.iterator();
00078 r.append("Logged replies :\n");
00079 while (itrep.hasNext()) {
00080 r.append(" >" + ((Reply) (itrep.next())).getResult() + "\n");
00081 }
00082 r.append("---------------------------------------------\n");
00083 return r.toString();
00084 }
00085 }