public class YCSBServer extends DurabilityCoordinator
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) |
executeBatch, getCurrentStateHash, getState, getState, getStateManager, 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 DurabilityCoordinator
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 DurabilityCoordinator
public byte[] getSnapshot()
getSnapshot
in class DurabilityCoordinator