Apache CXF API

org.apache.cxf.management.counters
Class ResponseTimeCounter

java.lang.Object
  extended by org.apache.cxf.management.counters.ResponseTimeCounter
All Implemented Interfaces:
Counter, ResponseTimeCounterMBean, ManagedComponent

public class ResponseTimeCounter
extends Object
implements ResponseTimeCounterMBean, Counter


Field Summary
 
Fields inherited from interface org.apache.cxf.management.counters.Counter
PERFORMANCE_COUNTER
 
Constructor Summary
ResponseTimeCounter(ObjectName on)
           
 
Method Summary
 Number getAvgResponseTime()
          Get the Average Response Time NOTE: if the invocation number is 0, this method will return -1
 Number getMaxResponseTime()
           
 Number getMinResponseTime()
           
 Number getNumCheckedApplicationFaults()
           
 Number getNumInvocations()
           
 Number getNumLogicalRuntimeFaults()
           
 Number getNumRuntimeFaults()
           
 Number getNumUnCheckedApplicationFaults()
           
 ObjectName getObjectName()
           
 Number getTotalHandlingTime()
           
 void increase(MessageHandlingTimeRecorder mhtr)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseTimeCounter

public ResponseTimeCounter(ObjectName on)
Method Detail

increase

public void increase(MessageHandlingTimeRecorder mhtr)
Specified by:
increase in interface Counter

reset

public void reset()
Specified by:
reset in interface ResponseTimeCounterMBean

getObjectName

public ObjectName getObjectName()
Specified by:
getObjectName in interface ManagedComponent

getAvgResponseTime

public Number getAvgResponseTime()
Description copied from interface: ResponseTimeCounterMBean
Get the Average Response Time NOTE: if the invocation number is 0, this method will return -1

Specified by:
getAvgResponseTime in interface ResponseTimeCounterMBean

getMaxResponseTime

public Number getMaxResponseTime()
Specified by:
getMaxResponseTime in interface ResponseTimeCounterMBean

getMinResponseTime

public Number getMinResponseTime()
Specified by:
getMinResponseTime in interface ResponseTimeCounterMBean

getNumInvocations

public Number getNumInvocations()
Specified by:
getNumInvocations in interface Counter
Specified by:
getNumInvocations in interface ResponseTimeCounterMBean

getNumCheckedApplicationFaults

public Number getNumCheckedApplicationFaults()
Specified by:
getNumCheckedApplicationFaults in interface ResponseTimeCounterMBean

getNumLogicalRuntimeFaults

public Number getNumLogicalRuntimeFaults()
Specified by:
getNumLogicalRuntimeFaults in interface ResponseTimeCounterMBean

getNumRuntimeFaults

public Number getNumRuntimeFaults()
Specified by:
getNumRuntimeFaults in interface ResponseTimeCounterMBean

getNumUnCheckedApplicationFaults

public Number getNumUnCheckedApplicationFaults()
Specified by:
getNumUnCheckedApplicationFaults in interface ResponseTimeCounterMBean

getTotalHandlingTime

public Number getTotalHandlingTime()
Specified by:
getTotalHandlingTime in interface ResponseTimeCounterMBean

Apache CXF API

Apache CXF