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
 java.lang.Integer getActiveUserSessionCount()
          Get the number of active user sessions for all nodes.
 java.lang.Integer getBusyThreadCount()
          Get the number of busy HTTP threads.
 java.lang.Integer getConcurrentUserSessionCount()
          Get the number of concurrent user sessions.
 java.lang.Integer getConfiguredDBConnectionCount()
          Get the number of configured database connections.
 java.util.Date getCurrentDate()
          Get the current date
 java.lang.Boolean getIsClusterTimerNode()
          Determine if this node is the cluster timer node.
 java.lang.Integer getMaxThreadCount()
          Get the number of configured HTTP threads.
 java.lang.Integer getNodeActiveUserSessionCount()
          Get the number of active user sessions for this node.
 java.lang.String getNodeId()
          Get the node id of the node.
 java.lang.String getServerId()
          Get the id of the server.
 java.util.Date getStartDate()
          Get the start date of the node.
 java.lang.Integer getUsedDBConnectionCount()
          Get the number of used database connections.
 java.lang.String getVersion()
          Get the version of @enterprise.
 

Method Detail

getVersion

java.lang.String getVersion()
Get the version of @enterprise.

Returns:
the version of @enterprise

getCurrentDate

java.util.Date getCurrentDate()
Get the current date

Returns:
the current date

getConfiguredDBConnectionCount

java.lang.Integer getConfiguredDBConnectionCount()
Get the number of configured database connections.

Returns:
the number of configured database connections

getUsedDBConnectionCount

java.lang.Integer getUsedDBConnectionCount()
Get the number of used database connections.

Returns:
the number of used database connections

getActiveUserSessionCount

java.lang.Integer getActiveUserSessionCount()
Get the number of active user sessions for all nodes.

Returns:
the number of active user sessions for all nodes.

getNodeActiveUserSessionCount

java.lang.Integer getNodeActiveUserSessionCount()
Get the number of active user sessions for this node.

Returns:
the number of active user sessions for this node.

getConcurrentUserSessionCount

java.lang.Integer getConcurrentUserSessionCount()
Get the number of concurrent user sessions.

Returns:
the number of concurrent user sessions (for all nodes).

getMaxThreadCount

java.lang.Integer getMaxThreadCount()
Get the number of configured HTTP threads. Is not available when running within an application server.

Returns:
the number of configured HTTP threads, or 0 if this info is not available.

getBusyThreadCount

java.lang.Integer getBusyThreadCount()
Get the number of busy HTTP threads. Is not available when running within an application server.

Returns:
the number of busy HTTP threads. Is not available when running within an application server.

getStartDate

java.util.Date getStartDate()
Get the start date of the node.

Returns:
the start date of the node.

getNodeId

java.lang.String getNodeId()
Get the node id of the node.

Returns:
the node id of the node. If the system is not clustered, null is returned.

getIsClusterTimerNode

java.lang.Boolean getIsClusterTimerNode()
Determine if this node is the cluster timer node.

Returns:
if this node is the cluster timer node.

getServerId

java.lang.String getServerId()
Get the id of the server.

Returns:
the id of the server.


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.