com.sun.ejb.base.stats
Class MethodMonitor

java.lang.Object
  extended by com.sun.ejb.base.stats.MethodMonitor

public class MethodMonitor
extends Object

A Class for providing stats for an EJB method All concrete S1AS containers instantiate one instance of this class for each EJB method.

Author:
Mahesh Kannan

Constructor Summary
MethodMonitor(Method method, boolean prefixWithClassName)
           
 
Method Summary
 void appendStats(StringBuffer sbuf)
           
 long getExecutionTime()
           
 String getMethodName()
           
 int getTotalInvocations()
           
 int getTotalNumErrors()
           
 int getTotalNumSuccess()
           
 void postInvoke(Throwable th)
           
 void preInvoke()
           
 void resetAllStats(boolean monitorOn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodMonitor

public MethodMonitor(Method method,
                     boolean prefixWithClassName)
Method Detail

preInvoke

public void preInvoke()

postInvoke

public void postInvoke(Throwable th)

resetAllStats

public void resetAllStats(boolean monitorOn)

getMethodName

public String getMethodName()

getTotalInvocations

public int getTotalInvocations()

getExecutionTime

public long getExecutionTime()

getTotalNumErrors

public int getTotalNumErrors()

getTotalNumSuccess

public int getTotalNumSuccess()

appendStats

public void appendStats(StringBuffer sbuf)


Copyright © 2012 GlassFish Community. All Rights Reserved.