|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas.management.monitoring.JMXProxy org.objectweb.jonas.management.monitoring.ServerProxy
public class ServerProxy
A ServerProxy proxy MBean represents a server in the domain on the master side. Implements state transition diagram.
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 or for a server added to the domain by a management application. |
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 |
---|
public ServerProxy(DomainMonitor dm, java.lang.String serverName)
serverName
- the name of the managed serverdm
- the domain monitor which treated the discovery notificationpublic ServerProxy(DomainMonitor dm, java.lang.String serverName, java.util.Collection urls, ClusterDaemonProxy cdp)
dm
- current domain monitorserverName
- the name of the managed serverurls
- Collection of urls to connect to the servercdp
- possible clusterdaemonMethod Detail |
---|
public void notifyStarting(java.util.Collection urls)
urls
- for connectionpublic void notifyStopping()
public void checkit(boolean readall)
readall
- read all monitoring info if server RUNNINGpublic java.lang.String getJ2eeObjectName()
public java.lang.String getServerName()
public java.lang.String getClusterDaemonName()
getClusterDaemonName
in interface ServerProxyMBean
public void startit()
startit
in interface ServerProxyMBean
public void stopit()
stopit
in interface ServerProxyMBean
public void deployModule(java.lang.String fileName)
deployModule
in interface ServerProxyMBean
fileName
- the name of the file containig the module/application
to deploypublic void undeployModule(java.lang.String fileName)
undeployModule
in interface ServerProxyMBean
fileName
- Name of the file containing module (or app) to undeploypublic void uploadFile(java.lang.String fileName, boolean replaceExisting)
uploadFile
in interface ServerProxyMBean
fileName
- file to upload. One among .war,.jar,.ear,.rarreplaceExisting
- if true, replace the existing file if any
java.io.IOException
public void uploadDeployModule(java.lang.String fileName, boolean replaceExisting)
uploadDeployModule
in interface ServerProxyMBean
fileName
- file to upload. One among .war,.jar,.ear,.rarreplaceExisting
- if true, replace the existing file if anypublic int getMaxcheck()
getMaxcheck
in interface ServerProxyMBean
public void setMaxcheck(int maxcheck)
setMaxcheck
in interface ServerProxyMBean
maxcheck
- maxcheck valuepublic boolean isInfoSet()
public void setInfoSet(boolean infoSet)
true
after execting the getInfo() method,
and to false
when detecting that server become unreacheable or stopping.
infoSet
- indicator value to setpublic void getMonitoringInfo()
public int getAllThreadsCount()
getAllThreadsCount
in interface ServerProxyMBean
public long getBytesReceivedByConnectorTomcat()
getBytesReceivedByConnectorTomcat
in interface ServerProxyMBean
public long getBytesSentByConnectorTomcat()
getBytesSentByConnectorTomcat
in interface ServerProxyMBean
public int getConnectionFailuresJCAConnection()
getConnectionFailuresJCAConnection
in interface ServerProxyMBean
public int getConnectionLeaksJCAConnection()
getConnectionLeaksJCAConnection
in interface ServerProxyMBean
public int getCurrentBusyJCAConnection()
getCurrentBusyJCAConnection
in interface ServerProxyMBean
public int getCurrentNumberOfEntityBean()
getCurrentNumberOfEntityBean
in interface ServerProxyMBean
public int getCurrentNumberOfEJB()
getCurrentNumberOfEJB
in interface ServerProxyMBean
public int getCurrentNumberOfMDB()
getCurrentNumberOfMDB
in interface ServerProxyMBean
public int getCurrentNumberOfSBF()
getCurrentNumberOfSBF
in interface ServerProxyMBean
public int getCurrentNumberOfSBL()
getCurrentNumberOfSBL
in interface ServerProxyMBean
public int getCurrentOpenedJCAConnection()
getCurrentOpenedJCAConnection
in interface ServerProxyMBean
public int getCurrentThreadBusyByConnectorTomcat()
getCurrentThreadBusyByConnectorTomcat
in interface ServerProxyMBean
public int getCurrentThreadCountByConnectorTomcat()
getCurrentThreadCountByConnectorTomcat
in interface ServerProxyMBean
public java.lang.Long getCurrentTotalMemory()
getCurrentTotalMemory
in interface ServerProxyMBean
public java.lang.Long getCurrentUsedMemory()
getCurrentUsedMemory
in interface ServerProxyMBean
public int getCurrentWorkerPoolSize()
getCurrentWorkerPoolSize
in interface ServerProxyMBean
public int getErrorCountByConnectorTomcat()
getErrorCountByConnectorTomcat
in interface ServerProxyMBean
public java.lang.String getHostName()
getHostName
in interface ServerProxyMBean
public java.lang.String getJavaVendor()
getJavaVendor
in interface ServerProxyMBean
public java.lang.String getJavaVersion()
getJavaVersion
in interface ServerProxyMBean
public int getJmsQueuesNbMsgsDeliverSinceCreation()
getJmsQueuesNbMsgsDeliverSinceCreation
in interface ServerProxyMBean
public int getJmsQueuesNbMsgsReceiveSinceCreation()
getJmsQueuesNbMsgsReceiveSinceCreation
in interface ServerProxyMBean
public int getJmsQueuesNbMsgsSendToDMQSinceCreation()
getJmsQueuesNbMsgsSendToDMQSinceCreation
in interface ServerProxyMBean
public int getJmsTopicsNbMsgsDeliverSinceCreation()
getJmsTopicsNbMsgsDeliverSinceCreation
in interface ServerProxyMBean
public int getJmsTopicsNbMsgsReceiveSinceCreation()
getJmsTopicsNbMsgsReceiveSinceCreation
in interface ServerProxyMBean
public int getJmsTopicsNbMsgsSendToDMQSinceCreation()
getJmsTopicsNbMsgsSendToDMQSinceCreation
in interface ServerProxyMBean
public java.lang.String getJOnASVersion()
getJOnASVersion
in interface ServerProxyMBean
public java.lang.String getLoadCPU()
getLoadCPU
in interface ServerProxyMBean
public int getMaxThreadsByConnectorTomcat()
getMaxThreadsByConnectorTomcat
in interface ServerProxyMBean
public int getMaxWorkerPoolSize()
getMaxWorkerPoolSize
in interface ServerProxyMBean
public javax.management.MBeanServer getMbeanServer()
getMbeanServer
in interface ServerProxyMBean
public int getMinWorkerPoolSize()
getMinWorkerPoolSize
in interface ServerProxyMBean
public long getProcessingTimeByConnectorTomcat()
getProcessingTimeByConnectorTomcat
in interface ServerProxyMBean
public java.lang.String getProtocols()
getProtocols
in interface ServerProxyMBean
public int getRequestCountByConnectorTomcat()
getRequestCountByConnectorTomcat
in interface ServerProxyMBean
public int getTotalBegunTransactions()
getTotalBegunTransactions
in interface ServerProxyMBean
public int getTotalCommittedTransactions()
getTotalCommittedTransactions
in interface ServerProxyMBean
public int getTotalCurrentTransactions()
getTotalCurrentTransactions
in interface ServerProxyMBean
public int getTotalExpiredTransactions()
getTotalExpiredTransactions
in interface ServerProxyMBean
public int getTotalRolledbackTransactions()
getTotalRolledbackTransactions
in interface ServerProxyMBean
public int getWaiterCountJCAConnection()
getWaiterCountJCAConnection
in interface ServerProxyMBean
public long getWaitingTimeJCAConnection()
getWaitingTimeJCAConnection
in interface ServerProxyMBean
public boolean getTomcat()
getTomcat
in interface ServerProxyMBean
public boolean getTransaction()
getTransaction
in interface ServerProxyMBean
public boolean getWorkers()
getWorkers
in interface ServerProxyMBean
public int getConnectionFailuresJDBCResource()
getConnectionFailuresJDBCResource
in interface ServerProxyMBean
public int getConnectionLeaksJDBCResource()
getConnectionLeaksJDBCResource
in interface ServerProxyMBean
public int getCurrentBusyJDBCResource()
getCurrentBusyJDBCResource
in interface ServerProxyMBean
public int getCurrentOpenedJDBCResource()
getCurrentOpenedJDBCResource
in interface ServerProxyMBean
public int getRejectedOpenJDBCResource()
getRejectedOpenJDBCResource
in interface ServerProxyMBean
public int getServedOpenJDBCResource()
getServedOpenJDBCResource
in interface ServerProxyMBean
public int getWaiterCountJDBCResource()
getWaiterCountJDBCResource
in interface ServerProxyMBean
public long getWaitingTimeJDBCResource()
getWaitingTimeJDBCResource
in interface ServerProxyMBean
public int getServedOpenJCAConnection()
getServedOpenJCAConnection
in interface ServerProxyMBean
public int getRejectedOpenJCAConnection()
getRejectedOpenJCAConnection
in interface ServerProxyMBean
public boolean getJcaConnection()
getJcaConnection
in interface ServerProxyMBean
public boolean getJdbcDatasource()
getJdbcDatasource
in interface ServerProxyMBean
public boolean getJmsJoram()
getJmsJoram
in interface ServerProxyMBean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |