| java.lang.Object org.objectweb.jonas.cluster.daemon.ClusterDaemon
ClusterDaemon | public class ClusterDaemon implements ClusterDaemonMBean(Code) | | ClusterDaemon is provided to control JOnAS instances remotely.
The ClusterDaemon is an independent Java program, and runs on every node (machine) in the cluster.
It receives remote commands (JMX), and does something such as starting or stopping JOnAS instances.
author: zhengzz (initial version for PKUAS) author: Benoit Pelletier (integration in JOnAS) |
Inner Class :class CmdReader implements Runnable | |
Inner Class :class ShutdownHook extends Thread | |
Inner Class :class Monitor extends Thread | |
Method Summary | |
public void | addServer(String name, String description, String javaHome, String jonasRoot, String jonasBase) | public String | getJavaHome4Server(String name) | public String | getJonasBase4Server(String name) | public String | getJonasRoot4Server(String name) | public String | getName() | public String | getServersList() | public String | getobjectName() | public boolean | iseventProvider() | public boolean | isstateManageable() | public boolean | isstatisticsProvider() | public static void | main(String[] args) | public void | modifyServer(String name, String description, String javaHome, String jonasRoot, String jonasBase) | public int | pingJOnAS(String name) | public void | reloadConfiguration() | public void | removeServer(String name) | public void | setobjectName(String name) | public void | start(String[] args) | public String | startAllJOnAS(String domainName, String prm) | public void | startJOnAS(String name, String domainName, String prm) | public String | stopAllJOnAS() | public void | stopClusterDaemon() | public void | stopJOnAS(String name) |
JONAS_CMD_NAME_UNIX | final public static String JONAS_CMD_NAME_UNIX(Code) | | JOnAS command name in unix environmment
|
JONAS_CMD_NAME_WIN | final public static String JONAS_CMD_NAME_WIN(Code) | | JOnAS command name in windows environmment
|
SLEEP_DELAY | final public static int SLEEP_DELAY(Code) | | Sleep before exit of JVM
|
addServer | public void addServer(String name, String description, String javaHome, String jonasRoot, String jonasBase) throws ClusterDaemonException(Code) | | Add a server configuration (MBean interface)
Parameters: name - server name Parameters: description - server description Parameters: javaHome - JAVA_HOME dir Parameters: jonasBase - JONAS_BASE dir Parameters: jonasRoot - JONAS_ROOT dir throws: ClusterDaemonException - if an error occurs |
getJavaHome4Server | public String getJavaHome4Server(String name)(Code) | | (MBean interface)
the JAVA_HOME for a specified server name Parameters: name - JOnAS instance name |
getJonasBase4Server | public String getJonasBase4Server(String name)(Code) | | (MBean interface)
the JONAS_BASE for a specified server name Parameters: name - JOnAS instance name |
getJonasRoot4Server | public String getJonasRoot4Server(String name)(Code) | | (MBean interface)
the JONAS_ROOT for a specified server name Parameters: name - JOnAS instance name |
getServersList | public String getServersList()(Code) | | the list of JOnAS instances |
getobjectName | public String getobjectName()(Code) | | Object Name |
iseventProvider | public boolean iseventProvider()(Code) | | true if it is an event provider |
isstateManageable | public boolean isstateManageable()(Code) | | true if this managed object implements J2EE State ManagementModel |
isstatisticsProvider | public boolean isstatisticsProvider()(Code) | | true if this managed object implements the J2EE StatisticProviderModel |
main | public static void main(String[] args)(Code) | | Main method
Parameters: args - the arguments of the cluster daemon |
modifyServer | public void modifyServer(String name, String description, String javaHome, String jonasRoot, String jonasBase) throws ClusterDaemonException(Code) | | Modify a server configuration (MBean interface)
Parameters: name - server name Parameters: description - server description Parameters: javaHome - JAVA_HOME dir Parameters: jonasBase - JONAS_BASE dir Parameters: jonasRoot - JONAS_ROOT dir throws: ClusterDaemonException - if an error occurs |
setobjectName | public void setobjectName(String name)(Code) | | Sets the object name of this mbean
Parameters: name - the Object Name |
startAllJOnAS | public String startAllJOnAS(String domainName, String prm)(Code) | | Start all the JOnAS instances configured with auto-reboot
Parameters: domainName - domain name Parameters: prm - extra parameters the nodes list with an indicator started/starting failed |
stopAllJOnAS | public String stopAllJOnAS()(Code) | | Stop all the JOnAS instances
the nodes list with an indicator stopped/stopping failed |
stopClusterDaemon | public void stopClusterDaemon()(Code) | | Stop the current instance
|
|
|