public class YCSBServer extends DefaultRecoverable
Modifier and Type | Method and Description |
---|---|
byte[][] |
appExecuteBatch(byte[][] commands,
MessageContext[] msgCtx) |
byte[] |
executeUnordered(byte[] theCommand,
MessageContext theContext)
Method called to execute a request totally ordered.
|
byte[] |
getSnapshot() |
void |
installSnapshot(byte[] state) |
static void |
main(java.lang.String[] args) |
computeHash, executeBatch, getState, getStateManager, noOp, saveCommands, setReplicaContext, setState
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public byte[][] appExecuteBatch(byte[][] commands, MessageContext[] msgCtx)
appExecuteBatch
in class DefaultRecoverable
public byte[] executeUnordered(byte[] theCommand, MessageContext theContext)
Executable
theCommand
- the command issue by the clienttheContext
- information related with the commandpublic void installSnapshot(byte[] state)
installSnapshot
in class DefaultRecoverable
public byte[] getSnapshot()
getSnapshot
in class DefaultRecoverable