Interface LocalRequestChannelMBean
-
- All Known Implementing Classes:
LocalRequestChannel
public interface LocalRequestChannelMBeanAdds monitoring for a local connection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the connection and unregisters the MBean.DategetCreationDate()Gets connection creation date.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
-
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.
-
-