public class BFTMapServer extends DefaultSingleRecoverable
replicaContext
Constructor and Description |
---|
BFTMapServer(int id) |
Modifier and Type | Method and Description |
---|---|
byte[] |
appExecuteOrdered(byte[] command,
MessageContext msgCtx) |
byte[] |
executeUnordered(byte[] command,
MessageContext msgCtx)
Method called to execute a request totally ordered.
|
byte[] |
getSnapshot() |
void |
installSnapshot(byte[] state) |
static void |
main(java.lang.String[] args) |
computeHash, executeOrdered, getState, getStateManager, initLog, noOp, setReplicaContext, setState
public static void main(java.lang.String[] args)
public byte[] appExecuteOrdered(byte[] command, MessageContext msgCtx)
appExecuteOrdered
in class DefaultSingleRecoverable
public byte[] executeUnordered(byte[] command, MessageContext msgCtx)
Executable
command
- the command issue by the clientmsgCtx
- information related with the commandpublic byte[] getSnapshot()
getSnapshot
in class DefaultSingleRecoverable
public void installSnapshot(byte[] state)
installSnapshot
in class DefaultSingleRecoverable