|
||||||||||
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 Metric
public void render(StringBuilder sb)
Metric
render
in interface Metric
sb
- the StringBuilder to write to.public long readLong()
Gauge
Math.round(double)
.
If no input is available, or there a problems obtaining a value from the input, 0 is returned.
readLong
in interface Gauge
public double readDouble()
Gauge
readDouble
in interface Gauge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |