Interface TcpConnectionMBean

  • All Known Implementing Classes:
    TcpConnection

    public interface TcpConnectionMBean
    Adds JMX monitoring for a tcp connection.
    • Method Detail

      • getAddress

        String getAddress()
        Gets the socket address used by the connection.
        Returns:
        the connection's socket address.
      • getUserName

        String getUserName()
        Gets connected user's name.
        Returns:
        the name of the connected user.
      • getCreationDate

        Date getCreationDate()
        Gets connection creation date.
        Returns:
        the date of creation of the connection.
      • close

        void close()
        Closes the connection and unregisters the MBean.
      • getSentCount

        long getSentCount()
        Gets the number of requests sent on the connection.
        Returns:
        the number of requests sent on the connection.
      • getReceivedCount

        long getReceivedCount()
        Gets the number of replies received on the connection.
        Returns:
        the number of replies received on the connection.
      • getAckedQueueSize

        int getAckedQueueSize()
        Gets the AckedQueue size.
        Returns:
        the size of AckedQueue.
      • getQueueWorkerSize

        int getQueueWorkerSize()
        Gets the QueueWorker size.
        Returns:
        the size of QueueWorker.
      • getReaderQueueSize

        int getReaderQueueSize()
        Gets the ReaderQueue size.
        Returns:
        the size of ReaderQueue.