|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.management.domain.proxy.JMXProxy org.ow2.jonas.lib.management.domain.proxy.server.ServerProxy
public class ServerProxy
A ServerProxy proxy MBean represents a server in the domain on the master side. Implements state transition diagram.
Field Summary | |
---|---|
String |
deployDir
Deploy directory. |
Fields inherited from class org.ow2.jonas.lib.management.domain.proxy.JMXProxy |
---|
logger |
Constructor Summary | |
---|---|
ServerProxy(DomainMonitor dm,
String serverName,
Collection urls,
ClusterDaemonProxy cdp)
Constructor. |
Methods inherited from class org.ow2.jonas.lib.management.domain.proxy.JMXProxy |
---|
checkConnection, connect, disconnect, getAttribute, getAttributes, getConnection, getConnectionUrl, getDm, getDomain, getJ2EEServerState, getName, getObjectName, getState, getUrls, isRegistered, queryNames, setAttribute, setConnection, setObjectName, setState |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ow2.jonas.lib.management.domain.proxy.server.ServerProxyMBean |
---|
getConnectionUrl, getObjectName, getState |
Field Detail |
---|
public String deployDir
Constructor Detail |
---|
public ServerProxy(DomainMonitor dm, String serverName, Collection urls, ClusterDaemonProxy cdp)
dm
- current domain monitorserverName
- the name of the managed serverurls
- Collection of urls to connect to the server. If null, the
ServerProxy corresponds to the local server (the current master).cdp
- possible cluster daemonMethod Detail |
---|
public void notifyStopping()
public boolean isStopThruAdmin()
true
if the server was stopped thru admin console.public void setStopThruAdmin(boolean stopThruAdmin)
stopThruAdmin
- true
if the server was stopped thru
admin console.public void checkit(boolean readall)
readall
- read all monitoring info if server RUNNINGpublic String getServerName()
public String getClusterDaemonName()
getClusterDaemonName
in interface ServerProxyMBean
public void start(boolean standby)
start
in interface ServerProxyMBean
standby
- true to enter standby mode.public void stop()
stop
in interface ServerProxyMBean
public void stop(boolean standby)
stop
in interface ServerProxyMBean
standby
- true to enter standby mode.public void deployModule(String fileName)
deployModule
in interface ServerProxyMBean
fileName
- the absolute name of the file containing the
module/application to deploypublic void undeployModule(String fileName)
undeployModule
in interface ServerProxyMBean
fileName
- Name of the file containing module (or app) to undeploypublic void uploadFile(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
IOException
public void uploadDeployModule(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 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 Long getCurrentTotalMemory()
getCurrentTotalMemory
in interface ServerProxyMBean
public Long getCurrentUsedMemory()
getCurrentUsedMemory
in interface ServerProxyMBean
public int getCurrentWorkerPoolSize()
getCurrentWorkerPoolSize
in interface ServerProxyMBean
public int getErrorCountByConnectorTomcat()
getErrorCountByConnectorTomcat
in interface ServerProxyMBean
public String getHostName()
getHostName
in interface ServerProxyMBean
public String getJavaVendor()
getJavaVendor
in interface ServerProxyMBean
public 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 String getJOnASVersion()
getJOnASVersion
in interface ServerProxyMBean
public String getLoadCPU()
getLoadCPU
in interface ServerProxyMBean
public int getMaxThreadsByConnectorTomcat()
getMaxThreadsByConnectorTomcat
in interface ServerProxyMBean
public int getMaxWorkerPoolSize()
getMaxWorkerPoolSize
in interface ServerProxyMBean
public int getMinWorkerPoolSize()
getMinWorkerPoolSize
in interface ServerProxyMBean
public long getProcessingTimeByConnectorTomcat()
getProcessingTimeByConnectorTomcat
in interface ServerProxyMBean
public 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
public ClusterDaemonProxy getClusterdaemon()
public void setClusterdaemon(ClusterDaemonProxy clusterdaemon)
ServerProxyMBean
setClusterdaemon
in interface ServerProxyMBean
public String getDescription()
getDescription
in interface ServerProxyMBean
public void setDescription(String description)
setDescription
in interface ServerProxyMBean
description
- the description to setpublic String getJavaHome()
getJavaHome
in interface ServerProxyMBean
public void setJavaHome(String javaHome)
setJavaHome
in interface ServerProxyMBean
javaHome
- the javaHome to setpublic String getJonasRoot()
getJonasRoot
in interface ServerProxyMBean
public void setJonasRoot(String jonasRoot)
setJonasRoot
in interface ServerProxyMBean
jonasRoot
- the jonasRoot to setpublic String getJonasBase()
getJonasBase
in interface ServerProxyMBean
public void setJonasBase(String jonasBase)
setJonasBase
in interface ServerProxyMBean
jonasBase
- the jonasBase to setpublic String getXprem()
getXprem
in interface ServerProxyMBean
public void setXprem(String xprem)
setXprem
in interface ServerProxyMBean
xprem
- the xprem to setpublic String getAutoBoot()
getAutoBoot
in interface ServerProxyMBean
public void setAutoBoot(String autoBoot)
setAutoBoot
in interface ServerProxyMBean
autoBoot
- the autoBoot to setpublic boolean equals(Object obj)
equals
in class Object
public String getJ2eeObjectName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |