| org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject org.objectweb.jonas.management.j2eemanagement.J2EEDomain
J2EEDomain | public class J2EEDomain extends J2EEManagedObject implements MBeanRegistration(Code) | | Implements a managed object which represents either a management domain or a cluster.
This J2EEManagedObject is accessed mainly by jonasAdmin.
The complete interface is described in the following xml file :
author: Adriana Danes author: Vivek Lakshmanan |
Method Summary | |
public void | addLocalServer(J2EEServer j2eeserver, Collection urls) Add the local J2EEServer to the 'servers' list. | public void | addServer(String serverName, String clusterName, String clusterDaemonName, String[] urls) Parameters: serverName - name of the server to add Parameters: urls - JMX remote connector urls Parameters: clusterName - name of the cluster in which the server is to beattached, if any. | public String | createCluster(String name) | public void | deployEar(String[] target, String fileName) | public void | deployJar(String[] target, String fileName) | public void | deployRar(String[] target, String fileName) | public void | deployWar(String[] target, String fileName) | public BaseCluster | findCluster(String name) | public J2EEServer | findServer(String name) | public ServerProxy | findServerProxy(String name) | public String[] | getClusterDaemons() | public String[] | getClusters() | public MBeanServerConnection | getConnection(String serverName) | public String[] | getConnectorServerURLs(String serverName) | public String | getDescription() | public DomainMonitor | getDomainMonitor() Get the domainMonitor, or null if slave server. | public static J2EEDomain | getInstance() Singleton: Each server (master or slave) must have 1 unique J2EEDomain object. | public String | getMyName() | public String[] | getServerNames() | public String[] | getServerNames(String clusterName) | public String[] | getServers() | public String[] | getStartedServers() Return the MBeans OBJECT_NAMEs of the servers belonging to this domain
but only if they are running. | public boolean | isMaster() | public void | postDeregister() | public void | postRegister(Boolean registrationDone) Add J2EEDomain MBean (myself) as listener to registration/unregistration notifications of
JOnAS management MBeans. | public void | preDeregister() | public ObjectName | preRegister(MBeanServer mbeanServer, ObjectName name) | public void | setLocalServerRunning() Set the local server running and get its info
Cannot be done before because some MBeans must exist first. | public void | setMaster() | public void | startServer(String serverName) | public void | stopServer(String serverName) | public void | unDeployEar(String[] target, String fileName) | public void | unDeployJar(String[] target, String fileName) | public void | unDeployRar(String[] target, String fileName) | public void | unDeployWar(String[] target, String fileName) | public void | uploadDeployEar(String[] target, String fileName, boolean replaceExisting) | public void | uploadDeployJar(String[] target, String fileName, boolean replaceExisting) | public void | uploadDeployRar(String[] target, String fileName, boolean replaceExisting) | public void | uploadDeployWar(String[] target, String fileName, boolean replaceExisting) |
J2EEDomain | public J2EEDomain(String objectName) throws JMException(Code) | | MBean constructor
Parameters: objectName - object name of the managed object JMException .. |
addLocalServer | public void addLocalServer(J2EEServer j2eeserver, Collection urls)(Code) | | Add the local J2EEServer to the 'servers' list.
This method is called by the Server.start() method execution.
Parameters: j2eeserver - J2EEServer object corresponding to the currently managedserver (the local server which can be a master or a slave) Parameters: urls - Collection of JMX remote connector urls for this server |
addServer | public void addServer(String serverName, String clusterName, String clusterDaemonName, String[] urls) throws JMException(Code) | | Parameters: serverName - name of the server to add Parameters: urls - JMX remote connector urls Parameters: clusterName - name of the cluster in which the server is to beattached, if any. Null otherwise. Parameters: clusterDaemonName - name of the cluster daemon if any. Null otherwise. throws: JMException - could not add the server to the domain |
createCluster | public String createCluster(String name)(Code) | | Create a logical cluster (by jonasAdmin)
Parameters: name - the cluster's name the OBJECT_NAME corresponding to the created MBean |
deployEar | public void deployEar(String[] target, String fileName)(Code) | | Deploy a EAR file on a multiple management target composed of servers and/or clusters
Parameters: target - list of server and/or cluster names Parameters: fileName - file to be deployed |
deployJar | public void deployJar(String[] target, String fileName)(Code) | | Deploy a JAR file on a multiple management target composed of servers and/or clusters
Parameters: target - list of server and/or cluster names Parameters: fileName - file to be deployed |
deployRar | public void deployRar(String[] target, String fileName)(Code) | | Deploy a RAR file on a multiple management target composed of servers and/or clusters
Parameters: target - list of server and/or cluster names Parameters: fileName - file to be deployed |
deployWar | public void deployWar(String[] target, String fileName)(Code) | | Deploy a WAR file on a multiple management target composed of servers and/or clusters
Parameters: target - list of server and/or cluster names Parameters: fileName - file to be deployed |
findCluster | public BaseCluster findCluster(String name)(Code) | | Get a Cluster by its name
Parameters: name - The name of the cluster the Cluster or null if unknown by the domain. |
findServer | public J2EEServer findServer(String name)(Code) | | Get a Server by its name
Parameters: name - The name of the server the Server or null if unknown by the domain. |
findServerProxy | public ServerProxy findServerProxy(String name)(Code) | | Get a Server by its name
Parameters: name - The name of the server the ServerProxy or null if unknown by the domain. |
getClusters | public String[] getClusters()(Code) | | Return the MBeans OBJECT_NAMEs of the clusters in this domain
The list of object names corresponding to the clusters in this domain |
getConnection | public MBeanServerConnection getConnection(String serverName)(Code) | | Parameters: serverName - Name of the server the connection to the MBeanServer of this server |
getConnectorServerURLs | public String[] getConnectorServerURLs(String serverName)(Code) | | Return connector server urls for a given JOnAS server
Parameters: serverName - the given JOnAS server name connector server urls for a given JOnAS server |
getDescription | public String getDescription()(Code) | | Returns the description. |
getDomainMonitor | public DomainMonitor getDomainMonitor()(Code) | | Get the domainMonitor, or null if slave server.
the domainMonitor, for the master server. |
getInstance | public static J2EEDomain getInstance()(Code) | | Singleton: Each server (master or slave) must have 1 unique J2EEDomain object.
the unique instance of the J2EEDomain |
getMyName | public String getMyName()(Code) | | Return the domain name
domain name or cluster name |
getServerNames | public String[] getServerNames()(Code) | | Return the servers' name belonging domain
The list of names corresponding to the servers within this domain |
getServerNames | public String[] getServerNames(String clusterName)(Code) | | Parameters: clusterName - name of a cluster in the domain the list of server names corresponding to the servers within a cluster |
getServers | public String[] getServers()(Code) | | Return the MBeans OBJECT_NAMEs of the servers belonging to this domain
The list of object names corresponding to the servers associated with this domain |
getStartedServers | public String[] getStartedServers()(Code) | | Return the MBeans OBJECT_NAMEs of the servers belonging to this domain
but only if they are running.
The list of object names corresponding to the servers associated with this domain |
isMaster | public boolean isMaster()(Code) | | Returns the master. |
postRegister | public void postRegister(Boolean registrationDone)(Code) | | Add J2EEDomain MBean (myself) as listener to registration/unregistration notifications of
JOnAS management MBeans.
Parameters: registrationDone - Indicates whether or not the MBean has been successfully registered |
preRegister | public ObjectName preRegister(MBeanServer mbeanServer, ObjectName name) throws Exception(Code) | | Parameters: mbeanServer - The MBean server in which the MBean will be registered. Parameters: name - The object name of the MBean The object name of the MBean |
setLocalServerRunning | public void setLocalServerRunning()(Code) | | Set the local server running and get its info
Cannot be done before because some MBeans must exist first.
|
setMaster | public void setMaster()(Code) | | Set this server as the master
|
startServer | public void startServer(String serverName)(Code) | | Start a Remote JOnAS Server
MBean implementation for jonasAdmin
Parameters: serverName - Name of the jonas server |
stopServer | public void stopServer(String serverName)(Code) | | Stop a Remote JOnAS Server
MBean implementation for jonasAdmin
Parameters: serverName - Name of the jonas server |
unDeployEar | public void unDeployEar(String[] target, String fileName)(Code) | | Undeploy a EAR file of a multiple management target composed of servers and/or clusters
Parameters: target - list of server and/or cluster names Parameters: fileName - file to be undeployed |
unDeployJar | public void unDeployJar(String[] target, String fileName)(Code) | | Undeploy a JAR file of a multiple management target composed of servers and/or clusters
Parameters: target - list of server and/or cluster names Parameters: fileName - file to be undeployed |
unDeployRar | public void unDeployRar(String[] target, String fileName)(Code) | | Undeploy a RAR file of a multiple management target composed of servers and/or clusters
Parameters: target - list of server and/or cluster names Parameters: fileName - file to be undeployed |
unDeployWar | public void unDeployWar(String[] target, String fileName)(Code) | | Undeploy a WAR file of a multiple management target composed of servers and/or clusters
Parameters: target - list of server and/or cluster names Parameters: fileName - file to be undeployed |
uploadDeployEar | public void uploadDeployEar(String[] target, String fileName, boolean replaceExisting)(Code) | | Upload and deploy an EAR file on a multiple management target composed of servers and/or clusters
Parameters: target - list of server and/or cluster names Parameters: fileName - file to be deployed Parameters: replaceExisting - true if the uploaded file can replace a file with the same name in the apps directory |
uploadDeployJar | public void uploadDeployJar(String[] target, String fileName, boolean replaceExisting)(Code) | | Upload and deploy a JAR file on a multiple management target composed of servers and/or clusters
Parameters: target - list of server and/or cluster names Parameters: fileName - file to be deployed Parameters: replaceExisting - true if the uploaded file can replace a file with the same name in the jars directory |
uploadDeployRar | public void uploadDeployRar(String[] target, String fileName, boolean replaceExisting)(Code) | | Upload and deploy a RAR file on a multiple management target composed of servers and/or clusters
Parameters: target - list of server and/or cluster names Parameters: fileName - file to be deployed Parameters: replaceExisting - true if the uploaded file can replace a file with the same name in the rars directory |
uploadDeployWar | public void uploadDeployWar(String[] target, String fileName, boolean replaceExisting)(Code) | | Upload and deploy a WAR file on a multiple management target composed of servers and/or clusters
Parameters: target - list of server and/or cluster names Parameters: fileName - file to be deployed Parameters: replaceExisting - true if the uploaded file can replace a file with the same name in the wars directory |
|
|