org.objectweb.jonas.container
Interface EJBServiceImplMBean

All Known Implementing Classes:
EJBServiceImpl

public interface EJBServiceImplMBean

MBean Interface for EJB Service Management MBean type: Standard MBean model: Inheritance (EJBServiceImpl)


Method Summary
 void applyMonitorSettings(java.lang.String scope)
          Applies the current monitoring settings to deployed EJBs.
 java.lang.String createContainerMBean(java.lang.String file)
          Create an ejb container for the EJBs contained in a .jar (or .xml) file
 java.util.List getAutoloadDirectories()
          Return the list of "autoload" directories for web applications.
 long getAverageBusinessProcessingTime()
          get the average time spent in business execution for all beans of this ejb container per request
 long getAverageProcessingTime()
          get the average time spent in container + business execution for all beans of this ejb container per request
 java.lang.Integer getCurrentNumberOfContainer()
           
 java.util.Set getDataSourceDependence(java.lang.String dsName)
          MBean method
 java.util.List getDeployableJars()
          Return the list of installed EJB container ready to deploy.
 java.util.List getDeployedJars()
          Return the list of all loaded EJB container.
 java.lang.String getEjbjarsDirectory()
          Return the Ejbjars directory.
 java.util.List getInstalledJars()
          Return the list of installed EJB containers.
 java.util.Set getJmsConnectionFactoryDependence(java.lang.String cfName)
          MBean method
 java.util.Set getJmsDestinationDependence(java.lang.String dsName)
          MBean method
 java.util.Set getMailFactoryDependence(java.lang.String mfName)
          MBean method
 boolean getMonitoringEnabled()
           
 int getNumberOfCalls()
          get the total number of calls on all beans of this ejb container
 long getTotalBusinessProcessingTime()
          get the total time spent in business execution for all beans of this ejb container
 java.lang.Integer getTotalCurrentNumberOfBeanType()
           
 java.lang.Integer getTotalCurrentNumberOfBMPType()
           
 java.lang.Integer getTotalCurrentNumberOfCMPType()
           
 java.lang.Integer getTotalCurrentNumberOfMDBType()
           
 java.lang.Integer getTotalCurrentNumberOfSBFType()
           
 java.lang.Integer getTotalCurrentNumberOfSBLType()
           
 long getTotalProcessingTime()
          get the total time spent in container + business execution for all beans of this ejb container
 int getWarningThreshold()
           
 boolean isJarLoaded(java.lang.String fileName)
          Test if the specified filename is already deployed or not
 void removeContainerMBean(java.lang.String fileName)
          remove a container application
 void setMonitoringEnabled(boolean monitoringEnabled)
           
 void setWarningThreshold(int warningThreshold)
           
 void syncAllEntities(boolean passivate)
          Synchronized all entity bean containers
 

Method Detail

getCurrentNumberOfContainer

public java.lang.Integer getCurrentNumberOfContainer()
Returns:
Integer Total Number of Container actually in JOnAS

getTotalCurrentNumberOfBeanType

public java.lang.Integer getTotalCurrentNumberOfBeanType()
Returns:
Integer Total Number of Bean Type actually in JOnAS

getTotalCurrentNumberOfBMPType

public java.lang.Integer getTotalCurrentNumberOfBMPType()
Returns:
Integer Total Number of Bmp Type actually in JOnAS

getTotalCurrentNumberOfCMPType

public java.lang.Integer getTotalCurrentNumberOfCMPType()
Returns:
Integer Total Number of Cmp Type actually in JOnAS

getTotalCurrentNumberOfSBFType

public java.lang.Integer getTotalCurrentNumberOfSBFType()
Returns:
Integer Total Number of Sbf Type actually in JOnAS

getTotalCurrentNumberOfSBLType

public java.lang.Integer getTotalCurrentNumberOfSBLType()
Returns:
Integer Total Number of Sbl Type actually in JOnAS

getTotalCurrentNumberOfMDBType

public java.lang.Integer getTotalCurrentNumberOfMDBType()
Returns:
Integer Total Number of Mdb Type actually in JOnAS

getDataSourceDependence

public java.util.Set getDataSourceDependence(java.lang.String dsName)
MBean method

Returns:
the ObjectName of all the ejbs using this datasource

getJmsDestinationDependence

public java.util.Set getJmsDestinationDependence(java.lang.String dsName)
MBean method

Returns:
the ObjectName of all the ejb using this destination.

getJmsConnectionFactoryDependence

public java.util.Set getJmsConnectionFactoryDependence(java.lang.String cfName)
MBean method

Returns:
the ObjectName of all the ejb using this Connection Factory.

getMailFactoryDependence

public java.util.Set getMailFactoryDependence(java.lang.String mfName)
MBean method

Returns:
the ObjectName of all the ejb using a given Mail Factory.

removeContainerMBean

public void removeContainerMBean(java.lang.String fileName)
                          throws java.lang.Exception
remove a container application

Throws:
java.lang.Exception

createContainerMBean

public java.lang.String createContainerMBean(java.lang.String file)
                                      throws java.lang.Exception
Create an ejb container for the EJBs contained in a .jar (or .xml) file

Parameters:
file - Name of the file to be deployed
Returns:
The ObjectName of the MBean associated to the container (to the deployed module)
Throws:
java.lang.Exception

getInstalledJars

public java.util.List getInstalledJars()
                                throws java.lang.Exception
Return the list of installed EJB containers. The JAR files or the directories with expanded EJB container are searched in JONAS_BASE/ejbjars and all ejbjar directories 'autoload'.

Returns:
The list of JAR files or the directories with expanded EJB container found
Throws:
java.lang.Exception - if the list can't be retrieved

syncAllEntities

public void syncAllEntities(boolean passivate)
Synchronized all entity bean containers

Parameters:
passivate - passivate instances after synchronization.

isJarLoaded

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

getDeployedJars

public java.util.List getDeployedJars()
Return the list of all loaded EJB container.

Returns:
The list of deployed EJB container

getDeployableJars

public java.util.List getDeployableJars()
                                 throws java.lang.Exception
Return the list of installed EJB container ready to deploy.

Returns:
The list of deployable EJB container
Throws:
java.lang.Exception

getAutoloadDirectories

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

Returns:
The list of all "autoload" directories

getEjbjarsDirectory

public java.lang.String getEjbjarsDirectory()
Return the Ejbjars directory.

Returns:
The Ejbjars directory

getMonitoringEnabled

public boolean getMonitoringEnabled()
Returns:
Will EJB monitoring enabled for EJBs deployed in the future?

setMonitoringEnabled

public void setMonitoringEnabled(boolean monitoringEnabled)
Parameters:
monitoringEnabled - Whether EJB monitoring will enabled for EJBs deployed in the future.

getWarningThreshold

public int getWarningThreshold()
Returns:
Number of milliseconds after which methods of EJBs deployed in the future will start warning.

setWarningThreshold

public void setWarningThreshold(int warningThreshold)
Parameters:
warningThreshold - Number of milliseconds after which methods of EJBs deployed in the future will start warning.

getNumberOfCalls

public int getNumberOfCalls()
get the total number of calls on all beans of this ejb container

Returns:
the total number of calls on all beans of this ejb container

getTotalProcessingTime

public long getTotalProcessingTime()
get the total time spent in container + business execution for all beans of this ejb container

Returns:
the total time spent in container + business execution for all beans of this ejb container

getTotalBusinessProcessingTime

public long getTotalBusinessProcessingTime()
get the total time spent in business execution for all beans of this ejb container

Returns:
the total time spent in business execution for all beans of this ejb container

getAverageProcessingTime

public long getAverageProcessingTime()
get the average time spent in container + business execution for all beans of this ejb container per request

Returns:
the average time spent in container + business execution for all beans of this ejb container per request

getAverageBusinessProcessingTime

public long getAverageBusinessProcessingTime()
get the average time spent in business execution for all beans of this ejb container per request

Returns:
the average time spent in business execution for all beans of this ejb container per request

applyMonitorSettings

public void applyMonitorSettings(java.lang.String scope)
Applies the current monitoring settings to deployed EJBs.