org.ow2.jonas.ejb2.internal.mbean
Class EJBModule

java.lang.Object
  extended by org.ow2.jonas.lib.management.javaee.ManagedObject
      extended by org.ow2.jonas.lib.management.javaee.J2EEManagedObject
          extended by org.ow2.jonas.lib.management.javaee.J2EEDeployedObject
              extended by org.ow2.jonas.lib.management.javaee.J2EEModule
                  extended by org.ow2.jonas.ejb2.internal.mbean.EJBModule

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.ow2.jonas.lib.management.javaee.J2EEManagedObject
J2EE_TYPE_APPLICATION, J2EE_TYPE_SERVER, NAME
 
Constructor Summary
EJBModule(MBeanServer mBeanServer, ObjectName objectName, JContainer cont, String fileName, String containerName, String j2eeAppName, URL earUrl)
           
 
Method Summary
 void addEjb(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
 String getContainerName()
           
 int getCurrentNumberOfBMP()
           
 int getCurrentNumberOfCMP()
           
 int getCurrentNumberOfEJB()
           
 int getCurrentNumberOfMDB()
           
 int getCurrentNumberOfSBF()
           
 int getCurrentNumberOfSBL()
           
 String getEarON()
           
 URL getEarURL()
           
 String[] getEjbs()
           
 String getFileName()
           
 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
 long getTotalProcessingTime()
          get the total time spent in container + business execution for all beans of this ejb container
 URL getUrl()
           
 int getWarningThreshold()
           
 boolean isInEarCase()
           
 void setMonitoringEnabled(boolean monitoringEnabled)
           
 void setWarningThreshold(int warningThreshold)
           
 
Methods inherited from class org.ow2.jonas.lib.management.javaee.J2EEModule
getJavaVMs, setJavaVMs
 
Methods inherited from class org.ow2.jonas.lib.management.javaee.J2EEDeployedObject
getDeploymentDescriptor, getJonasDeploymentDescriptor, getServer, isJ2EEDeployedObjectType, setDeploymentDescriptor, setJonasDeploymentDescriptor, setServer
 
Methods inherited from class org.ow2.jonas.lib.management.javaee.J2EEManagedObject
getObjectName, isEventProvider, isStateManageable, isStatisticsProvider, setEventProvider, setObjectName, setStateManageable, setStatisticsProvider
 
Methods inherited from class org.ow2.jonas.lib.management.javaee.ManagedObject
sendNotification, sendReconfigNotification, sendSaveNotification, setModelMBean
 
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(MBeanServer mBeanServer,
                 ObjectName objectName,
                 JContainer cont,
                 String fileName,
                 String containerName,
                 String j2eeAppName,
                 URL earUrl)
Method Detail

getEjbs

public String[] getEjbs()

addEjb

public void addEjb(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 String getContainerName()

getFileName

public String getFileName()

getUrl

public URL getUrl()

getEarON

public String getEarON()

getEarURL

public URL getEarURL()

isInEarCase

public boolean isInEarCase()

getNumberOfCalls

public 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

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.


Copyright © 2010 OW2 Consortium. All Rights Reserved.