public class StandardScanMetrics extends Object implements ScanMetrics
ScanMetrics.Metric| Constructor and Description |
|---|
StandardScanMetrics() |
| Modifier and Type | Method and Description |
|---|---|
long |
get(ScanMetrics.Metric metric)
Get the value of a standard counter.
|
long |
getCustom(String metric)
Get the value of a custom counter.
|
void |
increment(ScanMetrics.Metric metric)
Increment a standard counter by 1.
|
void |
incrementCustom(String metric)
Like
ScanMetrics.incrementCustom(String, long), except the delta is 1. |
void |
incrementCustom(String metric,
long delta)
Increment a custom counter by
delta. |
public long getCustom(String metric)
ScanMetricsScanMetrics.incrementCustom(String) and ScanMetrics.incrementCustom(String, long)
should be observable through this method, never the effects of prior calls to
ScanMetrics.increment(com.thinkaurelius.titan.diskstorage.keycolumnvalue.scan.ScanMetrics.Metric).getCustom in interface ScanMetricspublic void incrementCustom(String metric, long delta)
ScanMetricsdelta. The effects of calls
to method should only be observable through ScanMetrics.getCustom(String),
never through ScanMetrics.get(com.thinkaurelius.titan.diskstorage.keycolumnvalue.scan.ScanMetrics.Metric).incrementCustom in interface ScanMetricsmetric - the name of the counterdelta - the amount to add to the counterpublic void incrementCustom(String metric)
ScanMetricsScanMetrics.incrementCustom(String, long), except the delta is 1.incrementCustom in interface ScanMetricsmetric - the name of the counter to increment by 1public long get(ScanMetrics.Metric metric)
ScanMetricsget in interface ScanMetricsmetric - the standard counter whose value should be returnedpublic void increment(ScanMetrics.Metric metric)
ScanMetricsincrement in interface ScanMetricsmetric - the standard counter whose value will be increased by 1Copyright © 2012–2015. All rights reserved.