org.objectweb.jonas.management.monitoring.proxy.clusterd
Class ClusterDaemonProxy
java.lang.Object
org.objectweb.jonas.management.monitoring.proxy.JMXProxy
org.objectweb.jonas.management.monitoring.proxy.clusterd.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, eyindanga
Fields inherited from class org.objectweb.jonas.management.monitoring.proxy.JMXProxy |
connection, connector, dm, env, FAILED, INITIAL, jmx, logger, name, objectName, RUNNING, serverOn, STARTING, state, STOPPED, STOPPING, UNKNOWN, UNREACHABLE, urls |
Methods inherited from class org.objectweb.jonas.management.monitoring.proxy.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,
String name,
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
checkit
public void checkit()
- Check the MBean server connection and possibly change state
startServer
public boolean startServer(String serverName,
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(String serverName,
String otherParams)
- Stop a Remote JOnAS Server
- Specified by:
stopServer
in interface ClusterDaemonProxyMBean
- Parameters:
daemonName
- ClusterDaemon used to start the jonas serverserverName
- Name of the jonas serverdomainName
- Domain name
- Returns:
- true if operation succeded
startAllServers
public void startAllServers(String otherParams)
- Specified by:
startAllServers
in interface ClusterDaemonProxyMBean
stopAllServers
public void stopAllServers(String otherParams)
- Specified by:
stopAllServers
in interface ClusterDaemonProxyMBean
pingAllJOnAS
public String pingAllJOnAS()
pingJOnAS
public int pingJOnAS(String name)
- Specified by:
pingJOnAS
in interface ClusterDaemonProxyMBean
- Returns:
reloadConfiguration
public void reloadConfiguration()
- Description copied from interface:
ClusterDaemonProxyMBean
- Reload clusterd configuration
- Specified by:
reloadConfiguration
in interface ClusterDaemonProxyMBean
save
public void save(String name)
- Specified by:
save
in interface ClusterDaemonProxyMBean
getServersNames
public void getServersNames()
- remote call to the cluster daemon mbaen, by using jmx connection.
getControlledServersNames
public ArrayList getControlledServersNames()
- Specified by:
getControlledServersNames
in interface ClusterDaemonProxyMBean
- Returns:
- controlled server names
getHostName
public String getHostName()
- Specified by:
getHostName
in interface ClusterDaemonProxyMBean
- Returns:
- the clusterd host name
setName
public void setName(String name)
- Specified by:
setName
in interface ClusterDaemonProxyMBean
getRemoteJmxUrl
public void getRemoteJmxUrl()
- remote call to the cluster daemon mbaen, by using jmx connection.
to get the clusterd jmx url
getJmxUrl
public String getJmxUrl()
- Specified by:
getJmxUrl
in interface ClusterDaemonProxyMBean
- Returns:
- the clusterd JmxUrl
setJmxUrl
public void setJmxUrl(String jmxUrl)
setControlledServersNames
public void setControlledServersNames(ArrayList controlledServersNames)
setHostName
public void setHostName(String hostName)
getRemoteHostInfo
public void getRemoteHostInfo()
dynamicRemoteHostInfos
public Hashtable<String,String> dynamicRemoteHostInfos()
- Specified by:
dynamicRemoteHostInfos
in interface ClusterDaemonProxyMBean
- Returns:
getOperatingSystemAvailableProcessors
public String getOperatingSystemAvailableProcessors()
- Specified by:
getOperatingSystemAvailableProcessors
in interface ClusterDaemonProxyMBean
- Returns:
- the operatingSystemAvailableProcessors
getOperatingSystemName
public String getOperatingSystemName()
- Specified by:
getOperatingSystemName
in interface ClusterDaemonProxyMBean
- Returns:
- the operatingSystemName
getOperatingSystemVersion
public String getOperatingSystemVersion()
- Specified by:
getOperatingSystemVersion
in interface ClusterDaemonProxyMBean
- Returns:
- the operatingSystemVersion
getRunTimeSpecVendor
public String getRunTimeSpecVendor()
- Specified by:
getRunTimeSpecVendor
in interface ClusterDaemonProxyMBean
- Returns:
- the runTimeSpecVendor
getRunTimeSpecVersion
public String getRunTimeSpecVersion()
- Specified by:
getRunTimeSpecVersion
in interface ClusterDaemonProxyMBean
- Returns:
- the runTimeSpecVersion
getRunTimeVmName
public String getRunTimeVmName()
- Specified by:
getRunTimeVmName
in interface ClusterDaemonProxyMBean
- Returns:
- the runTimeVmName
getRunTimeVmVendor
public String getRunTimeVmVendor()
- Specified by:
getRunTimeVmVendor
in interface ClusterDaemonProxyMBean
- Returns:
- the runTimeVmVendor
getRunTimeVmVersion
public String getRunTimeVmVersion()
- Specified by:
getRunTimeVmVersion
in interface ClusterDaemonProxyMBean
- Returns:
- the runTimeVmVersion
Copyright © 2007 OW2 Consortium. All Rights Reserved.