public abstract class FIFOExecutableRecoverable extends java.lang.Object implements Recoverable, FIFOExecutable
| Modifier and Type | Field and Description |
|---|---|
static int |
CHECKPOINT_PERIOD |
| Constructor and Description |
|---|
FIFOExecutableRecoverable() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
computeHash(byte[] data) |
byte[] |
executeOrderedFIFO(byte[] command,
MessageContext msgCtx,
int clientId,
int operationId) |
byte[] |
executeUnorderedFIFO(byte[] command,
MessageContext msgCtx,
int clientId,
int operationId) |
abstract byte[] |
getSnapshot() |
ApplicationState |
getState(int eid,
boolean sendState)
This method should return a representation of the application state
|
StateManager |
getStateManager()
Recoverers implementing this interface will have to chose among
different options of state managers like DurableStateManager or
StandardStateManager.
|
abstract void |
installSnapshot(byte[] state) |
int |
setState(ApplicationState recvState)
Sets the state to the representation obtained in the state transfer protocol
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetReplicaContextexecuteOrderedexecuteUnorderedpublic static final int CHECKPOINT_PERIOD
public byte[] executeOrderedFIFO(byte[] command,
MessageContext msgCtx,
int clientId,
int operationId)
executeOrderedFIFO in interface FIFOExecutablepublic byte[] executeUnorderedFIFO(byte[] command,
MessageContext msgCtx,
int clientId,
int operationId)
executeUnorderedFIFO in interface FIFOExecutablepublic final byte[] computeHash(byte[] data)
public ApplicationState getState(int eid, boolean sendState)
RecoverablegetState in interface Recoverableeid - Execution up to which the application should return an Application statesendState - true if the replica should send a complete
representation of the state instead of only the hash. False otherwisepublic int setState(ApplicationState recvState)
RecoverablesetState in interface RecoverablerecvState - State obtained in the state transfer protocolpublic StateManager getStateManager()
RecoverablegetStateManager in interface Recoverablepublic abstract void installSnapshot(byte[] state)
public abstract byte[] getSnapshot()