|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.core.body.ft.servers.storage.CheckpointServerImpl
org.objectweb.proactive.core.body.ft.protocols.cic.servers.CheckpointServerCIC
public class CheckpointServerCIC
This class define a checkpoint server for the CIC protocol.
Field Summary | |
---|---|
static int |
DEFAULT_GC_PERIOD
Period of the checkpoints garbage collection (ms) |
protected static org.apache.log4j.Logger |
logger
|
Fields inherited from class org.objectweb.proactive.core.body.ft.servers.storage.CheckpointServerImpl |
---|
checkpointStorage, classServerHelper, codebase, server |
Constructor Summary | |
---|---|
CheckpointServerCIC(FTServer server)
|
Method Summary | |
---|---|
void |
addInfoToCheckpoint(CheckpointInfo ci,
UniqueID id,
int sequenceNumber,
int incarnation)
Add informations to an already stored checkpoint |
void |
commitHistory(HistoryUpdater rh)
Add an history to a checkpoint. |
Checkpoint |
getCheckpoint(UniqueID id,
int sequenceNumber)
Return a checkpoint of the object identified by id. |
CheckpointInfo |
getInfoFromCheckpoint(UniqueID id,
int sequenceNumber)
Return informations on the given checkpoint |
Checkpoint |
getLastCheckpoint(UniqueID id)
Return the latest checkpoint of the object identified by id |
void |
initialize()
Reintialize the server. |
protected void |
internalRecover(UniqueID failed)
|
void |
outputCommit(MessageInfo mi)
The state of the system must be commited before the sent of the message linked to the messageInfo mi. |
int |
storeCheckpoint(Checkpoint c,
int incarnation)
Store a checkpoint in the checkpoint server. |
void |
storeReply(UniqueID receiverID,
Reply reply)
Not implemented for the CIC protocol |
void |
storeRequest(UniqueID receiverId,
Request request)
Not implemented for the CIC protocol |
Methods inherited from class org.objectweb.proactive.core.body.ft.servers.storage.CheckpointServerImpl |
---|
getServerCodebase, getSize, getUsedMem |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_GC_PERIOD
protected static org.apache.log4j.Logger logger
Constructor Detail |
---|
public CheckpointServerCIC(FTServer server)
Method Detail |
---|
public int storeCheckpoint(Checkpoint c, int incarnation) throws java.rmi.RemoteException
CheckpointServer
c
- the checkpoint to storedincarnation
- incarnation number of the caller
java.rmi.RemoteException
CheckpointServer.storeCheckpoint(org.objectweb.proactive.core.body.ft.checkpointing.Checkpoint, int)
public Checkpoint getCheckpoint(UniqueID id, int sequenceNumber) throws java.rmi.RemoteException
CheckpointServer
id
- the owner of the returned checkpointsequenceNumber
- the index of the requiered checkpoint
java.rmi.RemoteException
CheckpointServer.getCheckpoint(org.objectweb.proactive.core.UniqueID, int)
public Checkpoint getLastCheckpoint(UniqueID id) throws java.rmi.RemoteException
CheckpointServer
id
- the owner of the returned checkpoint
java.rmi.RemoteException
CheckpointServer.getLastCheckpoint(org.objectweb.proactive.core.UniqueID)
public void addInfoToCheckpoint(CheckpointInfo ci, UniqueID id, int sequenceNumber, int incarnation) throws java.rmi.RemoteException
CheckpointServer
ci
- informations that have to be addedid
- owner of the considered checkpointsequenceNumber
- index of the considered checkpointincarnation
- incarnation number of the caller
java.rmi.RemoteException
CheckpointServer.addInfoToCheckpoint(org.objectweb.proactive.core.body.ft.checkpointing.CheckpointInfo, org.objectweb.proactive.core.UniqueID, int, int)
public void commitHistory(HistoryUpdater rh) throws java.rmi.RemoteException
CheckpointServer
rh
- the history updater.
java.rmi.RemoteException
CheckpointServer.commitHistory(org.objectweb.proactive.core.body.ft.message.HistoryUpdater)
public CheckpointInfo getInfoFromCheckpoint(UniqueID id, int sequenceNumber) throws java.rmi.RemoteException
CheckpointServer
id
- owner of the considered checkpointsequenceNumber
- index of the considered checkpoint
java.rmi.RemoteException
CheckpointServer.getInfoFromCheckpoint(org.objectweb.proactive.core.UniqueID, int)
public void storeRequest(UniqueID receiverId, Request request) throws java.rmi.RemoteException
receiverId
- the ID associated to the request.request
- the request to log.
java.rmi.RemoteException
- If communication with server fails.CheckpointServer.storeRequest(org.objectweb.proactive.core.UniqueID, org.objectweb.proactive.core.body.request.Request)
public void storeReply(UniqueID receiverID, Reply reply) throws java.rmi.RemoteException
receiverID
- the ID associated to the reply.reply
- the reply to log.
java.rmi.RemoteException
- If communication with server fails.CheckpointServer.storeReply(org.objectweb.proactive.core.UniqueID, org.objectweb.proactive.core.body.reply.Reply)
protected void internalRecover(UniqueID failed)
public void outputCommit(MessageInfo mi) throws java.rmi.RemoteException
CheckpointServer
mi
- the message information linked to the message that is sent to the outside world
java.rmi.RemoteException
CheckpointServer.outputCommit(org.objectweb.proactive.core.body.ft.message.MessageInfo)
public void initialize() throws java.rmi.RemoteException
initialize
in interface CheckpointServer
initialize
in class CheckpointServerImpl
java.rmi.RemoteException
CheckpointServer.initialize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |