Class ClientData


  • public class ClientData
    extends java.lang.Object
    • Field Detail

      • MAX_SIZE_ORDERED_REQUESTS

        public static final int MAX_SIZE_ORDERED_REQUESTS
        See Also:
        Constant Field Values
    • Constructor Detail

      • ClientData

        public ClientData​(int clientId,
                          java.security.PublicKey publicKey)
        Class constructor. Just store the clientId and creates a signature verificator for a given client public key.
        Parameters:
        clientId - client unique id
        publicKey - client public key
    • 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)