Class ResponseTimeCounter
- java.lang.Object
-
- 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
Constructors Constructor Description ResponseTimeCounter(ObjectName on)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenable(boolean value)NumbergetAvgResponseTime()Get the Average Response Time NOTE: if the invocation number is 0, this method will return -1NumbergetMaxResponseTime()NumbergetMinResponseTime()NumbergetNumCheckedApplicationFaults()NumbergetNumInvocations()NumbergetNumLogicalRuntimeFaults()NumbergetNumRuntimeFaults()NumbergetNumUnCheckedApplicationFaults()ObjectNamegetObjectName()NumbergetTotalHandlingTime()voidincrease(MessageHandlingTimeRecorder mhtr)booleanisEnabled()voidreset()
-
-
-
Constructor Detail
-
ResponseTimeCounter
public ResponseTimeCounter(ObjectName on)
-
-
Method Detail
-
increase
public void increase(MessageHandlingTimeRecorder mhtr)
-
reset
public void reset()
- Specified by:
resetin interfaceResponseTimeCounterMBean
-
getObjectName
public ObjectName getObjectName()
- Specified by:
getObjectNamein interfaceManagedComponent
-
getAvgResponseTime
public Number getAvgResponseTime()
Description copied from interface:ResponseTimeCounterMBeanGet the Average Response Time NOTE: if the invocation number is 0, this method will return -1- Specified by:
getAvgResponseTimein interfaceResponseTimeCounterMBean
-
getMaxResponseTime
public Number getMaxResponseTime()
- Specified by:
getMaxResponseTimein interfaceResponseTimeCounterMBean
-
getMinResponseTime
public Number getMinResponseTime()
- Specified by:
getMinResponseTimein interfaceResponseTimeCounterMBean
-
getNumInvocations
public Number getNumInvocations()
- Specified by:
getNumInvocationsin interfaceCounter- Specified by:
getNumInvocationsin interfaceResponseTimeCounterMBean
-
getNumCheckedApplicationFaults
public Number getNumCheckedApplicationFaults()
- Specified by:
getNumCheckedApplicationFaultsin interfaceResponseTimeCounterMBean
-
getNumLogicalRuntimeFaults
public Number getNumLogicalRuntimeFaults()
- Specified by:
getNumLogicalRuntimeFaultsin interfaceResponseTimeCounterMBean
-
getNumRuntimeFaults
public Number getNumRuntimeFaults()
- Specified by:
getNumRuntimeFaultsin interfaceResponseTimeCounterMBean
-
getNumUnCheckedApplicationFaults
public Number getNumUnCheckedApplicationFaults()
- Specified by:
getNumUnCheckedApplicationFaultsin interfaceResponseTimeCounterMBean
-
getTotalHandlingTime
public Number getTotalHandlingTime()
- Specified by:
getTotalHandlingTimein interfaceResponseTimeCounterMBean
-
enable
public void enable(boolean value)
- Specified by:
enablein interfaceResponseTimeCounterMBean
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfaceCounter- Specified by:
isEnabledin interfaceResponseTimeCounterMBean
-
-