T - type of value being held.public class ValueGauge<T extends Number>
extends com.yammer.metrics.core.Gauge<T>
| Constructor and Description | 
|---|
| ValueGauge(GiraphMetricsRegistry registry,
          String name)Constructor that registers Gauge in MetricsRegistry. | 
| Modifier and Type | Method and Description | 
|---|---|
| double | getDouble()Get double representation of value held. | 
| long | getLong()Get long representation of value held. | 
| ValueGauge<T> | set(T value)Set value held by this object. | 
| T | value() | 
public ValueGauge(GiraphMetricsRegistry registry, String name)
registry - GiraphMetricsRegistry to use.name - String name of Gauge.public double getDouble()
public long getLong()
public ValueGauge<T> set(T value)
value - value to set.Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.