org.objectweb.jonas.container
Class EJBModule

java.lang.Object
  extended byjavax.management.NotificationBroadcasterSupport
      extended byorg.objectweb.jonas.management.ReconfigDispatcher
          extended byorg.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
              extended byorg.objectweb.jonas.management.j2eemanagement.J2EEDeployedObject
                  extended byorg.objectweb.jonas.management.j2eemanagement.J2EEModule
                      extended byorg.objectweb.jonas.container.EJBModule
All Implemented Interfaces:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ReconfigDispatcherMBean

public class EJBModule
extends J2EEModule

MBean class for EJBModule management

Author:
Adriana Danes JSR 77 (J2EE Management Standard), S. Ali Tokmen, Malek Chahine: EJB statistics

Field Summary
protected  JContainer cont
           
 
Fields inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
J2EE_TYPE_APPLICATION, J2EE_TYPE_SERVER, NAME
 
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
EJBModule(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName, JContainer cont, java.lang.String fileName, java.lang.String containerName, java.lang.String j2eeAppName, java.net.URL earUrl)
           
 
Method Summary
protected  void addEjb(java.lang.String ejbObjectName)
           
 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.String getContainerName()
           
 int getCurrentNumberOfBMP()
           
 int getCurrentNumberOfCMP()
           
 int getCurrentNumberOfEJB()
           
 int getCurrentNumberOfMDB()
           
 int getCurrentNumberOfSBF()
           
 int getCurrentNumberOfSBL()
           
 java.lang.String getEarON()
           
 java.net.URL getEarURL()
           
 java.lang.String[] getEjbs()
           
 java.lang.String getFileName()
           
 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
 long getTotalProcessingTime()
          get the total time spent in container + business execution for all beans of this ejb container
 int getWarningThreshold()
           
 boolean isInEarCase()
           
 void setMonitoringEnabled(boolean monitoringEnabled)
           
 void setWarningThreshold(int warningThreshold)
           
 
Methods inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEModule
getJavaVMs
 
Methods inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEDeployedObject
getDeploymentDescriptor, getJonasDeploymentDescriptor, getServer, setDeploymentDescriptor, setJonasDeploymentDescriptor
 
Methods inherited from class org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject
getObjectName, isEventProvider, isStateManageable, isStatisticsProvider
 
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
handleNotification, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cont

protected JContainer cont
Constructor Detail

EJBModule

public EJBModule(javax.management.MBeanServer mBeanServer,
                 javax.management.ObjectName objectName,
                 JContainer cont,
                 java.lang.String fileName,
                 java.lang.String containerName,
                 java.lang.String j2eeAppName,
                 java.net.URL earUrl)
Method Detail

getEjbs

public java.lang.String[] getEjbs()

addEjb

protected void addEjb(java.lang.String ejbObjectName)

getCurrentNumberOfEJB

public int getCurrentNumberOfEJB()

getCurrentNumberOfBMP

public int getCurrentNumberOfBMP()

getCurrentNumberOfCMP

public int getCurrentNumberOfCMP()

getCurrentNumberOfSBF

public int getCurrentNumberOfSBF()

getCurrentNumberOfSBL

public int getCurrentNumberOfSBL()

getCurrentNumberOfMDB

public int getCurrentNumberOfMDB()

getContainerName

public java.lang.String getContainerName()

getFileName

public java.lang.String getFileName()

getEarON

public java.lang.String getEarON()

getEarURL

public java.net.URL getEarURL()

isInEarCase

public boolean isInEarCase()

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

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.