org.ow2.jonas.lib.management.extensions.server
Class ServerMonitoring

java.lang.Object
  extended by org.ow2.jonas.lib.management.extensions.base.BaseManagement
      extended by org.ow2.jonas.lib.management.extensions.server.ServerMonitoring
All Implemented Interfaces:
IBaseManagement, IServer

public class ServerMonitoring
extends BaseManagement
implements IServer

Provides informations about a server in the domain. General information or server statistics are based on the corresponding ServerProxy object.

Author:
Adriana Danes, THOMAS KOUASSI

Field Summary
 
Fields inherited from class org.ow2.jonas.lib.management.extensions.base.BaseManagement
logger, s_Synchro
 
Constructor Summary
ServerMonitoring()
          Constructor.
 
Method Summary
 int getAllThreadsCount(String serverName)
          Get the number of threads used by a server in the domain.
 String getAutoBoot(String serverName)
          Get the Auto boot used by the server
 long getBytesReceivedByConnectorTomcat(String serverName)
           
 long getBytesSentByConnectorTomcat(String serverName)
           
 int getConnectionFailuresJCAConnection(String serverName)
           
 int getConnectionFailuresJDBCResource(String serverName)
           
 int getConnectionLeaksJCAConnection(String serverName)
           
 int getConnectionLeaksJDBCResource(String serverName)
           
 String getConnectionUrl(String serverName)
          Get the JMX connection URL of a server in the domain.
 int getCurrentBusyJCAConnection(String serverName)
           
 int getCurrentBusyJDBCResource(String serverName)
           
 int getCurrentNumberOfEJB(String serverName)
           
 int getCurrentNumberOfEntityBean(String serverName)
           
 int getCurrentNumberOfMDB(String serverName)
           
 int getCurrentNumberOfSBF(String serverName)
           
 int getCurrentNumberOfSBL(String serverName)
           
 int getCurrentOpenedJCAConnection(String serverName)
           
 int getCurrentOpenedJDBCResource(String serverName)
           
 int getCurrentThreadBusyByConnectorTomcat(String serverName)
           
 int getCurrentThreadCountByConnectorTomcat(String serverName)
           
 Long getCurrentTotalMemory(String serverName)
          Get the total memory of the server in the domain.
 long getCurrentUsedMemory(String serverName)
          Get the memory used by a server in the domain.
 int getCurrentWorkerPoolSize(String serverName)
           
 String getDescription(String serverName)
          Get the Description
 int getErrorCountByConnectorTomcat(String serverName)
           
 String getHostName(String serverName)
           
 String getJ2eeObjectName(String serverName)
           
 String getJavaHome(String serverName)
          Get the Java home
 String getJavaVendor(String serverName)
          Get the JVM vendor.
 String getJavaVersion(String serverName)
          Get the java version.
 boolean getJcaConnection(String serverName)
           
 boolean getJdbcDatasource(String serverName)
           
 boolean getJmsJoram(String serverName)
           
 int getJmsQueuesNbMsgsDeliverSinceCreation(String serverName)
           
 int getJmsQueuesNbMsgsReceiveSinceCreation(String serverName)
           
 int getJmsQueuesNbMsgsSendToDMQSinceCreation(String serverName)
           
 int getJmsTopicsNbMsgsDeliverSinceCreation(String serverName)
           
 int getJmsTopicsNbMsgsReceiveSinceCreation(String serverName)
           
 int getJmsTopicsNbMsgsSendToDMQSinceCreation(String serverName)
           
 String getJonasBase(String serverName)
          Get the Jonas Base used by the server
 String getJonasRoot(String serverName)
          Get the Jonas Root used by the server
 String getJOnASVersion(String serverName)
           
 String getLoadCPU(String serverName)
           
 int getMaxThreadsByConnectorTomcat(String serverName)
           
 int getMaxWorkerPoolSize(String serverName)
           
 int getMinWorkerPoolSize(String serverName)
           
 long getProcessingTimeByConnectorTomcat(String serverName)
           
 String getProtocols(String serverName)
          Get the the protocols used bye the server.
 int getRejectedOpenJCAConnection(String serverName)
           
 int getRejectedOpenJDBCResource(String serverName)
           
 int getRequestCountByConnectorTomcat(String serverName)
           
 int getServedOpenJCAConnection(String serverName)
           
 int getServedOpenJDBCResource(String serverName)
           
 String getServerVersion(String serverName)
          Return the version of a server in the domain.
 boolean getTomcat(String serverName)
           
 int getTotalBegunTransactions(String serverName)
           
 int getTotalCommittedTransactions(String serverName)
           
 int getTotalCurrentTransactions(String serverName)
           
 int getTotalExpiredTransactions(String serverName)
           
 int getTotalRolledbackTransactions(String serverName)
           
 boolean getTransaction(String serverName)
           
 int getWaiterCountJCAConnection(String serverName)
           
 int getWaiterCountJDBCResource(String serverName)
           
 long getWaitingTimeJCAConnection(String serverName)
           
 long getWaitingTimeJDBCResource(String serverName)
           
 boolean getWorkers(String serverName)
           
 String getXprem(String serverName)
          Get the Xprem used by the server
 
Methods inherited from class org.ow2.jonas.lib.management.extensions.base.BaseManagement
addRealmItem, getAttribute, getAttributes, getDomainName, getInstance, getIntegerAttribute, getKeyValue, getKeyValues, getListMbean, getRealmItems, getRealmItems, getServerConnection, getServerConnection, getServerName, getStringAttribute, getTomcatRealm, getTomcatRealmItems, invoke, isRegistered, setAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerMonitoring

public ServerMonitoring()
Constructor.

Method Detail

getServerVersion

public String getServerVersion(String serverName)
Return the version of a server in the domain.

Specified by:
getServerVersion in interface IServer
Parameters:
serverName - the name of the server.
Returns:
the server's version

getConnectionUrl

public String getConnectionUrl(String serverName)
Get the JMX connection URL of a server in the domain.

Specified by:
getConnectionUrl in interface IServer
Parameters:
serverName - the server's name.
Returns:
the JMX connection URL of the server

getCurrentUsedMemory

public long getCurrentUsedMemory(String serverName)
Get the memory used by a server in the domain.

Specified by:
getCurrentUsedMemory in interface IServer
Parameters:
serverName - the server's name.
Returns:
the used memory

getAllThreadsCount

public int getAllThreadsCount(String serverName)
Get the number of threads used by a server in the domain.

Specified by:
getAllThreadsCount in interface IServer
Parameters:
serverName - the server's name.
Returns:
the number of threads

getBytesReceivedByConnectorTomcat

public long getBytesReceivedByConnectorTomcat(String serverName)
Specified by:
getBytesReceivedByConnectorTomcat in interface IServer
Parameters:
serverName - Server name
Returns:
bytes received by connector tomcat.

getBytesSentByConnectorTomcat

public long getBytesSentByConnectorTomcat(String serverName)
Specified by:
getBytesSentByConnectorTomcat in interface IServer
Parameters:
serverName - Server name
Returns:
bytes sent by connector tomcat.

getCurrentNumberOfEntityBean

public int getCurrentNumberOfEntityBean(String serverName)
Specified by:
getCurrentNumberOfEntityBean in interface IServer
Parameters:
serverName - Server name
Returns:
current number of Entity bean.

getCurrentNumberOfEJB

public int getCurrentNumberOfEJB(String serverName)
Specified by:
getCurrentNumberOfEJB in interface IServer
Parameters:
serverName - Server name
Returns:
current number of EJB.

getCurrentNumberOfMDB

public int getCurrentNumberOfMDB(String serverName)
Specified by:
getCurrentNumberOfMDB in interface IServer
Parameters:
serverName - Server name
Returns:
current number of message driven bean.

getCurrentNumberOfSBF

public int getCurrentNumberOfSBF(String serverName)
Specified by:
getCurrentNumberOfSBF in interface IServer
Parameters:
serverName - Server name
Returns:
current number of state full bean.

getCurrentNumberOfSBL

public int getCurrentNumberOfSBL(String serverName)
Specified by:
getCurrentNumberOfSBL in interface IServer
Parameters:
serverName - Server name
Returns:
current number of state less bean.

getCurrentThreadBusyByConnectorTomcat

public int getCurrentThreadBusyByConnectorTomcat(String serverName)
Specified by:
getCurrentThreadBusyByConnectorTomcat in interface IServer
Parameters:
serverName - Server name
Returns:
current threads busy by connector tomcat.

getCurrentThreadCountByConnectorTomcat

public int getCurrentThreadCountByConnectorTomcat(String serverName)
Specified by:
getCurrentThreadCountByConnectorTomcat in interface IServer
Parameters:
serverName - Server name
Returns:
current threads count by tomcat connector

getCurrentTotalMemory

public Long getCurrentTotalMemory(String serverName)
Get the total memory of the server in the domain.

Specified by:
getCurrentTotalMemory in interface IServer
Parameters:
serverName - the server's name.
Returns:
the total memory

getErrorCountByConnectorTomcat

public int getErrorCountByConnectorTomcat(String serverName)
Specified by:
getErrorCountByConnectorTomcat in interface IServer
Parameters:
serverName - Server name
Returns:
error count by connector tomcat.

getJavaVendor

public String getJavaVendor(String serverName)
Get the JVM vendor.

Specified by:
getJavaVendor in interface IServer
Parameters:
serverName - the server's name.
Returns:
the JVM vendor

getJavaVersion

public String getJavaVersion(String serverName)
Get the java version.

Specified by:
getJavaVersion in interface IServer
Parameters:
serverName - the server's name.
Returns:
the java version

getMaxThreadsByConnectorTomcat

public int getMaxThreadsByConnectorTomcat(String serverName)
Specified by:
getMaxThreadsByConnectorTomcat in interface IServer
Parameters:
serverName - Server name
Returns:
the max threads by connector tomcat.

getProcessingTimeByConnectorTomcat

public long getProcessingTimeByConnectorTomcat(String serverName)
Specified by:
getProcessingTimeByConnectorTomcat in interface IServer
Parameters:
serverName - Server name
Returns:
processing time by connector tomcat.

getProtocols

public String getProtocols(String serverName)
Get the the protocols used bye the server.

Specified by:
getProtocols in interface IServer
Parameters:
serverName - the server's name.
Returns:
the protocols used bye the server

getRequestCountByConnectorTomcat

public int getRequestCountByConnectorTomcat(String serverName)
Specified by:
getRequestCountByConnectorTomcat in interface IServer
Parameters:
serverName - Server name
Returns:
request count by connector tomcat.

getTotalBegunTransactions

public int getTotalBegunTransactions(String serverName)
Specified by:
getTotalBegunTransactions in interface IServer
Parameters:
serverName - Server name
Returns:
total begun transactions.

getTotalCommittedTransactions

public int getTotalCommittedTransactions(String serverName)
Specified by:
getTotalCommittedTransactions in interface IServer
Parameters:
serverName - Server name
Returns:
total commited transactions.

getTotalCurrentTransactions

public int getTotalCurrentTransactions(String serverName)
Specified by:
getTotalCurrentTransactions in interface IServer
Parameters:
serverName - Server name
Returns:
total current transactions.

getTotalExpiredTransactions

public int getTotalExpiredTransactions(String serverName)
Specified by:
getTotalExpiredTransactions in interface IServer
Parameters:
serverName - Server name
Returns:
total expired transactions.

getTotalRolledbackTransactions

public int getTotalRolledbackTransactions(String serverName)
Specified by:
getTotalRolledbackTransactions in interface IServer
Parameters:
serverName - Server name
Returns:
total global transactions.

getDescription

public String getDescription(String serverName)
Description copied from interface: IServer
Get the Description

Specified by:
getDescription in interface IServer
Returns:
the description

getJavaHome

public String getJavaHome(String serverName)
Description copied from interface: IServer
Get the Java home

Specified by:
getJavaHome in interface IServer
Returns:
the javaHome

getJonasRoot

public String getJonasRoot(String serverName)
Description copied from interface: IServer
Get the Jonas Root used by the server

Specified by:
getJonasRoot in interface IServer
Returns:
the jonasRoot

getJonasBase

public String getJonasBase(String serverName)
Description copied from interface: IServer
Get the Jonas Base used by the server

Specified by:
getJonasBase in interface IServer
Returns:
the jonasBase

getXprem

public String getXprem(String serverName)
Description copied from interface: IServer
Get the Xprem used by the server

Specified by:
getXprem in interface IServer
Returns:
the xprem

getAutoBoot

public String getAutoBoot(String serverName)
Description copied from interface: IServer
Get the Auto boot used by the server

Specified by:
getAutoBoot in interface IServer
Returns:
the autoBoot

getJ2eeObjectName

public String getJ2eeObjectName(String serverName)

getConnectionFailuresJCAConnection

public int getConnectionFailuresJCAConnection(String serverName)

getConnectionLeaksJCAConnection

public int getConnectionLeaksJCAConnection(String serverName)

getCurrentBusyJCAConnection

public int getCurrentBusyJCAConnection(String serverName)

getCurrentWorkerPoolSize

public int getCurrentWorkerPoolSize(String serverName)

getCurrentOpenedJCAConnection

public int getCurrentOpenedJCAConnection(String serverName)

getWaiterCountJCAConnection

public int getWaiterCountJCAConnection(String serverName)

getWaitingTimeJCAConnection

public long getWaitingTimeJCAConnection(String serverName)

getTomcat

public boolean getTomcat(String serverName)

getTransaction

public boolean getTransaction(String serverName)

getWorkers

public boolean getWorkers(String serverName)

getMaxWorkerPoolSize

public int getMaxWorkerPoolSize(String serverName)

getMinWorkerPoolSize

public int getMinWorkerPoolSize(String serverName)

getConnectionFailuresJDBCResource

public int getConnectionFailuresJDBCResource(String serverName)

getConnectionLeaksJDBCResource

public int getConnectionLeaksJDBCResource(String serverName)

getCurrentBusyJDBCResource

public int getCurrentBusyJDBCResource(String serverName)

getCurrentOpenedJDBCResource

public int getCurrentOpenedJDBCResource(String serverName)

getRejectedOpenJDBCResource

public int getRejectedOpenJDBCResource(String serverName)

getServedOpenJDBCResource

public int getServedOpenJDBCResource(String serverName)

getWaiterCountJDBCResource

public int getWaiterCountJDBCResource(String serverName)

getWaitingTimeJDBCResource

public long getWaitingTimeJDBCResource(String serverName)

getServedOpenJCAConnection

public int getServedOpenJCAConnection(String serverName)

getRejectedOpenJCAConnection

public int getRejectedOpenJCAConnection(String serverName)

getJcaConnection

public boolean getJcaConnection(String serverName)

getJdbcDatasource

public boolean getJdbcDatasource(String serverName)

getJmsJoram

public boolean getJmsJoram(String serverName)

getJmsQueuesNbMsgsDeliverSinceCreation

public int getJmsQueuesNbMsgsDeliverSinceCreation(String serverName)

getJmsQueuesNbMsgsReceiveSinceCreation

public int getJmsQueuesNbMsgsReceiveSinceCreation(String serverName)

getJmsQueuesNbMsgsSendToDMQSinceCreation

public int getJmsQueuesNbMsgsSendToDMQSinceCreation(String serverName)

getJmsTopicsNbMsgsDeliverSinceCreation

public int getJmsTopicsNbMsgsDeliverSinceCreation(String serverName)

getJmsTopicsNbMsgsReceiveSinceCreation

public int getJmsTopicsNbMsgsReceiveSinceCreation(String serverName)

getJmsTopicsNbMsgsSendToDMQSinceCreation

public int getJmsTopicsNbMsgsSendToDMQSinceCreation(String serverName)

getHostName

public String getHostName(String serverName)
Specified by:
getHostName in interface IServer
Returns:
host name

getJOnASVersion

public String getJOnASVersion(String serverName)

getLoadCPU

public String getLoadCPU(String serverName)


Copyright © 2010 OW2 Consortium. All Rights Reserved.