org.objectweb.jonas.management.monitoring
Class ClusterDaemonProxy
java.lang.Object
org.objectweb.jonas.management.monitoring.JMXProxy
org.objectweb.jonas.management.monitoring.ClusterDaemonProxy
- All Implemented Interfaces:
- ClusterDaemonProxyMBean
public class ClusterDaemonProxy
- extends JMXProxy
- implements ClusterDaemonProxyMBean
ClusterDaemon proxy
It is created when a new element has been found in domain.xml
It holds all the necessary information to go to the ClusterDaemon
- Author:
- durieuxp
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 |
Method Summary |
void |
checkit()
Check the MBean server connection and possibly change state |
void |
startAllServers(java.lang.String otherParams)
|
boolean |
startServer(java.lang.String serverName,
java.lang.String otherParams)
Start a Remote JOnAS Server |
void |
stopAllServers(java.lang.String otherParams)
|
boolean |
stopServer(java.lang.String serverName,
java.lang.String otherParams)
Stop a Remote JOnAS Server |
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 |
ClusterDaemonProxy
public ClusterDaemonProxy(DomainMonitor dm,
java.lang.String name,
java.util.Collection urls)
- Constructor.
This is called when a ClusterDaemon element has been found in domain.xml.
- Parameters:
dm
- the DomainMonitor object referencename
- cluster daemon nameurls
- possible urls that can be used for connection with the CD
startServer
public boolean startServer(java.lang.String serverName,
java.lang.String otherParams)
- Start a Remote JOnAS Server
- Specified by:
startServer
in interface ClusterDaemonProxyMBean
- Parameters:
serverName
- Name of the jonas serverotherParams
- additional parameters to start a server via the ClusterDaemon
- Returns:
- true if operation succeded
stopServer
public boolean stopServer(java.lang.String serverName,
java.lang.String otherParams)
- Stop a Remote JOnAS Server
- Specified by:
stopServer
in interface ClusterDaemonProxyMBean
- Parameters:
serverName
- Name of the jonas serverotherParams
- additional parameters that could be used to stop the server
- Returns:
- true if operation succeded
startAllServers
public void startAllServers(java.lang.String otherParams)
- Specified by:
startAllServers
in interface ClusterDaemonProxyMBean
stopAllServers
public void stopAllServers(java.lang.String otherParams)
- Specified by:
stopAllServers
in interface ClusterDaemonProxyMBean
checkit
public void checkit()
- Check the MBean server connection and possibly change state