public class CodahaleMetricsContext extends Object implements MetricsContext, Closeable
Modifier and Type | Field and Description |
---|---|
protected String |
baseName |
protected com.codahale.metrics.Timer |
checkedApplicationFaults |
protected com.codahale.metrics.Meter |
incomingData |
protected com.codahale.metrics.Counter |
inFlight |
protected com.codahale.metrics.Timer |
logicalRuntimeFaults |
protected com.codahale.metrics.Meter |
outgoingData |
protected com.codahale.metrics.MetricRegistry |
registry |
protected com.codahale.metrics.Timer |
runtimeFaults |
protected com.codahale.metrics.Timer |
totals |
protected com.codahale.metrics.Timer |
uncheckedApplicationFaults |
Constructor and Description |
---|
CodahaleMetricsContext(String prefix,
com.codahale.metrics.MetricRegistry registry) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getBaseName() |
com.codahale.metrics.Timer |
getCheckedApplicationFaults() |
com.codahale.metrics.Meter |
getIncomingData() |
com.codahale.metrics.Counter |
getInFlight() |
com.codahale.metrics.Timer |
getLogicalRuntimeFaults() |
com.codahale.metrics.Meter |
getOutgoingData() |
com.codahale.metrics.MetricRegistry |
getRegistry() |
com.codahale.metrics.Timer |
getRuntimeFaults() |
com.codahale.metrics.Timer |
getTotals() |
com.codahale.metrics.Timer |
getUncheckedApplicationFaults() |
void |
start(Exchange ex)
Will be called at the start of invoke (or when added to a started MessageMetrics).
|
void |
stop(long timeInNS,
long inSize,
long outSize,
Exchange ex)
Called when the invocation is complete.
|
protected com.codahale.metrics.Counter inFlight
protected com.codahale.metrics.Timer totals
protected com.codahale.metrics.Timer uncheckedApplicationFaults
protected com.codahale.metrics.Timer checkedApplicationFaults
protected com.codahale.metrics.Timer runtimeFaults
protected com.codahale.metrics.Timer logicalRuntimeFaults
protected com.codahale.metrics.Meter incomingData
protected com.codahale.metrics.Meter outgoingData
protected final String baseName
protected final com.codahale.metrics.MetricRegistry registry
public CodahaleMetricsContext(String prefix, com.codahale.metrics.MetricRegistry registry)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void start(Exchange ex)
MetricsContext
start
in interface MetricsContext
public void stop(long timeInNS, long inSize, long outSize, Exchange ex)
MetricsContext
stop
in interface MetricsContext
public com.codahale.metrics.Counter getInFlight()
public com.codahale.metrics.Timer getTotals()
public com.codahale.metrics.Timer getUncheckedApplicationFaults()
public com.codahale.metrics.Timer getCheckedApplicationFaults()
public com.codahale.metrics.Timer getRuntimeFaults()
public com.codahale.metrics.Timer getLogicalRuntimeFaults()
public com.codahale.metrics.Meter getIncomingData()
public com.codahale.metrics.Meter getOutgoingData()
public String getBaseName()
public com.codahale.metrics.MetricRegistry getRegistry()
Apache CXF