com.netflix.servo.monitor
Class BasicInformational
java.lang.Object
com.netflix.servo.monitor.AbstractMonitor<java.lang.String>
com.netflix.servo.monitor.BasicInformational
- All Implemented Interfaces:
- Informational, Monitor<java.lang.String>
public final class BasicInformational
- extends AbstractMonitor<java.lang.String>
- implements Informational
A simple informational implementation that maintains a string value.
|
Method Summary |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getValue()
Returns the current value for the monitor. |
int |
hashCode()
|
void |
setValue(java.lang.String value)
Set the value to show for this monitor. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
BasicInformational
public BasicInformational(MonitorConfig config)
- Creates a new instance of the counter.
setValue
public void setValue(java.lang.String value)
- Set the value to show for this monitor.
getValue
public java.lang.String getValue()
- Returns the current value for the monitor.
- Specified by:
getValue in interface Monitor<java.lang.String>
equals
public boolean equals(java.lang.Object obj)
-
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
-
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
-
- Overrides:
toString in class java.lang.Object