public class DiskSpaceSampleManager extends AbstractAlertSampleManager implements Serviceable
SampleManager
for collecting the free disk space (in MB) on the disk where Ametys Home is.AlertSampleManager.Threshold
MonitoringConstants.Period
Modifier and Type | Field and Description |
---|---|
private DiskSpaceHelper |
_diskSpaceHelper |
_body, _subject
_description, _featureName, _id, _label, _logger, _pluginName
FEEDING_PERIOD, RRD_EXT, RRD_STORAGE_DIRECTORY
Constructor and Description |
---|
DiskSpaceSampleManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
_configureDatasources(org.rrd4j.core.RrdDef rrdDef)
Provides the data sources.
|
protected String |
_getGraphTitle()
Provide the graph title.
|
protected Map<String,Object> |
_internalCollect(org.rrd4j.core.Sample sample)
Collect data into the Round Robin Database.
|
protected Map<String,AlertSampleManager.Threshold.Operator> |
getOperators()
Provides the kind of operator for triggering the alert for each datasource an alert is attached to.
|
protected Map<String,String> |
getThresholdConfigNames()
Provides the configuration names for each datasource an alert is attached to.
|
void |
service(ServiceManager manager) |
configure, getThresholdValues
_configureValueRange, _registerDatasources, _setCommonParameters, collect, configureRRDDef, enableLogging, getDescription, getId, getLabel, setPluginInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collect, configureRRDDef, getDescription, getId, getLabel
private DiskSpaceHelper _diskSpaceHelper
public DiskSpaceSampleManager()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
protected void _configureDatasources(org.rrd4j.core.RrdDef rrdDef)
AbstractSampleManager
_configureDatasources
in class AbstractSampleManager
rrdDef
- the Round Robin Database definition.protected Map<String,Object> _internalCollect(org.rrd4j.core.Sample sample) throws IOException
AbstractSampleManager
_internalCollect
in class AbstractSampleManager
sample
- the sample to collect.IOException
- thrown in case of I/O error.protected String _getGraphTitle()
AbstractSampleManager
_getGraphTitle
in class AbstractSampleManager
protected Map<String,String> getThresholdConfigNames()
AbstractAlertSampleManager
AbstractAlertSampleManager.getOperators()
getThresholdConfigNames
in class AbstractAlertSampleManager
protected Map<String,AlertSampleManager.Threshold.Operator> getOperators()
AbstractAlertSampleManager
AbstractAlertSampleManager.getThresholdConfigNames()
getOperators
in class AbstractAlertSampleManager