Interface TcpConnectionMBean
-
- All Known Implementing Classes:
TcpConnection
public interface TcpConnectionMBeanAdds JMX monitoring for a tcp connection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the connection and unregisters the MBean.intgetAckedQueueSize()Gets the AckedQueue size.StringgetAddress()Gets the socket address used by the connection.DategetCreationDate()Gets connection creation date.intgetQueueWorkerSize()Gets the QueueWorker size.intgetReaderQueueSize()Gets the ReaderQueue size.longgetReceivedCount()Gets the number of replies received on the connection.longgetSentCount()Gets the number of requests sent on the connection.StringgetUserName()Gets connected user's name.
-
-
-
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.
-
-