org.objectweb.jonas.server.J2EEServerMBean Class Reference

List of all members.

Public Member Functions

 J2EEServerMBean () throws MBeanException
String[] getDeployedObjects ()
String[] getResources ()
String[] getJavaVMs ()
void sendNotification (Notification pNotification)
void addNotificationListener (NotificationListener pListner, NotificationFilter pFilter, java.lang.Object pHandback) throws java.lang.IllegalArgumentException
String deployJar (String fileName) throws Exception
void deployWar (String fileName) throws Exception
String deployEar (String fileName) throws Exception
String deployRar (String fileName) throws Exception
Boolean isEarDeployed (String fileName) throws Exception
Boolean isRarDeployed (String fileName) throws Exception
Boolean isJarDeployed (String fileName) throws Exception
Boolean isWarDeployed (String fileName) throws Exception
String deployFile (Integer typeparam, java.lang.Byte[] bfile, String filename, String[] genicArgs)

Package Functions

void copy (File src, File dst) throws IOException

Detailed Description

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

Michel-Ange Anton

Definition at line 82 of file J2EEServerMBean.java.


Constructor & Destructor Documentation

org.objectweb.jonas.server.J2EEServerMBean.J2EEServerMBean  )  throws MBeanException
 

Default constructor

Exceptions:
MBeanException if super constructor fails

Definition at line 98 of file J2EEServerMBean.java.


Member Function Documentation

void org.objectweb.jonas.server.J2EEServerMBean.addNotificationListener NotificationListener  pListner,
NotificationFilter  pFilter,
java.lang.Object  pHandback
throws java.lang.IllegalArgumentException
 

Add a new listener.

Parameters:
pListner Listener to notify
pFilter Notification filter
pHandback ??
Exceptions:
java.lang.IllegalArgumentException if notification is not done

Definition at line 148 of file J2EEServerMBean.java.

void org.objectweb.jonas.server.J2EEServerMBean.copy File  src,
File  dst
throws IOException [package]
 

Copy src file to dst file.

Parameters:
src file to copy
dst file where the file need to be copied
Exceptions:
IOException if the copy fails

Definition at line 399 of file J2EEServerMBean.java.

Referenced by org.objectweb.jonas.server.J2EEServerMBean.deployFile().

String org.objectweb.jonas.server.J2EEServerMBean.deployEar String  fileName  )  throws Exception
 

Deploy a J2EE application packaged in a EAR file

Parameters:
fileName file name
Returns:
The ObjectName of the MBean associated to the deployed J2EE Application
Exceptions:
Exception Management operation failed

Definition at line 179 of file J2EEServerMBean.java.

String org.objectweb.jonas.server.J2EEServerMBean.deployFile Integer  typeparam,
java.lang.Byte[]  bfile,
String  filename,
String[]  genicArgs
 

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)
bfile bytes array of the file
filename basename of the file to be deployed
genicArgs arguments for GenIC
Exceptions:
RemoteException 
EarServiceException 
ResourceServiceException 
JWebContainerServiceException 
Returns:
absolute path of the file
Author:
Dean Jennings. <da_jennings@junta.com.au>

Definition at line 248 of file J2EEServerMBean.java.

References org.objectweb.jonas_lib.genclientstub.wrapper.ClientGenStubWrapper.callClientGenStubExecute(), org.objectweb.jonas_lib.genclientstub.wrapper.ClientGenStubWrapper.callClientGenStubIsInputModifed(), org.objectweb.jonas_ws.wsgen.wrapper.WsGenWrapper.callWsGenExecute(), org.objectweb.jonas_ws.wsgen.wrapper.WsGenWrapper.callWsGenIsInputModifed(), org.objectweb.jonas.server.J2EEServerMBean.copy(), org.objectweb.jonas.service.ServiceManager.getEarService(), org.objectweb.jonas.service.ServiceManager.getEjbService(), org.objectweb.jonas.service.ServiceManager.getInstance(), org.objectweb.jonas.service.ServiceManager.getResourceService(), and org.objectweb.jonas.service.ServiceManager.getWebContainerService().

Here is the call graph for this function:

String org.objectweb.jonas.server.J2EEServerMBean.deployJar String  fileName  )  throws Exception
 

Deploy a stand-alone J2EE module packaged in a JAR file

Parameters:
fileName file name
Returns:
The ObjectName of the MBean associated to the deployed module
Exceptions:
Exception Management operation failed

Definition at line 159 of file J2EEServerMBean.java.

String org.objectweb.jonas.server.J2EEServerMBean.deployRar String  fileName  )  throws Exception
 

Deploy a J2EE application packaged in a RAR file

Parameters:
fileName file name
Returns:
The ObjectName of the MBean associated to the deployed J2EE Application
Exceptions:
Exception Management operation failed

Definition at line 190 of file J2EEServerMBean.java.

void org.objectweb.jonas.server.J2EEServerMBean.deployWar String  fileName  )  throws Exception
 

Deploy a stand-alone J2EE module packaged in a War file

Parameters:
fileName file name
Exceptions:
Exception Management operation failed

Definition at line 168 of file J2EEServerMBean.java.

String [] org.objectweb.jonas.server.J2EEServerMBean.getDeployedObjects  ) 
 

All The MBean names corresponding to the deployed J2EEModules (ear, jar, war, rar).

Returns:
The String's array of deployed modules objects names

Definition at line 110 of file J2EEServerMBean.java.

String [] org.objectweb.jonas.server.J2EEServerMBean.getJavaVMs  ) 
 

All The MBean names corresponding to the used JVMs.

Returns:
The String's array of used JVMs objects names

Definition at line 128 of file J2EEServerMBean.java.

String [] org.objectweb.jonas.server.J2EEServerMBean.getResources  ) 
 

All The MBean names corresponding to the deployed J2EEResources.

Returns:
The String's array of deployed resources objects names

Definition at line 119 of file J2EEServerMBean.java.

Boolean org.objectweb.jonas.server.J2EEServerMBean.isEarDeployed String  fileName  )  throws Exception
 

Test if the specified filename is already deployed or not.

Parameters:
fileName the name of the ear file.
Returns:
true if the ear is deployed, otherwise false.
Exceptions:
Exception Management operation failed

Definition at line 200 of file J2EEServerMBean.java.

Boolean org.objectweb.jonas.server.J2EEServerMBean.isJarDeployed String  fileName  )  throws Exception
 

Test if the specified filename is already deployed or not.

Parameters:
fileName the name of the jar file.
Returns:
true if the jar is deployed, otherwise false.
Exceptions:
Exception Management operation failed

Definition at line 220 of file J2EEServerMBean.java.

Boolean org.objectweb.jonas.server.J2EEServerMBean.isRarDeployed String  fileName  )  throws Exception
 

Test if the specified filename is already deployed or not.

Parameters:
fileName the name of the rar file.
Returns:
true if the rar is deployed, otherwise false.
Exceptions:
Exception Management operation failed

Definition at line 210 of file J2EEServerMBean.java.

Boolean org.objectweb.jonas.server.J2EEServerMBean.isWarDeployed String  fileName  )  throws Exception
 

Test if the specified filename is already deployed or not.

Parameters:
fileName the name of the War file.
Returns:
true if the jar is deployed, otherwise false.
Exceptions:
Exception Management operation failed

Definition at line 230 of file J2EEServerMBean.java.

void org.objectweb.jonas.server.J2EEServerMBean.sendNotification Notification  pNotification  ) 
 

Send a notification to the listener.

Parameters:
pNotification The notification to send

Definition at line 137 of file J2EEServerMBean.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:08:03 2005 for JOnAS by  doxygen 1.3.9.1