org.ow2.jonas.ejb2.internal
Interface JOnASEJBServiceMBean

All Known Implementing Classes:
JOnASEJBService

public interface JOnASEJBServiceMBean

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


Method Summary
 void applyMonitorSettings(String scope)
          Applies the current monitoring settings to deployed EJBs.
 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
 Integer getCurrentNumberOfContainer()
           
 Set<ObjectName> getDataSourceDependence(String dsName)
           
 List<String> getDeployedJars()
          Return the list of all loaded EJB container.
 Set<ObjectName> getJmsConnectionFactoryDependence(String cfName)
           
 Set<ObjectName> getJmsDestinationDependence(String dsName)
           
 Set<ObjectName> getMailFactoryDependence(String mfName)
           
 boolean getMonitoringEnabled()
           
 long 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
 Integer getTotalCurrentNumberOfBeanType()
           
 Integer getTotalCurrentNumberOfBMPType()
           
 Integer getTotalCurrentNumberOfCMPType()
           
 Integer getTotalCurrentNumberOfMDBType()
           
 Integer getTotalCurrentNumberOfSBFType()
           
 Integer getTotalCurrentNumberOfSBLType()
           
 long getTotalProcessingTime()
          get the total time spent in container + business execution for all beans of this ejb container
 int getWarningThreshold()
           
 boolean isJarLoaded(String fileName)
          Test if the specified filename is already deployed or not.
 void setMonitoringEnabled(boolean monitoringEnabled)
           
 void setWarningThreshold(int warningThreshold)
           
 void syncAllEntities(boolean passivate)
          Synchronized all entity bean containers.
 

Method Detail

getCurrentNumberOfContainer

Integer getCurrentNumberOfContainer()
Returns:
Integer Total Number of Container actually in JOnAS

getTotalCurrentNumberOfBeanType

Integer getTotalCurrentNumberOfBeanType()
Returns:
Integer Total Number of Bean Type actually in JOnAS

getTotalCurrentNumberOfBMPType

Integer getTotalCurrentNumberOfBMPType()
Returns:
Integer Total Number of Bmp Type actually in JOnAS

getTotalCurrentNumberOfCMPType

Integer getTotalCurrentNumberOfCMPType()
Returns:
Integer Total Number of Cmp Type actually in JOnAS

getTotalCurrentNumberOfSBFType

Integer getTotalCurrentNumberOfSBFType()
Returns:
Integer Total Number of Sbf Type actually in JOnAS

getTotalCurrentNumberOfSBLType

Integer getTotalCurrentNumberOfSBLType()
Returns:
Integer Total Number of Sbl Type actually in JOnAS

getTotalCurrentNumberOfMDBType

Integer getTotalCurrentNumberOfMDBType()
Returns:
Integer Total Number of Mdb Type actually in JOnAS

getDataSourceDependence

Set<ObjectName> getDataSourceDependence(String dsName)
Returns:
the ObjectName of all the ejbs using this datasource

getJmsDestinationDependence

Set<ObjectName> getJmsDestinationDependence(String dsName)
Returns:
the ObjectName of all the ejb using this destination.

getJmsConnectionFactoryDependence

Set<ObjectName> getJmsConnectionFactoryDependence(String cfName)
Returns:
the ObjectName of all the ejb using this Connection Factory.

getMailFactoryDependence

Set<ObjectName> getMailFactoryDependence(String mfName)
Returns:
the ObjectName of all the ejb using a given Mail Factory.

getDeployedJars

List<String> getDeployedJars()
Return the list of all loaded EJB container.

Returns:
The list of deployed EJB container

syncAllEntities

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

Parameters:
passivate - passivate instances after synchronization.

isJarLoaded

boolean isJarLoaded(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.

getMonitoringEnabled

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

setMonitoringEnabled

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

getWarningThreshold

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

setWarningThreshold

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

getNumberOfCalls

long 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

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

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

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

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

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



Copyright © 2010 OW2 Consortium. All Rights Reserved.