Interface EndpointMXBean
- All Superinterfaces:
BaseMXBean,MessageStatisticsMXBean,Serializable
MXBean used for accessing monitored endpoint properties - endpoint path and class name, number of currently open
sessions, maximal number of open sessions since the start of monitoring, and message statistics.
- Author:
- Petr Janouch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGet the class name of the endpoint.Get the path the endpoint is registered on.intGet the maximal number of open sessions on the endpoint since the start of monitoring.intGet the number of sessions currently open on the endpoint.Get list of MXBeans representing currently open sessions.Methods inherited from interface org.glassfish.tyrus.ext.monitoring.jmx.BaseMXBean
getBinaryMessageStatisticsMXBean, getControlMessageStatisticsMXBean, getErrorCounts, getTextMessageStatisticsMXBeanMethods inherited from interface org.glassfish.tyrus.ext.monitoring.jmx.MessageStatisticsMXBean
getAverageReceivedMessageSize, getAverageSentMessageSize, getMaximalReceivedMessageSize, getMaximalSentMessageSize, getMinimalReceivedMessageSize, getMinimalSentMessageSize, getReceivedMessagesCount, getReceivedMessagesCountPerSecond, getSentMessagesCount, getSentMessagesCountPerSecond
-
Method Details
-
getEndpointPath
String getEndpointPath()Get the path the endpoint is registered on.- Returns:
- path of the endpoint.
-
getEndpointClassName
String getEndpointClassName()Get the class name of the endpoint.- Returns:
- the class name of the endpoint.
-
getOpenSessionsCount
int getOpenSessionsCount()Get the number of sessions currently open on the endpoint.- Returns:
- the number of sessions currently open on the endpoint.
-
getMaximalOpenSessionsCount
int getMaximalOpenSessionsCount()Get the maximal number of open sessions on the endpoint since the start of monitoring.- Returns:
- the maximal number of open sessions on the endpoint since the start of monitoring.
-
getSessionMXBeans
List<SessionMXBean> getSessionMXBeans()Get list of MXBeans representing currently open sessions. Return an empty list if monitoring is conducted only on endpoint level.- Returns:
- list of MXBeans representing currently open sessions.
-