| org.objectweb.jonas.server.J2EEServerMBean
J2EEServerMBean | public class J2EEServerMBean extends BaseModelMBean (Code) | | 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: Adriana Danes author: Michel-Ange Anton |
Method Summary | |
public void | addNotificationListener(NotificationListener pListner, NotificationFilter pFilter, java.lang.Object pHandback) Add a new listener. | public String | deployEar(String fileName) | public String | deployFile(Integer typeparam, java.lang.Byte[] bfile, String filename, String[] genicArgs, Boolean moveIntoDeployableDirectory) Deploy file (GenIC), needed for Ishmael to work. | public String | deployJar(String fileName) | public void | deployLocalFile(String pathname, String[] genicArgs) | public String | deployRar(String fileName) | public void | deployWar(String fileName) | public String[] | getDeployedObjects() All The MBean names corresponding to the deployed J2EEModules (ear, jar,
war, rar). | public String[] | getJavaVMs() All The MBean names corresponding to the used JVMs. | public String[] | getResources() All The MBean names corresponding to the deployed J2EEResources. | public Boolean | isEarDeployed(String fileName) Test if the specified filename is already deployed or not.
Parameters: fileName - the name of the ear file. | public Boolean | isJarDeployed(String fileName) Test if the specified filename is already deployed or not.
Parameters: fileName - the name of the jar file. | public Boolean | isRarDeployed(String fileName) Test if the specified filename is already deployed or not.
Parameters: fileName - the name of the rar file. | public Boolean | isWarDeployed(String fileName) Test if the specified filename is already deployed or not.
Parameters: fileName - the name of the War file. | public Boolean | removeModuleFile(String fileName) | public String | sendFile(byte[] fileContent, String fileName, boolean replaceExisting) Send a file to JOnAS Base with the given input stream and write it
in the corresponding directory, ie JONAS_BASE/apps, JONAS_BASE/ejbjars, etc. | public void | sendNotification(Notification pNotification) Send a notification to the listener. | public String | wsgenLocalFile(String pathname, Boolean unpacked) |
deployEar | public String deployEar(String fileName) throws Exception(Code) | | Deploy a J2EE application packaged in a EAR file
Parameters: fileName - file name The ObjectName of the MBean associated to the deployed J2EEApplication throws: Exception - Management operation failed |
deployFile | public String deployFile(Integer typeparam, java.lang.Byte[] bfile, String filename, String[] genicArgs, Boolean moveIntoDeployableDirectory)(Code) | | Deploy file (GenIC), needed for Ishmael to work. The file is in the
directory specified by the property "jonas.service.deployment.directory"
Parameters: typeparam - type of the file (EJB, WAR, EAR, RAR, CAR) Parameters: bfile - bytes array of the file Parameters: filename - basename of the file to be deployed (if moveIntoDeployableDirectory full path name because local file) Parameters: genicArgs - arguments for GenIC Parameters: moveIntoDeployableDirectory - true to copy the file into the deployable JOnAS_BASE directory throws: RemoteException - throws: EarServiceException - throws: ResourceServiceException - throws: JWebContainerServiceException - absolute path of the file author: Dean Jennings. |
deployJar | public String deployJar(String fileName) throws Exception(Code) | | Deploy a stand-alone J2EE module packaged in a JAR file
Parameters: fileName - file name The ObjectName of the MBean associated to the deployed module throws: Exception - Management operation failed |
deployLocalFile | public void deployLocalFile(String pathname, String[] genicArgs)(Code) | | Deploy local file and generate classes with Genic tool
Parameters: pathname - : local path name to the application Parameters: genicArgs - : list of genic's parameters |
deployRar | public String deployRar(String fileName) throws Exception(Code) | | Deploy a J2EE application packaged in a RAR file
Parameters: fileName - file name The ObjectName of the MBean associated to the deployed J2EEApplication throws: Exception - Management operation failed |
deployWar | public void deployWar(String fileName) throws Exception(Code) | | Deploy a stand-alone J2EE module packaged in a War file
Parameters: fileName - file name throws: Exception - Management operation failed |
getDeployedObjects | public String[] getDeployedObjects()(Code) | | All The MBean names corresponding to the deployed J2EEModules (ear, jar,
war, rar).
The String's array of deployed modules objects names |
getJavaVMs | public String[] getJavaVMs()(Code) | | All The MBean names corresponding to the used JVMs.
The String's array of used JVMs objects names |
getResources | public String[] getResources()(Code) | | All The MBean names corresponding to the deployed J2EEResources.
The String's array of deployed resources objects names |
isEarDeployed | public Boolean isEarDeployed(String fileName) throws Exception(Code) | | Test if the specified filename is already deployed or not.
Parameters: fileName - the name of the ear file. true if the ear is deployed, otherwise false. throws: Exception - Management operation failed |
isJarDeployed | public Boolean isJarDeployed(String fileName) throws Exception(Code) | | 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 failed |
isRarDeployed | public Boolean isRarDeployed(String fileName) throws Exception(Code) | | Test if the specified filename is already deployed or not.
Parameters: fileName - the name of the rar file. true if the rar is deployed, otherwise false. throws: Exception - Management operation failed |
isWarDeployed | public Boolean isWarDeployed(String fileName) throws Exception(Code) | | Test if the specified filename is already deployed or not.
Parameters: fileName - the name of the War file. true if the jar is deployed, otherwise false. throws: Exception - Management operation failed |
removeModuleFile | public Boolean removeModuleFile(String fileName) throws Exception(Code) | | Remove a specified J2EE module
Parameters: fileName - Name of file to remove true if file has been removed throws: Exception - if remove fails |
sendFile | public String sendFile(byte[] fileContent, String fileName, boolean replaceExisting) throws Exception(Code) | | Send a file to JOnAS Base with the given input stream and write it
in the corresponding directory, ie JONAS_BASE/apps, JONAS_BASE/ejbjars, etc.
It is based on the filename extension
Parameters: fileContent - the content (bytes) of the file Parameters: fileName - name of the file Parameters: replaceExisting - replace existing file if any the path of the file throws: Exception - if file is already present and if the user don't want to replace existing file. |
sendNotification | public void sendNotification(Notification pNotification)(Code) | | Send a notification to the listener.
Parameters: pNotification - The notification to send |
wsgenLocalFile | public String wsgenLocalFile(String pathname, Boolean unpacked)(Code) | | Apply WsGen on a local file and generate webservices artifacts
Parameters: pathname - : local path name to the component Parameters: unpacked - true if we want to have an unpacked directory as result Returns the path to the modified archive |
|
|