public interface Recoverable
Modifier and Type | Method and Description |
---|---|
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.
|
void |
noOp(int lastEid) |
void |
setReplicaContext(ReplicaContext replicaContext) |
int |
setState(ApplicationState state)
Sets the state to the representation obtained in the state transfer protocol
|
void setReplicaContext(ReplicaContext replicaContext)
ApplicationState getState(int eid, boolean sendState)
eid
- 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 otherwiseint setState(ApplicationState state)
eid
- Execution up to which the state is completestate
- State obtained in the state transfer protocolStateManager getStateManager()
void noOp(int lastEid)