public final class ThroughputLatencyServer extends DefaultRecoverable
Constructor and Description |
---|
ThroughputLatencyServer(int id,
int interval,
int replySize,
int stateSize,
boolean context) |
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 ThroughputLatencyServer(int id, int interval, int replySize, int stateSize, boolean context)
public byte[][] appExecuteBatch(byte[][] commands, MessageContext[] msgCtxs)
appExecuteBatch
in class DefaultRecoverable
public byte[] executeUnordered(byte[] command, MessageContext msgCtx)
Executable
command
- the command issue by the clientmsgCtx
- information related with the commandpublic 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