public abstract class AbstractMonitor<T> extends java.lang.Object implements Monitor<T>
Modifier and Type | Field and Description |
---|---|
protected MonitorConfig |
config |
Modifier | Constructor and Description |
---|---|
protected |
AbstractMonitor(MonitorConfig config)
Create a new instance with the specified configuration.
|
Modifier and Type | Method and Description |
---|---|
MonitorConfig |
getConfig()
Configuration used to identify a monitor and provide metadata used in aggregations.
|
T |
getValue()
Returns the current value for the monitor for the default polling interval.
|
protected final MonitorConfig config
protected AbstractMonitor(MonitorConfig config)
public MonitorConfig getConfig()