org.objectweb.joram.mom.proxies.tcp
Interface TcpConnectionMBean

All Known Implementing Classes:
TcpConnection

public interface TcpConnectionMBean

Adds JMX monitoring for a tcp connection.


Method Summary
 void close()
          Closes the connection and unregisters the MBean.
 java.lang.String getAddress()
          Gets the socket address used by the connection.
 java.util.Date getCreationDate()
          Gets connection creation date.
 long getReceivedCount()
          Gets the number of replies received on the connection.
 long getSentCount()
          Gets the number of requests sent on the connection.
 java.lang.String getUserName()
          Gets connected user's name.
 

Method Detail

getAddress

java.lang.String getAddress()
Gets the socket address used by the connection.

Returns:
the connection's socket address.

getUserName

java.lang.String getUserName()
Gets connected user's name.

Returns:
the name of the connected user.

getCreationDate

java.util.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.


Copyright © 2011 ScalAgent D.T.. All Rights Reserved.