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.
author: Guillaume Riviere author: Michel Bruno author:
MBean constructor
Parameters: objectName - object name of the managed object Parameters: server - Server object Parameters: serverName - server name Parameters: serverVersion - JOnAS version Parameters: serverVendor - is JOnAS Parameters: protocols - protocols supported
Method Detail
addDeployedObject
public void addDeployedObject(String objectName)(Code)
Add an object name to the deployedObjects list.
Parameters: objectName - Object name corresponding to a J2EEDeployedObject MBean
Deploy a J2EE application packaged in a EAR file
Parameters: fileName - the file name of the EAR to be be deployed. The ObjectName of the MBean associated to the deployed J2EE Application throws: Exception - Management operation could not be executed or failed
Deploy a stand-alone J2EE module packaged in a JAR file
Parameters: fileName - the file name of the JAR to be be deployed. The ObjectName of the MBean associated to the deployed module throws: Exception - Management operation could not be executed or failed
Deploy a J2EE application packaged in a RAR file
Parameters: fileName - the file name of the RAR to be be deployed. The ObjectName of the MBean associated to the deployed J2EE Application throws: Exception - Management operation could not be executed or failed
Deploy a stand-alone J2EE module packaged in a WAR file
Parameters: fileName - the file name of the WAR to be be deployed. The ObjectName of the MBean associated to the deployed module throws: Exception - Management operation could not be executed or failed
Return the list of MBean names corresponding to the deployed J2EEModules and J2EEApplications
java.util.ArrayList list of the deployed objects' MBean names
Treat the notifications emitted by the JMX server.
This method determines the type of the notification and calls the specific treatement.
Parameters: notification - received notification Parameters: handback - received handback object
Test if the specified filename is already deployed or not. This
method is defined in the EarService interface.
Parameters: fileName - the name of the ear file. true if the ear is deployed, else false. throws: Exception - Management operation could not be executed or failed
Test if the specified filename is already deployed or not.
Parameters: fileName - the name of the jar file. true if the jar is deployed, otherwise false. throws: Exception - Management operation could not be executed
Test if the specified filename is already deployed or not.
Parameters: fileName - the name of the rar file. true if the rar is deployed, else false. throws: Exception - Management operation could not be executed or failed
Test if the specified filename is already deployed or not.
Parameters: fileName - the name of the war file. true if the war is deployed, otherwise false. throws: Exception - Management operation could not be executed
removeDeployedObject
public void removeDeployedObject(String objectName)(Code)
Remove an object name to the deployedObjects list.
Parameters: objectName - Object name corresponding to a J2EEDeployedObject MBean
Remove an object name from the resources list.
Parameters: pObjectName - Object name correspondig to a J2EEResource MBean Object name to the removed J2EEResource MBean
undeploy a J2EE application packaged in a EAR file
Parameters: fileName - the file name of the EAR to be be undeployed. throws: Exception - Management operation could not be executed or failed
Uneploy a stand-alone J2EE module packaged in a JAR file
Parameters: fileName - the file name of the JAR to be be undeployed. throws: Exception - Management operation could not be executed or failed
undeploy a J2EE application packaged in a RAR file
Parameters: fileName - the file name of the RAR to be be undeployed. throws: Exception - Management operation could not be executed or failed
Uneploy a stand-alone J2EE module packaged in a WAR file
Parameters: fileName - the file name of the WAR to be be undeployed. throws: Exception - Management operation could not be executed or failed
Fields inherited from org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject