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
 java.lang.String deployRarMBean(java.lang.String fileName)
          Deploy an RAR, used by the JMX Management.
 java.util.List getAutoloadDirectories()
          Return the list of "autoload" directories for RAR containers.
 java.lang.Integer getCurrentNumberOfRars()
           
 java.lang.Integer getCurrentNumberOfResource()
           
 java.util.List getDeployableRars()
          Return the list of installed RAR container ready to deploy.
 java.util.List getDeployedRars()
           
 java.util.List getInstalledRars()
           
 java.util.Set getRarNames()
          This method is added temporarily.
 java.lang.String getRarsDirectory()
          Return the Rars directory.
 boolean isRarLoaded(java.lang.String fileName)
          Test if the specified filename is already deployed or not
 void unDeployRarMBean(java.lang.String fileName)
          Undeploy an RAR, used by the JMX Management.
 

Method Detail

deployRarMBean

java.lang.String deployRarMBean(java.lang.String fileName)
                                throws java.rmi.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:
java.rmi.RemoteException - if rmi call failed.
ResourceServiceException - if the deployment of the RAR failed.

unDeployRarMBean

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

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

getCurrentNumberOfResource

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

getCurrentNumberOfRars

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

getDeployedRars

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

getInstalledRars

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

getRarNames

java.util.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

isRarLoaded

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

getDeployableRars

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

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

getAutoloadDirectories

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

Returns:
The list of all "autoload" directories

getRarsDirectory

java.lang.String getRarsDirectory()
Return the Rars directory.

Returns:
The Rars directory