|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.objectweb.jonas.management.ReconfigDispatcher
org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
org.objectweb.jonas.management.j2eemanagement.J2EEDomain
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 :
Field Summary |
Fields inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject |
J2EE_TYPE_APPLICATION, J2EE_TYPE_SERVER, NAME |
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
RECONFIG_TYPE, SAVE_RECONFIG_TYPE |
Constructor Summary | |
J2EEDomain(java.lang.String objectName)
MBean constructor |
Method Summary | |
void |
addLocalServer(J2EEServer j2eeserver,
java.util.Collection urls)
Add the local J2EEServer |
java.lang.String |
createCluster(java.lang.String name)
Create a logical cluster (by jonasAdmin) |
BaseCluster |
findCluster(java.lang.String name)
Get a Cluster by its name |
J2EEServer |
findServer(java.lang.String name)
Get a Server by its name |
ServerProxy |
findServerProxy(java.lang.String name)
Get a Server by its name |
java.lang.String[] |
getClusterDaemons()
|
java.lang.String[] |
getClusters()
Return the MBeans OBJECT_NAMEs of the clusters in this domain |
javax.management.MBeanServerConnection |
getConnection(java.lang.String servername)
|
java.lang.String |
getDescription()
|
DomainMonitor |
getDomainMonitor()
Get the domainMonitor, or null if slave server. |
static J2EEDomain |
getInstance()
Singleton: Each server (master or slave) must have 1 unique J2EEDomain object. |
java.lang.String |
getMyName()
Return the domain name |
java.lang.String[] |
getServers()
Return the MBeans OBJECT_NAMEs of the servers belonging to this domain |
java.lang.String[] |
getStartedServers()
Return the MBeans OBJECT_NAMEs of the servers belonging to this domain but only if they are running. |
boolean |
isMaster()
|
void |
postDeregister()
|
void |
postRegister(java.lang.Boolean registrationDone)
Add J2EEDomain MBean (myself) as listener to registration/unregistration notifications of JOnAS management MBeans. |
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer mbeanServer,
javax.management.ObjectName name)
|
void |
setLocalServerRunning()
Set the local server running and get its info Cannot be done before because some MBeans must exist first. |
void |
setMaster()
Set this server as the master |
void |
startServer(java.lang.String serverName)
Start a Remote JOnAS Server MBean implementation for jonasAdmin |
void |
stopServer(java.lang.String serverName)
Stop a Remote JOnAS Server MBean implementation for jonasAdmin |
Methods inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject |
getObjectName, isEventProvider, isStateManageable, isStatisticsProvider |
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher |
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
handleNotification, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public J2EEDomain(java.lang.String objectName) throws javax.management.JMException
objectName
- object name of the managed object
javax.management.JMException
- ..Method Detail |
public void setMaster()
public static J2EEDomain getInstance()
public javax.management.MBeanServerConnection getConnection(java.lang.String servername)
servername
- Name of the server
public java.lang.String[] getServers()
public java.lang.String[] getStartedServers()
public java.lang.String[] getClusterDaemons()
public java.lang.String[] getClusters()
public DomainMonitor getDomainMonitor()
public java.lang.String createCluster(java.lang.String name)
name
- the cluster's name
public void addLocalServer(J2EEServer j2eeserver, java.util.Collection urls)
j2eeserver
- public void setLocalServerRunning()
public BaseCluster findCluster(java.lang.String name)
name
- The name of the cluster
public J2EEServer findServer(java.lang.String name)
name
- The name of the server
public ServerProxy findServerProxy(java.lang.String name)
name
- The name of the server
public javax.management.ObjectName preRegister(javax.management.MBeanServer mbeanServer, javax.management.ObjectName name) throws java.lang.Exception
preRegister
in interface javax.management.MBeanRegistration
name
- The object name of the MBean
java.lang.Exception
public void postRegister(java.lang.Boolean registrationDone)
postRegister
in interface javax.management.MBeanRegistration
registrationDone
- Indicates whether or not the MBean has been successfully registeredpublic void preDeregister() throws java.lang.Exception
preDeregister
in interface javax.management.MBeanRegistration
java.lang.Exception
MBeanRegistration.preDeregister()
public void postDeregister()
postDeregister
in interface javax.management.MBeanRegistration
MBeanRegistration.postDeregister()
public void startServer(java.lang.String serverName)
serverName
- Name of the jonas serverpublic void stopServer(java.lang.String serverName)
serverName
- Name of the jonas serverpublic java.lang.String getDescription()
public boolean isMaster()
public java.lang.String getMyName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |