@Experimental(value=METRICS) public interface MetricsLogger extends java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.util.concurrent.atomic.AtomicLong |
LAST_REPORTED_MILLIS |
static java.util.concurrent.locks.Lock |
REPORTING_LOCK |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCumulativeString(java.util.Set<MetricName> metricFilter) |
Logger |
getMetricLogger() |
void |
reset() |
default void |
tryLoggingMetrics(java.lang.String header,
java.util.Set<MetricName> metricFilter,
long minimumLoggingFrequencyMillis,
boolean resetMetrics) |
static final java.util.concurrent.locks.Lock REPORTING_LOCK
static final java.util.concurrent.atomic.AtomicLong LAST_REPORTED_MILLIS
default void tryLoggingMetrics(java.lang.String header, java.util.Set<MetricName> metricFilter, long minimumLoggingFrequencyMillis, boolean resetMetrics)
Logger getMetricLogger()
java.lang.String getCumulativeString(java.util.Set<MetricName> metricFilter)
void reset()