public class LatencyServer extends DefaultRecoverable
Constructor and Description |
---|
LatencyServer(int id,
int interval,
int replySize) |
Modifier and Type | Method and Description |
---|---|
byte[][] |
appExecuteBatch(byte[][] commands,
MessageContext[] msgCtxs) |
byte[] |
execute(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, executeBatch, getState, getStateManager, noOp, saveCommands, setReplicaContext, setState
public byte[] executeUnordered(byte[] command, MessageContext msgCtx)
Executable
command
- the command issue by the clientmsgCtx
- information related with the commandpublic byte[][] appExecuteBatch(byte[][] commands, MessageContext[] msgCtxs)
appExecuteBatch
in class DefaultRecoverable
public byte[] execute(byte[] command, MessageContext msgCtx)
public static void main(java.lang.String[] args)
public void installSnapshot(byte[] state)
installSnapshot
in class DefaultRecoverable
public byte[] getSnapshot()
getSnapshot
in class DefaultRecoverable