com.netflix.servo.monitor
Class BasicInformational

java.lang.Object
  extended by com.netflix.servo.monitor.AbstractMonitor<java.lang.String>
      extended by 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.


Field Summary
 
Fields inherited from class com.netflix.servo.monitor.AbstractMonitor
config
 
Constructor Summary
BasicInformational(MonitorConfig config)
          Creates a new instance of the counter.
 
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 com.netflix.servo.monitor.AbstractMonitor
getConfig
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.netflix.servo.monitor.Monitor
getConfig
 

Constructor Detail

BasicInformational

public BasicInformational(MonitorConfig config)
Creates a new instance of the counter.

Method Detail

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