public class CodahaleMetricsContext extends Object implements MetricsContext, Closeable
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseName |
protected Timer |
checkedApplicationFaults |
protected Meter |
incomingData |
protected Counter |
inFlight |
protected Timer |
logicalRuntimeFaults |
protected Meter |
outgoingData |
protected MetricRegistry |
registry |
protected Timer |
runtimeFaults |
protected Timer |
totals |
protected Timer |
uncheckedApplicationFaults |
| Constructor and Description |
|---|
CodahaleMetricsContext(String prefix,
MetricRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getBaseName() |
Timer |
getCheckedApplicationFaults() |
Meter |
getIncomingData() |
Counter |
getInFlight() |
Timer |
getLogicalRuntimeFaults() |
Meter |
getOutgoingData() |
MetricRegistry |
getRegistry() |
Timer |
getRuntimeFaults() |
Timer |
getTotals() |
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 Counter inFlight
protected Timer totals
protected Timer uncheckedApplicationFaults
protected Timer checkedApplicationFaults
protected Timer runtimeFaults
protected Timer logicalRuntimeFaults
protected Meter incomingData
protected Meter outgoingData
protected final String baseName
protected final MetricRegistry registry
public CodahaleMetricsContext(String prefix, MetricRegistry registry)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void start(Exchange ex)
MetricsContextstart in interface MetricsContextpublic void stop(long timeInNS,
long inSize,
long outSize,
Exchange ex)
MetricsContextstop in interface MetricsContextpublic Counter getInFlight()
public Timer getTotals()
public Timer getUncheckedApplicationFaults()
public Timer getCheckedApplicationFaults()
public Timer getRuntimeFaults()
public Timer getLogicalRuntimeFaults()
public Meter getIncomingData()
public Meter getOutgoingData()
public String getBaseName()
public MetricRegistry getRegistry()
Apache CXF