Package bftsmart.tom.client
Class NormalRequestHandler
- java.lang.Object
-
- bftsmart.tom.client.AbstractRequestHandler
-
- bftsmart.tom.client.NormalRequestHandler
-
public class NormalRequestHandler extends AbstractRequestHandler
-
-
Field Summary
-
Fields inherited from class bftsmart.tom.client.AbstractRequestHandler
logger, me, operationId, replies, replyQuorumSize, replySenders, requestType, sequenceId, session, viewId
-
-
Constructor Summary
Constructors Constructor Description NormalRequestHandler(int me, int session, int sequenceId, int operationId, int viewId, TOMMessageType requestType, int timeout, int[] replicas, int replyQuorumSize, java.util.Comparator<byte[]> comparator, Extractor responseExtractor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TOMMessage
createRequest(byte[] request)
void
printState()
TOMMessage
processReply(TOMMessage reply, int lastSenderIndex)
-
Methods inherited from class bftsmart.tom.client.AbstractRequestHandler
getNumberReceivedReplies, getReplyQuorumSize, getResponse, getSequenceId, isRequestTimeout, processReply, waitForResponse
-
-
-
-
Constructor Detail
-
NormalRequestHandler
public NormalRequestHandler(int me, int session, int sequenceId, int operationId, int viewId, TOMMessageType requestType, int timeout, int[] replicas, int replyQuorumSize, java.util.Comparator<byte[]> comparator, Extractor responseExtractor)
-
-
Method Detail
-
createRequest
public TOMMessage createRequest(byte[] request)
- Specified by:
createRequest
in classAbstractRequestHandler
-
processReply
public TOMMessage processReply(TOMMessage reply, int lastSenderIndex)
- Specified by:
processReply
in classAbstractRequestHandler
-
printState
public void printState()
- Specified by:
printState
in classAbstractRequestHandler
-
-