org.objectweb.jonas.management.monitoring
Class ServerProxy

java.lang.Object
  extended byorg.objectweb.jonas.management.monitoring.JMXProxy
      extended byorg.objectweb.jonas.management.monitoring.ServerProxy
All Implemented Interfaces:
ServerProxyMBean

public class ServerProxy
extends JMXProxy
implements ServerProxyMBean

Implement proxy MBean representing servers in the domain on the master side. Implement state transition diagram.

Author:
Adriana Danes

Field Summary
 
Fields inherited from class org.objectweb.jonas.management.monitoring.JMXProxy
connection, connector, env, FAILED, INITIAL, jmx, logger, name, objectName, RUNNING, serverOn, STARTING, state, STOPPED, STOPPING, UNKNOWN, UNREACHABLE
 
Constructor Summary
ServerProxy(DomainMonitor dm, java.lang.String serverName)
          Constructor used when a server is discovered
ServerProxy(DomainMonitor dm, java.lang.String serverName, java.util.Collection urls, ClusterDaemonProxy cdp)
          Constructor used for a new domain.xml entry
 
Method Summary
 void checkit(boolean readall)
          Check the MBean server connection and possibly change state in UNREACHABLE or FAILED.
 java.lang.String deployModule(java.lang.String fileName)
          Deploy a filename on the Remote Server
 int getAllThreadsCount()
           
 int getBusyMaxJCAConnection()
           
 int getBusyMinJCAConnection()
           
 long getBytesReceivedByConnectorTomcat()
           
 long getBytesSentByConnectorTomcat()
           
 java.lang.String getClusterDaemonName()
           
 int getConnectionFailuresJCAConnection()
           
 int getConnectionLeaksJCAConnection()
           
 int getCurrentBusyJCAConnection()
           
 int getCurrentInTxJCAConnection()
           
 int getCurrentNumberOfBMP()
           
 int getCurrentNumberOfCMP()
           
 int getCurrentNumberOfEBInMemory()
           
 int getCurrentNumberOfEJB()
           
 int getCurrentNumberOfMDB()
           
 int getCurrentNumberOfSBF()
           
 int getCurrentNumberOfSBFInMemory()
           
 int getCurrentNumberOfSBL()
           
 int getCurrentNumberOfSBLInMemory()
           
 int getCurrentOpenedJCAConnection()
           
 int getCurrentThreadBusyByConnectorTomcat()
           
 int getCurrentThreadCountByConnectorTomcat()
           
 java.lang.Long getCurrentTotalMemory()
           
 java.lang.Long getCurrentUsedMemory()
           
 int getCurrentWaitersJCAConnection()
           
 int getCurrentWorkerPoolSize()
           
 int getErrorCountByConnectorTomcat()
           
 java.lang.String getHostName()
           
 int getInitPoolSizeJCAConnection()
           
 java.lang.String getJ2eeObjectName()
           
 java.lang.String getJavaVendor()
           
 java.lang.String getJavaVersion()
           
 int getJmsQueuesNbMsgsDeliverSinceCreation()
           
 int getJmsQueuesNbMsgsReceiveSinceCreation()
           
 int getJmsQueuesNbMsgsSendToDMQSinceCreation()
           
 int getJmsTopicsNbMsgsDeliverSinceCreation()
           
 int getJmsTopicsNbMsgsReceiveSinceCreation()
           
 int getJmsTopicsNbMsgsSendToDMQSinceCreation()
           
 java.lang.String getJOnASVersion()
           
 java.lang.String getLoadCPU()
           
 int getMaxcheck()
           
 int getMaxNumberOfEBInMemory()
           
 int getMaxNumberOfSBFInMemory()
           
 int getMaxNumberOfSBLInMemory()
           
 int getMaxThreadsByConnectorTomcat()
           
 int getMaxWorkerPoolSize()
           
 javax.management.MBeanServer getMbeanServer()
           
 int getMinPoolSizeEB()
           
 int getMinPoolSizeSBF()
           
 int getMinPoolSizeSBL()
           
 int getMinWorkerPoolSize()
           
 void getMonitoringInfo()
          Update non static information for this node.
 int getPhysicalConnectionOpenedCountJCAConnection()
           
 int getPoolMaxOpentimeJCAConnection()
           
 int getPoolMaxSizeJCAConnection()
           
 int getPoolMaxWaitersJCAConnection()
           
 int getPoolMaxWaitTimeJCAConnection()
           
 int getPoolMinSizeJCAConnection()
           
 int getPoolSizeEB()
           
 int getPoolSizeSBF()
           
 int getPoolSizeSBL()
           
 long getProcessingTimeByConnectorTomcat()
           
 java.lang.String getProtocols()
           
 int getPstmtMaxJCAConnection()
           
 int getRejectedFullJCAConnection()
           
 int getRejectedOpenJCAConnection()
           
 int getRejectedOtherJCAConnection()
           
 int getRejectedTimeoutJCAConnection()
           
 int getRequestCountByConnectorTomcat()
           
 java.lang.String getServerName()
           
 javax.management.ObjectName getServerOn()
           
 int getTotalBegunTransactions()
           
 int getTotalCommittedTransactions()
           
 int getTotalCurrentTransactions()
           
 int getTotalExpiredTransactions()
           
 int getTotalRolledbackTransactions()
           
 int getWaiterCountJCAConnection()
           
 int getWaitersHighJCAConnection()
           
 int getWaitersHighRecentJCAConnection()
           
 int getWaitingHighJCAConnection()
           
 int getWaitingHighRecentJCAConnection()
           
 int getWaitingTimeJCAConnection()
           
 int getXaServedOpenJCAConnection()
           
 boolean isTomcat()
           
 void notifyStarting(java.util.Collection urls)
          Notification from discovery: RUNNING
 void notifyStopping()
          Notification from discovery: STOPPING
 void setMaxcheck(int maxcheck)
           
 void setServerOn(javax.management.ObjectName serverOn)
           
 void startit()
          Start the Server discovery notification concerning the represented server
 void stopit()
          Stop the server via the ClusterDaemon
 java.lang.String undeployModule(java.lang.String fileName)
          Undeploy a module on the remote server
 void uploadDeployModule(java.lang.String fileName, boolean replaceExisting)
          Upload a file on remote server and deploy it.
 void uploadFile(java.lang.String fileName, boolean replaceExisting)
          Upload a file on remote server for deployment
 
Methods inherited from class org.objectweb.jonas.management.monitoring.JMXProxy
checkConnection, connect, disconnect, getAttribute, getAttributes, getConnection, getConnectionUrl, getDomain, getName, getObjectName, getServerState, getState, getUrls, isRegistered, queryNames, setObjectName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.jonas.management.monitoring.ServerProxyMBean
getConnectionUrl, getObjectName, getState
 

Constructor Detail

ServerProxy

public ServerProxy(DomainMonitor dm,
                   java.lang.String serverName)
Constructor used when a server is discovered

Parameters:
serverName - the name of the managed server

ServerProxy

public ServerProxy(DomainMonitor dm,
                   java.lang.String serverName,
                   java.util.Collection urls,
                   ClusterDaemonProxy cdp)
Constructor used for a new domain.xml entry

Parameters:
serverName - the name of the managed server
urls - Collection of urls to connect to the server
cdp - possible clusterdaemon
Method Detail

notifyStarting

public void notifyStarting(java.util.Collection urls)
Notification from discovery: RUNNING

Parameters:
urls - for connection

notifyStopping

public void notifyStopping()
Notification from discovery: STOPPING


checkit

public void checkit(boolean readall)
Check the MBean server connection and possibly change state in UNREACHABLE or FAILED.

Parameters:
readall - read all monitoring info if server RUNNING

getJ2eeObjectName

public java.lang.String getJ2eeObjectName()

getServerName

public java.lang.String getServerName()

getServerOn

public javax.management.ObjectName getServerOn()

setServerOn

public void setServerOn(javax.management.ObjectName serverOn)

getClusterDaemonName

public java.lang.String getClusterDaemonName()
Specified by:
getClusterDaemonName in interface ServerProxyMBean

startit

public void startit()
Start the Server discovery notification concerning the represented server

Specified by:
startit in interface ServerProxyMBean

stopit

public void stopit()
Stop the server via the ClusterDaemon

Specified by:
stopit in interface ServerProxyMBean

deployModule

public java.lang.String deployModule(java.lang.String fileName)
Deploy a filename on the Remote Server

Specified by:
deployModule in interface ServerProxyMBean
Parameters:
fileName - Name of the file containing module (or app) to deploy
Returns:
operation state

undeployModule

public java.lang.String undeployModule(java.lang.String fileName)
Undeploy a module on the remote server

Specified by:
undeployModule in interface ServerProxyMBean
Parameters:
fileName - Name of the file containing module (or app) to undeploy
Returns:
operation state

uploadFile

public void uploadFile(java.lang.String fileName,
                       boolean replaceExisting)
Upload a file on remote server for deployment

Specified by:
uploadFile in interface ServerProxyMBean
Parameters:
fileName - file to upload. One among .war,.jar,.ear,.rar
replaceExisting -
Throws:
java.io.IOException

uploadDeployModule

public void uploadDeployModule(java.lang.String fileName,
                               boolean replaceExisting)
Upload a file on remote server and deploy it.

Specified by:
uploadDeployModule in interface ServerProxyMBean
Parameters:
fileName - file to upload. One among .war,.jar,.ear,.rar
replaceExisting -
Throws:
java.io.IOException

getMonitoringInfo

public void getMonitoringInfo()
Update non static information for this node.


getMaxcheck

public int getMaxcheck()
Specified by:
getMaxcheck in interface ServerProxyMBean
Returns:
maximum number of retries when detecting a broken connection

setMaxcheck

public void setMaxcheck(int maxcheck)
Specified by:
setMaxcheck in interface ServerProxyMBean
Parameters:
maxcheck - value for maximum number of retries when detecting a broken connection

getAllThreadsCount

public int getAllThreadsCount()
Specified by:
getAllThreadsCount in interface ServerProxyMBean

getBusyMaxJCAConnection

public int getBusyMaxJCAConnection()
Specified by:
getBusyMaxJCAConnection in interface ServerProxyMBean

getBusyMinJCAConnection

public int getBusyMinJCAConnection()
Specified by:
getBusyMinJCAConnection in interface ServerProxyMBean

getBytesReceivedByConnectorTomcat

public long getBytesReceivedByConnectorTomcat()
Specified by:
getBytesReceivedByConnectorTomcat in interface ServerProxyMBean

getBytesSentByConnectorTomcat

public long getBytesSentByConnectorTomcat()
Specified by:
getBytesSentByConnectorTomcat in interface ServerProxyMBean

getConnectionFailuresJCAConnection

public int getConnectionFailuresJCAConnection()
Specified by:
getConnectionFailuresJCAConnection in interface ServerProxyMBean

getConnectionLeaksJCAConnection

public int getConnectionLeaksJCAConnection()
Specified by:
getConnectionLeaksJCAConnection in interface ServerProxyMBean

getCurrentBusyJCAConnection

public int getCurrentBusyJCAConnection()
Specified by:
getCurrentBusyJCAConnection in interface ServerProxyMBean

getCurrentInTxJCAConnection

public int getCurrentInTxJCAConnection()
Specified by:
getCurrentInTxJCAConnection in interface ServerProxyMBean

getCurrentNumberOfBMP

public int getCurrentNumberOfBMP()
Specified by:
getCurrentNumberOfBMP in interface ServerProxyMBean

getCurrentNumberOfCMP

public int getCurrentNumberOfCMP()
Specified by:
getCurrentNumberOfCMP in interface ServerProxyMBean

getCurrentNumberOfEBInMemory

public int getCurrentNumberOfEBInMemory()
Specified by:
getCurrentNumberOfEBInMemory in interface ServerProxyMBean

getCurrentNumberOfEJB

public int getCurrentNumberOfEJB()
Specified by:
getCurrentNumberOfEJB in interface ServerProxyMBean

getCurrentNumberOfMDB

public int getCurrentNumberOfMDB()
Specified by:
getCurrentNumberOfMDB in interface ServerProxyMBean

getCurrentNumberOfSBF

public int getCurrentNumberOfSBF()
Specified by:
getCurrentNumberOfSBF in interface ServerProxyMBean

getCurrentNumberOfSBFInMemory

public int getCurrentNumberOfSBFInMemory()
Specified by:
getCurrentNumberOfSBFInMemory in interface ServerProxyMBean

getCurrentNumberOfSBL

public int getCurrentNumberOfSBL()
Specified by:
getCurrentNumberOfSBL in interface ServerProxyMBean

getCurrentNumberOfSBLInMemory

public int getCurrentNumberOfSBLInMemory()
Specified by:
getCurrentNumberOfSBLInMemory in interface ServerProxyMBean

getCurrentOpenedJCAConnection

public int getCurrentOpenedJCAConnection()
Specified by:
getCurrentOpenedJCAConnection in interface ServerProxyMBean

getCurrentThreadBusyByConnectorTomcat

public int getCurrentThreadBusyByConnectorTomcat()
Specified by:
getCurrentThreadBusyByConnectorTomcat in interface ServerProxyMBean

getCurrentThreadCountByConnectorTomcat

public int getCurrentThreadCountByConnectorTomcat()
Specified by:
getCurrentThreadCountByConnectorTomcat in interface ServerProxyMBean

getCurrentTotalMemory

public java.lang.Long getCurrentTotalMemory()
Specified by:
getCurrentTotalMemory in interface ServerProxyMBean

getCurrentUsedMemory

public java.lang.Long getCurrentUsedMemory()
Specified by:
getCurrentUsedMemory in interface ServerProxyMBean

getCurrentWaitersJCAConnection

public int getCurrentWaitersJCAConnection()
Specified by:
getCurrentWaitersJCAConnection in interface ServerProxyMBean

getCurrentWorkerPoolSize

public int getCurrentWorkerPoolSize()
Specified by:
getCurrentWorkerPoolSize in interface ServerProxyMBean

getErrorCountByConnectorTomcat

public int getErrorCountByConnectorTomcat()
Specified by:
getErrorCountByConnectorTomcat in interface ServerProxyMBean

getHostName

public java.lang.String getHostName()
Specified by:
getHostName in interface ServerProxyMBean

getInitPoolSizeJCAConnection

public int getInitPoolSizeJCAConnection()
Specified by:
getInitPoolSizeJCAConnection in interface ServerProxyMBean

getJavaVendor

public java.lang.String getJavaVendor()
Specified by:
getJavaVendor in interface ServerProxyMBean

getJavaVersion

public java.lang.String getJavaVersion()
Specified by:
getJavaVersion in interface ServerProxyMBean

getJmsQueuesNbMsgsDeliverSinceCreation

public int getJmsQueuesNbMsgsDeliverSinceCreation()
Specified by:
getJmsQueuesNbMsgsDeliverSinceCreation in interface ServerProxyMBean

getJmsQueuesNbMsgsReceiveSinceCreation

public int getJmsQueuesNbMsgsReceiveSinceCreation()
Specified by:
getJmsQueuesNbMsgsReceiveSinceCreation in interface ServerProxyMBean

getJmsQueuesNbMsgsSendToDMQSinceCreation

public int getJmsQueuesNbMsgsSendToDMQSinceCreation()
Specified by:
getJmsQueuesNbMsgsSendToDMQSinceCreation in interface ServerProxyMBean

getJmsTopicsNbMsgsDeliverSinceCreation

public int getJmsTopicsNbMsgsDeliverSinceCreation()
Specified by:
getJmsTopicsNbMsgsDeliverSinceCreation in interface ServerProxyMBean

getJmsTopicsNbMsgsReceiveSinceCreation

public int getJmsTopicsNbMsgsReceiveSinceCreation()
Specified by:
getJmsTopicsNbMsgsReceiveSinceCreation in interface ServerProxyMBean

getJmsTopicsNbMsgsSendToDMQSinceCreation

public int getJmsTopicsNbMsgsSendToDMQSinceCreation()
Specified by:
getJmsTopicsNbMsgsSendToDMQSinceCreation in interface ServerProxyMBean

getJOnASVersion

public java.lang.String getJOnASVersion()
Specified by:
getJOnASVersion in interface ServerProxyMBean

getLoadCPU

public java.lang.String getLoadCPU()
Specified by:
getLoadCPU in interface ServerProxyMBean

getMaxNumberOfEBInMemory

public int getMaxNumberOfEBInMemory()
Specified by:
getMaxNumberOfEBInMemory in interface ServerProxyMBean

getMaxNumberOfSBFInMemory

public int getMaxNumberOfSBFInMemory()
Specified by:
getMaxNumberOfSBFInMemory in interface ServerProxyMBean

getMaxNumberOfSBLInMemory

public int getMaxNumberOfSBLInMemory()
Specified by:
getMaxNumberOfSBLInMemory in interface ServerProxyMBean

getMaxThreadsByConnectorTomcat

public int getMaxThreadsByConnectorTomcat()
Specified by:
getMaxThreadsByConnectorTomcat in interface ServerProxyMBean

getMaxWorkerPoolSize

public int getMaxWorkerPoolSize()
Specified by:
getMaxWorkerPoolSize in interface ServerProxyMBean

getMbeanServer

public javax.management.MBeanServer getMbeanServer()
Specified by:
getMbeanServer in interface ServerProxyMBean

getMinPoolSizeEB

public int getMinPoolSizeEB()
Specified by:
getMinPoolSizeEB in interface ServerProxyMBean

getMinPoolSizeSBF

public int getMinPoolSizeSBF()
Specified by:
getMinPoolSizeSBF in interface ServerProxyMBean

getMinPoolSizeSBL

public int getMinPoolSizeSBL()
Specified by:
getMinPoolSizeSBL in interface ServerProxyMBean

getMinWorkerPoolSize

public int getMinWorkerPoolSize()
Specified by:
getMinWorkerPoolSize in interface ServerProxyMBean

getPhysicalConnectionOpenedCountJCAConnection

public int getPhysicalConnectionOpenedCountJCAConnection()
Specified by:
getPhysicalConnectionOpenedCountJCAConnection in interface ServerProxyMBean

getPoolMaxOpentimeJCAConnection

public int getPoolMaxOpentimeJCAConnection()
Specified by:
getPoolMaxOpentimeJCAConnection in interface ServerProxyMBean

getPoolMaxSizeJCAConnection

public int getPoolMaxSizeJCAConnection()
Specified by:
getPoolMaxSizeJCAConnection in interface ServerProxyMBean

getPoolMaxWaitersJCAConnection

public int getPoolMaxWaitersJCAConnection()
Specified by:
getPoolMaxWaitersJCAConnection in interface ServerProxyMBean

getPoolMaxWaitTimeJCAConnection

public int getPoolMaxWaitTimeJCAConnection()
Specified by:
getPoolMaxWaitTimeJCAConnection in interface ServerProxyMBean

getPoolMinSizeJCAConnection

public int getPoolMinSizeJCAConnection()
Specified by:
getPoolMinSizeJCAConnection in interface ServerProxyMBean

getPoolSizeEB

public int getPoolSizeEB()
Specified by:
getPoolSizeEB in interface ServerProxyMBean

getPoolSizeSBF

public int getPoolSizeSBF()
Specified by:
getPoolSizeSBF in interface ServerProxyMBean

getPoolSizeSBL

public int getPoolSizeSBL()
Specified by:
getPoolSizeSBL in interface ServerProxyMBean

getProcessingTimeByConnectorTomcat

public long getProcessingTimeByConnectorTomcat()
Specified by:
getProcessingTimeByConnectorTomcat in interface ServerProxyMBean

getProtocols

public java.lang.String getProtocols()
Specified by:
getProtocols in interface ServerProxyMBean

getPstmtMaxJCAConnection

public int getPstmtMaxJCAConnection()
Specified by:
getPstmtMaxJCAConnection in interface ServerProxyMBean

getRejectedFullJCAConnection

public int getRejectedFullJCAConnection()
Specified by:
getRejectedFullJCAConnection in interface ServerProxyMBean

getRejectedOpenJCAConnection

public int getRejectedOpenJCAConnection()
Specified by:
getRejectedOpenJCAConnection in interface ServerProxyMBean

getRejectedOtherJCAConnection

public int getRejectedOtherJCAConnection()
Specified by:
getRejectedOtherJCAConnection in interface ServerProxyMBean

getRejectedTimeoutJCAConnection

public int getRejectedTimeoutJCAConnection()
Specified by:
getRejectedTimeoutJCAConnection in interface ServerProxyMBean

getRequestCountByConnectorTomcat

public int getRequestCountByConnectorTomcat()
Specified by:
getRequestCountByConnectorTomcat in interface ServerProxyMBean

getTotalBegunTransactions

public int getTotalBegunTransactions()
Specified by:
getTotalBegunTransactions in interface ServerProxyMBean

getTotalCommittedTransactions

public int getTotalCommittedTransactions()
Specified by:
getTotalCommittedTransactions in interface ServerProxyMBean

getTotalCurrentTransactions

public int getTotalCurrentTransactions()
Specified by:
getTotalCurrentTransactions in interface ServerProxyMBean

getTotalExpiredTransactions

public int getTotalExpiredTransactions()
Specified by:
getTotalExpiredTransactions in interface ServerProxyMBean

getTotalRolledbackTransactions

public int getTotalRolledbackTransactions()
Specified by:
getTotalRolledbackTransactions in interface ServerProxyMBean

getWaiterCountJCAConnection

public int getWaiterCountJCAConnection()
Specified by:
getWaiterCountJCAConnection in interface ServerProxyMBean

getWaitersHighJCAConnection

public int getWaitersHighJCAConnection()
Specified by:
getWaitersHighJCAConnection in interface ServerProxyMBean

getWaitersHighRecentJCAConnection

public int getWaitersHighRecentJCAConnection()
Specified by:
getWaitersHighRecentJCAConnection in interface ServerProxyMBean

getWaitingHighJCAConnection

public int getWaitingHighJCAConnection()
Specified by:
getWaitingHighJCAConnection in interface ServerProxyMBean

getWaitingHighRecentJCAConnection

public int getWaitingHighRecentJCAConnection()
Specified by:
getWaitingHighRecentJCAConnection in interface ServerProxyMBean

getWaitingTimeJCAConnection

public int getWaitingTimeJCAConnection()
Specified by:
getWaitingTimeJCAConnection in interface ServerProxyMBean

getXaServedOpenJCAConnection

public int getXaServedOpenJCAConnection()
Specified by:
getXaServedOpenJCAConnection in interface ServerProxyMBean

isTomcat

public boolean isTomcat()