Interface EndpointMXBean
-
- All Superinterfaces:
BaseMXBean,MessageStatisticsMXBean,java.io.Serializable
@Beta public interface EndpointMXBean extends BaseMXBean
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:
MessageStatisticsMXBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetEndpointClassName()Get the class name of the endpoint.java.lang.StringgetEndpointPath()Get the path the endpoint is registered on.intgetMaximalOpenSessionsCount()Get the maximal number of open sessions on the endpoint since the start of monitoring.intgetOpenSessionsCount()Get the number of sessions currently open on the endpoint.java.util.List<SessionMXBean>getSessionMXBeans()Get list of MXBeans representing currently open sessions.-
Methods inherited from interface org.glassfish.tyrus.ext.monitoring.jmx.BaseMXBean
getBinaryMessageStatisticsMXBean, getControlMessageStatisticsMXBean, getErrorCounts, getTextMessageStatisticsMXBean
-
Methods inherited from interface org.glassfish.tyrus.ext.monitoring.jmx.MessageStatisticsMXBean
getAverageReceivedMessageSize, getAverageSentMessageSize, getMaximalReceivedMessageSize, getMaximalSentMessageSize, getMinimalReceivedMessageSize, getMinimalSentMessageSize, getReceivedMessagesCount, getReceivedMessagesCountPerSecond, getSentMessagesCount, getSentMessagesCountPerSecond
-
-
-
-
Method Detail
-
getEndpointPath
java.lang.String getEndpointPath()
Get the path the endpoint is registered on.- Returns:
- path of the endpoint.
-
getEndpointClassName
java.lang.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
java.util.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.
-
-