Package bftsmart.tom.server
Interface SingleExecutable
-
- All Superinterfaces:
Executable
- All Known Implementing Classes:
CounterServer
,DefaultSingleRecoverable
,MapServer
,RecoveryTestServer
,SimpleServiceServer
,ThroughputLatencyServer
public interface SingleExecutable extends Executable
Executables that implement this interface will receive client requests individually.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description byte[]
executeOrdered(byte[] command, MessageContext msgCtx)
Method called to execute a request totally ordered.default TOMMessage
executeOrdered(int processID, int viewID, boolean isReplyHash, byte[] command, MessageContext msgCtx)
-
Methods inherited from interface bftsmart.tom.server.Executable
executeUnordered, executeUnordered, getTOMMessage
-
-
-
-
Method Detail
-
executeOrdered
byte[] executeOrdered(byte[] command, MessageContext msgCtx)
Method called to execute a request totally ordered. The message context contains a lot of information about the request, such as timestamp, nonces and sender. The code for this method MUST use the value of timestamp instead of relying on its own local clock, and nonces instead of trying to generated its own random values. This is important because this values are the same for all replicas, and therefore, ensure the determinism required in a replicated state machine.- Parameters:
command
- the command issue by the clientmsgCtx
- information related with the command- Returns:
- the reply for the request issued by the client
-
executeOrdered
default TOMMessage executeOrdered(int processID, int viewID, boolean isReplyHash, byte[] command, MessageContext msgCtx)
-
-