Package org.apache.cxf.metrics.codahale
Class CodahaleMetricsContext
java.lang.Object
org.apache.cxf.metrics.codahale.CodahaleMetricsContext
- All Implemented Interfaces:
Closeable,AutoCloseable,MetricsContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected com.codahale.metrics.Timerprotected com.codahale.metrics.Meterprotected com.codahale.metrics.Counterprotected com.codahale.metrics.Timerprotected com.codahale.metrics.Meterprotected final com.codahale.metrics.MetricRegistryprotected com.codahale.metrics.Timerprotected com.codahale.metrics.Timerprotected com.codahale.metrics.Timer -
Constructor Summary
ConstructorsConstructorDescriptionCodahaleMetricsContext(String prefix, com.codahale.metrics.MetricRegistry registry) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()com.codahale.metrics.Timercom.codahale.metrics.Metercom.codahale.metrics.Countercom.codahale.metrics.Timercom.codahale.metrics.Metercom.codahale.metrics.MetricRegistrycom.codahale.metrics.Timercom.codahale.metrics.Timercom.codahale.metrics.Timervoidstart(org.apache.cxf.message.Exchange ex) Will be called at the start of invoke (or when added to a started MessageMetrics).voidstop(long timeInNS, long inSize, long outSize, org.apache.cxf.message.Exchange ex) Called when the invocation is complete.
-
Field Details
-
inFlight
protected com.codahale.metrics.Counter inFlight -
totals
protected com.codahale.metrics.Timer totals -
uncheckedApplicationFaults
protected com.codahale.metrics.Timer uncheckedApplicationFaults -
checkedApplicationFaults
protected com.codahale.metrics.Timer checkedApplicationFaults -
runtimeFaults
protected com.codahale.metrics.Timer runtimeFaults -
logicalRuntimeFaults
protected com.codahale.metrics.Timer logicalRuntimeFaults -
incomingData
protected com.codahale.metrics.Meter incomingData -
outgoingData
protected com.codahale.metrics.Meter outgoingData -
baseName
-
registry
protected final com.codahale.metrics.MetricRegistry registry
-
-
Constructor Details
-
CodahaleMetricsContext
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
start
public void start(org.apache.cxf.message.Exchange ex) Description copied from interface:MetricsContextWill be called at the start of invoke (or when added to a started MessageMetrics). This is when the metrics should increment "inFlight" counts and other stats. There is no need to record a "start time" as the invoke time will be passed into the stop method.- Specified by:
startin interfaceMetricsContext
-
stop
public void stop(long timeInNS, long inSize, long outSize, org.apache.cxf.message.Exchange ex) Description copied from interface:MetricsContextCalled when the invocation is complete.- Specified by:
stopin interfaceMetricsContext
-
getInFlight
public com.codahale.metrics.Counter getInFlight() -
getTotals
public com.codahale.metrics.Timer getTotals() -
getUncheckedApplicationFaults
public com.codahale.metrics.Timer getUncheckedApplicationFaults() -
getCheckedApplicationFaults
public com.codahale.metrics.Timer getCheckedApplicationFaults() -
getRuntimeFaults
public com.codahale.metrics.Timer getRuntimeFaults() -
getLogicalRuntimeFaults
public com.codahale.metrics.Timer getLogicalRuntimeFaults() -
getIncomingData
public com.codahale.metrics.Meter getIncomingData() -
getOutgoingData
public com.codahale.metrics.Meter getOutgoingData() -
getBaseName
-
getRegistry
public com.codahale.metrics.MetricRegistry getRegistry()
-