|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.modeler.BaseModelMBean
org.objectweb.jonas.server.J2EEServerMBean
MBean class for Server management. Two classes are used to provide all management services : J2EEServer and J2EEServerMBean. This class provide the notification's process when add or remove resources.
Field Summary |
Fields inherited from class org.apache.commons.modeler.BaseModelMBean |
attributeBroadcaster, attributes, generalBroadcaster, info, oname, registry, resource, resourceType, source |
Constructor Summary | |
J2EEServerMBean()
|
Method Summary | |
static void |
addDeployedObject(java.lang.String p_DeployedObject)
Add a deployed object in the list of the J2EEServer. |
void |
addNotificationListener(javax.management.NotificationListener p_Listner,
javax.management.NotificationFilter p_Filter,
java.lang.Object p_Handback)
Add a new listener. |
static void |
addResource(java.lang.String p_ObjectName)
Add an object name to the resources list. |
java.lang.String |
deployEar(java.lang.String fileName)
Deploy a J2EE application packaged in a EAR file |
java.lang.String |
deployJar(java.lang.String fileName)
Deploy a stand-alone J2EE module packaged in a JAR file |
java.lang.String |
deployRar(java.lang.String fileName)
Deploy a J2EE application packaged in a RAR file |
java.lang.String[] |
getDeployedObjects()
All The MBean names corresponding to the deployed J2EEModules (ear, jar, war, rar). |
java.lang.String[] |
getJavaVMs()
All The MBean names corresponding to the used JVMs. |
java.lang.String[] |
getResources()
All The MBean names corresponding to the deployed J2EEResources. |
static void |
removeDeployedObject(java.lang.String p_DeployedObject)
Remove a deployed object from the list of the J2EEServer. |
static java.lang.String |
removeResource(java.lang.String p_ObjectName)
Remove an object name from the resources list. |
void |
sendNotification(javax.management.Notification p_Notification)
Send a notification to the listener. |
Methods inherited from class org.apache.commons.modeler.BaseModelMBean |
addAttributeChangeNotificationListener, createDefaultModelMBeanInfo, createResource, getAttribute, getAttributes, getClassName, getManagedResource, getMBeanInfo, getModelerType, getNotificationInfo, getObjectName, getRegistry, initModelInfo, invoke, isModelMBeanInfoValid, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModeledType, setModelMBeanInfo, setRegistry, store, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public J2EEServerMBean() throws javax.management.MBeanException
Method Detail |
public java.lang.String[] getDeployedObjects()
public java.lang.String[] getResources()
public java.lang.String[] getJavaVMs()
public void sendNotification(javax.management.Notification p_Notification)
public void addNotificationListener(javax.management.NotificationListener p_Listner, javax.management.NotificationFilter p_Filter, java.lang.Object p_Handback) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.String deployJar(java.lang.String fileName) throws java.lang.Exception
java.lang.Exception
public java.lang.String deployEar(java.lang.String fileName) throws java.lang.Exception
java.lang.Exception
public java.lang.String deployRar(java.lang.String fileName) throws java.lang.Exception
java.lang.Exception
public static void addDeployedObject(java.lang.String p_DeployedObject)
p_DeployedObject
- The object name of deployed objectpublic static void removeDeployedObject(java.lang.String p_DeployedObject)
p_DeployedObject
- The object name of deployed objectpublic static void addResource(java.lang.String p_ObjectName)
resources
list.
p_ObjectName
- Object name correspondig to a J2EEResource MBeanpublic static java.lang.String removeResource(java.lang.String p_ObjectName)
resources
list.
p_ObjectName
- Object name correspondig to a J2EEResource MBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |