org.objectweb.jonas.ear.internal
Interface JOnASEARServiceMBean

All Known Implementing Classes:
JOnASEARService

public interface JOnASEARServiceMBean

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

Author:
Florent Benoit, Ludovic Bert

Method Summary
 String getAppsDirectory()
          Return the Apps directory.
 List getAutoloadDirectories()
          Return the list of "autoload" directories for web applications.
 Integer getCurrentNumberOfEars()
           
 List getDeployableEars()
          Return the list of installed Applications ready to deploy.
 List getDeployedEars()
          Return the list of all loaded Applications.
 Set getEarNames()
          This method is added temporarily.
 List getInstalledEars()
          Return the list of installed Applications.
 boolean isEarLoaded(String fileName)
          Test if the specified filename is already deployed or not
 

Method Detail

getCurrentNumberOfEars

Integer getCurrentNumberOfEars()
Returns:
current number of ears deployed in the JOnAS server

getInstalledEars

List getInstalledEars()
                      throws Exception
Return the list of installed Applications. The EAR files or the directories with expanded Applications are searched in JONAS_BASE/apps and all Applications directories 'autoload'.

Returns:
The list of EAR files or the directories with expanded Applications found
Throws:
Exception - if the list can't be retrieved

getEarNames

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

isEarLoaded

boolean isEarLoaded(String fileName)
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, else false.

getDeployedEars

List getDeployedEars()
Return the list of all loaded Applications.

Returns:
The list of deployed Applications

getDeployableEars

List getDeployableEars()
                       throws Exception
Return the list of installed Applications ready to deploy.

Returns:
The list of deployable Applications
Throws:
Exception - if the list of deployable ears can't be returned

getAutoloadDirectories

List getAutoloadDirectories()
Return the list of "autoload" directories for web applications.

Returns:
The list of all "autoload" directories

getAppsDirectory

String getAppsDirectory()
Return the Apps directory.

Returns:
The Apps directory


Copyright © 2007 OW2 Consortium. All Rights Reserved.