org.objectweb.jonas.ear
Interface EarServiceImplMBean

All Known Implementing Classes:
EarServiceImpl

public interface EarServiceImplMBean

JOnAS EAR Service MBean interface. This interface provides a description for the EAR service management.

Author:
Florent Benoit, Ludovic Bert

Method Summary
 void deployEarMBean(java.lang.String fileName)
          Deploy an EAR, used by the JMX Management.
 java.lang.Integer getCurrentNumberOfEars()
           
 java.util.Set getEarNames()
          This method is added temporarily.
 void unDeployEarMBean(java.lang.String fileName)
          Undeploy an EAR, used by the JMX Management.
 

Method Detail

deployEarMBean

public void deployEarMBean(java.lang.String fileName)
                    throws java.rmi.RemoteException,
                           EarServiceException
Deploy an EAR, used by the JMX Management.
Parameters:
fileName - the fileName of the ear which must be be deployed.
Throws:
java.rmi.RemoteException - if rmi call failed.
EarServiceException - if the deployment of the EAR failed.

unDeployEarMBean

public void unDeployEarMBean(java.lang.String fileName)
                      throws java.rmi.RemoteException,
                             EarServiceException
Undeploy an EAR, used by the JMX Management.
Parameters:
fileName - the fileName of the ear which must be be undeployed.
Throws:
java.rmi.RemoteException - if rmi call failed.
EarServiceException - if the undeployment of the EAR failed.

getCurrentNumberOfEars

public java.lang.Integer getCurrentNumberOfEars()
Returns:
current number of ears deployed in the JOnAS server

getEarNames

public java.util.Set getEarNames()
This method is added temporarily. It will disapear when Ears will have their associated MBeans (when Ears will become manageable)
Returns:
the names of the ears currently deployed in the JOnAS server