@InterfaceAudience.Private public class OperationMetrics extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
FAILED_COUNT |
private Counter |
failedCounter |
private static String |
SUBMITTED_COUNT |
private Counter |
submittedCounter |
private static String |
TIME |
private Histogram |
timeHisto |
Constructor and Description |
---|
OperationMetrics(MetricRegistry registry,
String metricNamePrefix) |
Modifier and Type | Method and Description |
---|---|
Counter |
getFailedCounter() |
Counter |
getSubmittedCounter() |
Histogram |
getTimeHisto() |
private static final String SUBMITTED_COUNT
private static final String TIME
private static final String FAILED_COUNT
private final Counter submittedCounter
private final Counter failedCounter
public OperationMetrics(MetricRegistry registry, String metricNamePrefix)
public Counter getSubmittedCounter()
public Histogram getTimeHisto()
public Counter getFailedCounter()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.