|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.internal.metrics.impl.GaugeImpl<S>
S - public class GaugeImpl<S>
Default Metric implementation.
| Constructor Summary | |
|---|---|
GaugeImpl(String name,
ILogger logger)
|
|
| Method Summary | |
|---|---|
String |
getName()
Gets the name that identifies this metric. |
double |
readDouble()
Reads the current available value as a double. |
long |
readLong()
Reads the current available value as a long. |
void |
render(StringBuilder sb)
Renders the metric. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GaugeImpl(String name,
ILogger logger)
| Method Detail |
|---|
public String getName()
Metric
getName in interface Metricpublic void render(StringBuilder sb)
Metric
render in interface Metricsb - the StringBuilder to write to.public long readLong()
GaugeMath.round(double).
If no input is available, or there a problems obtaining a value from the input, 0 is returned.
readLong in interface Gaugepublic double readDouble()
Gauge
readDouble in interface Gauge
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||