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, domain, env, FAILED, INITIAL, jmx, logger, name, objectName, RUNNING, serverOn, state, STOPPED, UNKNOWN, UNREACHABLE, url, urls |
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, getConnection, getName, getObjectName, getServerState, getState, 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:
name
-
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 server
- 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 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