Package com.groiss.server
Interface ServerInfoMXBean
public interface ServerInfoMXBean
JMX bean to get some server info.
It is being registered under the
ObjectName
"com.groiss.server:type=ServerInfo".
Please be aware that some of the calls might start a transaction, access the database and could take some time. Transaction handling is being taken care of automatically.
-
Method Summary
Modifier and TypeMethodDescriptionGet the number of active user sessions for all nodes.Get the number of busy HTTP threads of this node.Get the number of concurrent user sessions for all nodes.Get the number of configured database connections of this node.Get the current date of this node.Determine if this node is the cluster timer node.Get the number of configured HTTP threads of this node.Get the number of active user sessions for this node.Get the node id of this node.Get the id of the server.Get the start date of this node.Get the number of used database connections of this node.Get the version of @enterprise at this node.
-
Method Details
-
getVersion
String getVersion()Get the version of @enterprise at this node.- Returns:
- the version of @enterprise at this node
-
getCurrentDate
Date getCurrentDate()Get the current date of this node.- Returns:
- the current date of this node
-
getConfiguredDBConnectionCount
Integer getConfiguredDBConnectionCount()Get the number of configured database connections of this node.- Returns:
- the number of configured database connections of this node
-
getUsedDBConnectionCount
Integer getUsedDBConnectionCount()Get the number of used database connections of this node.- Returns:
- the number of used database connections of this node
-
getActiveUserSessionCount
Integer getActiveUserSessionCount()Get the number of active user sessions for all nodes.- Returns:
- the number of active user sessions for all nodes
-
getNodeActiveUserSessionCount
Integer getNodeActiveUserSessionCount()Get the number of active user sessions for this node.- Returns:
- the number of active user sessions for this node
-
getConcurrentUserSessionCount
Integer getConcurrentUserSessionCount()Get the number of concurrent user sessions for all nodes.- Returns:
- the number of concurrent user sessions for all nodes
-
getMaxThreadCount
Integer getMaxThreadCount()Get the number of configured HTTP threads of this node. Is not available when running within an application server.- Returns:
- the number of configured HTTP threads of this node, or 0 if this info is not available
-
getBusyThreadCount
Integer getBusyThreadCount()Get the number of busy HTTP threads of this node. Is not available when running within an application server.- Returns:
- the number of busy HTTP threads of this node, or 0 if this info is not available
-
getStartDate
Date getStartDate()Get the start date of this node.- Returns:
- the start date of this node.
-
getNodeId
String getNodeId()Get the node id of this node.- Returns:
- the node id of this node. If the system is not clustered, null is returned.
-
getIsClusterTimerNode
Boolean getIsClusterTimerNode()Determine if this node is the cluster timer node.- Returns:
- if this node is the cluster timer node.
-
getServerId
String getServerId()Get the id of the server.- Returns:
- the id of the server.
-