Class ClusterSender

    • Field Detail

      • address

        private String address
        The address.
      • port

        private int port
        The port.
      • avgMessageSize

        private long avgMessageSize
        The avg message size.
      • avgProcessingTime

        private long avgProcessingTime
        The avg processing time.
      • connectCounter

        private long connectCounter
        The connect counter.
      • disconnectCounter

        private long disconnectCounter
        The disconnect counter.
      • connected

        private boolean connected
        The connected.
      • keepAliveTimeout

        private long keepAliveTimeout
        The keep alive timeout.
      • nrOfRequests

        private long nrOfRequests
        The nr of requests.
      • totalBytes

        private long totalBytes
        The total bytes.
      • resend

        private boolean resend
        The resend.
      • suspect

        private boolean suspect
        The suspect.
    • Constructor Detail

      • ClusterSender

        public ClusterSender()
    • Method Detail

      • getAddress

        public String getAddress()
        Gets the address.
        Returns:
        the address
      • setAddress

        public void setAddress​(String address)
        Sets the address.
        Parameters:
        address - the new address
      • getPort

        public int getPort()
        Gets the port.
        Returns:
        the port
      • setPort

        public void setPort​(int port)
        Sets the port.
        Parameters:
        port - the new port
      • getAvgMessageSize

        public long getAvgMessageSize()
        Gets the avg message size.
        Returns:
        the avg message size
      • setAvgMessageSize

        public void setAvgMessageSize​(long avgMessageSize)
        Sets the avg message size.
        Parameters:
        avgMessageSize - the new avg message size
      • getConnectCounter

        public long getConnectCounter()
        Gets the connect counter.
        Returns:
        the connect counter
      • setConnectCounter

        public void setConnectCounter​(long connectCounter)
        Sets the connect counter.
        Parameters:
        connectCounter - the new connect counter
      • getDisconnectCounter

        public long getDisconnectCounter()
        Gets the disconnect counter.
        Returns:
        the disconnect counter
      • setDisconnectCounter

        public void setDisconnectCounter​(long disconnectCounter)
        Sets the disconnect counter.
        Parameters:
        disconnectCounter - the new disconnect counter
      • isConnected

        public boolean isConnected()
        Checks if is connected.
        Returns:
        true, if is connected
      • setConnected

        public void setConnected​(boolean connected)
        Sets the connected.
        Parameters:
        connected - the new connected
      • getKeepAliveTimeout

        public long getKeepAliveTimeout()
        Gets the keep alive timeout.
        Returns:
        the keep alive timeout
      • setKeepAliveTimeout

        public void setKeepAliveTimeout​(long keepAliveTimeout)
        Sets the keep alive timeout.
        Parameters:
        keepAliveTimeout - the new keep alive timeout
      • getNrOfRequests

        public long getNrOfRequests()
        Gets the nr of requests.
        Returns:
        the nr of requests
      • setNrOfRequests

        public void setNrOfRequests​(long nrOfRequests)
        Sets the nr of requests.
        Parameters:
        nrOfRequests - the new nr of requests
      • getTotalBytes

        public long getTotalBytes()
        Gets the total bytes.
        Returns:
        the total bytes
      • setTotalBytes

        public void setTotalBytes​(long totalBytes)
        Sets the total bytes.
        Parameters:
        totalBytes - the new total bytes
      • isResend

        public boolean isResend()
        Checks if is resend.
        Returns:
        true, if is resend
      • setResend

        public void setResend​(boolean resend)
        Sets the resend.
        Parameters:
        resend - the new resend
      • isSuspect

        public boolean isSuspect()
        Checks if is suspect.
        Returns:
        true, if is suspect
      • setSuspect

        public void setSuspect​(boolean suspect)
        Sets the suspect.
        Parameters:
        suspect - the new suspect
      • getAvgProcessingTime

        public long getAvgProcessingTime()
        Gets the avg processing time.
        Returns:
        the avg processing time
      • setAvgProcessingTime

        public void setAvgProcessingTime​(long avgProcessingTime)
        Sets the avg processing time.
        Parameters:
        avgProcessingTime - the new avg processing time