com.netflix.servo.monitor
Class AbstractMonitor<T>

java.lang.Object
  extended by com.netflix.servo.monitor.AbstractMonitor<T>
All Implemented Interfaces:
Monitor<T>
Direct Known Subclasses:
BasicCounter, BasicGauge, BasicInformational, BasicTimer, BucketTimer, MaxGauge, MinGauge, PeakRateCounter, ResettableCounter, StatsMonitor, StepCounter

public abstract class AbstractMonitor<T>
extends java.lang.Object
implements Monitor<T>

Base type to simplify implementing monitors.


Field Summary
protected  MonitorConfig config
           
 
Constructor Summary
protected AbstractMonitor(MonitorConfig config)
          Create a new instance with the specified configuration.
 
Method Summary
 MonitorConfig getConfig()
          Configuration used to identify a monitor and provide metadata used in aggregations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.netflix.servo.monitor.Monitor
getValue
 

Field Detail

config

protected final MonitorConfig config
Constructor Detail

AbstractMonitor

protected AbstractMonitor(MonitorConfig config)
Create a new instance with the specified configuration.

Method Detail

getConfig

public MonitorConfig getConfig()
Configuration used to identify a monitor and provide metadata used in aggregations.

Specified by:
getConfig in interface Monitor<T>