Package bftsmart.clientsmanagement
Class ClientData
- java.lang.Object
-
- bftsmart.clientsmanagement.ClientData
-
public class ClientData extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_SIZE_ORDERED_REQUESTS
-
Constructor Summary
Constructors Constructor Description ClientData(int clientId, java.security.PublicKey publicKey)
Class constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToReplyStore(TOMMessage m)
int
getClientId()
int
getLastMessageDelivered()
int
getLastMessageReceived()
long
getLastMessageReceivedTime()
TOMMessage
getLastReply()
RequestList
getOrderedRequests()
RequestList
getPendingRequests()
TOMMessage
getReply(int reqSequence)
RequestList
getReplyStore()
int
getSession()
boolean
removeOrderedRequest(TOMMessage request)
boolean
removeRequest(TOMMessage request)
void
setLastMessageDelivered(int lastMessageDelivered)
void
setLastMessageReceived(int lastMessageReceived)
void
setLastMessageReceivedTime(long lastMessageReceivedTime)
void
setSession(int session)
boolean
verifySignature(byte[] message, byte[] signature)
-
-
-
Field Detail
-
MAX_SIZE_ORDERED_REQUESTS
public static final int MAX_SIZE_ORDERED_REQUESTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getClientId
public int getClientId()
-
getSession
public int getSession()
-
setSession
public void setSession(int session)
-
getPendingRequests
public RequestList getPendingRequests()
-
getOrderedRequests
public RequestList getOrderedRequests()
-
setLastMessageDelivered
public void setLastMessageDelivered(int lastMessageDelivered)
-
getLastMessageDelivered
public int getLastMessageDelivered()
-
setLastMessageReceived
public void setLastMessageReceived(int lastMessageReceived)
-
getLastMessageReceived
public int getLastMessageReceived()
-
setLastMessageReceivedTime
public void setLastMessageReceivedTime(long lastMessageReceivedTime)
-
getLastMessageReceivedTime
public long getLastMessageReceivedTime()
-
verifySignature
public boolean verifySignature(byte[] message, byte[] signature)
-
removeOrderedRequest
public boolean removeOrderedRequest(TOMMessage request)
-
removeRequest
public boolean removeRequest(TOMMessage request)
-
getReply
public TOMMessage getReply(int reqSequence)
-
addToReplyStore
public void addToReplyStore(TOMMessage m)
-
getLastReply
public TOMMessage getLastReply()
-
getReplyStore
public RequestList getReplyStore()
-
-