org.objectweb.jonas.resource
Interface ResourceServiceImplMBean

All Known Implementing Classes:
ResourceServiceImpl

public interface ResourceServiceImplMBean

MBean Interface for Resource Service Management MBean type: Standard MBean model: Inheritance (ResourceServiceImpl)


Method Summary
 String deployRarMBean(String fileName)
          Deploy an RAR, used by the JMX Management.
 List getAutoloadDirectories()
          Return the list of "autoload" directories for RAR containers.
 Integer getCurrentNumberOfRars()
           
 Integer getCurrentNumberOfResource()
           
 List getDeployableRars()
          Return the list of installed RAR container ready to deploy.
 List getDeployedRars()
           
 List getInstalledRars()
           
 Set getRarNames()
          This method is added temporarily.
 String getRarsDirectory()
          Return the Rars directory.
 void unDeployRarMBean(String fileName)
          Undeploy an RAR, used by the JMX Management.
 

Method Detail

deployRarMBean

String deployRarMBean(String fileName)
                      throws RemoteException,
                             ResourceServiceException
Deploy an RAR, used by the JMX Management.

Parameters:
fileName - the fileName of the rar which must be be deployed.
Returns:
The ObjectName of the MBean associated to the deployed J2EE Application
Throws:
RemoteException - if rmi call failed.
ResourceServiceException - if the deployment of the RAR failed.

unDeployRarMBean

void unDeployRarMBean(String fileName)
                      throws RemoteException,
                             ResourceServiceException
Undeploy an RAR, used by the JMX Management.

Parameters:
fileName - the fileName of the rar which must be be undeployed.
Throws:
RemoteException - if rmi call failed.
ResourceServiceException - if the undeployment of the RAR failed.

getCurrentNumberOfResource

Integer getCurrentNumberOfResource()
Returns:
current number of rars deployed in the JOnAS server

getCurrentNumberOfRars

Integer getCurrentNumberOfRars()
Returns:
current number of rars deployed in the JOnAS server

getInstalledRars

List getInstalledRars()
                      throws Exception
Returns:
the list of RAR files found in JONAS_BASE/rars and in JONAS_BASE/rars/autoload
Throws:
Exception - if error retrieving the list

getRarNames

Set getRarNames()
This method is added temporarily. It will disapear when Rars will have their associated MBeans (when Rars will become manageable)

Returns:
the names of the rars currently deployed in the JOnAS server

getAutoloadDirectories

List getAutoloadDirectories()
Return the list of "autoload" directories for RAR containers.

Returns:
The list of all "autoload" directories

getRarsDirectory

String getRarsDirectory()
Return the Rars directory.

Returns:
The Rars directory

getDeployedRars

List getDeployedRars()
                     throws Exception
Returns:
the list of RAR files deployed
Throws:
Exception - if error retrieving the list

getDeployableRars

List getDeployableRars()
                       throws Exception
Return the list of installed RAR container ready to deploy.

Returns:
The list of deployable RAR container
Throws:
Exception - if error retrieving the list


Copyright © 2007 OW2 Consortium. All Rights Reserved.