public class RRDsFeederTimerTask extends TimerTask implements Component, LogEnabled, Serviceable, Initializable, Disposable, MonitoringConstants
TimerTask for creating and feeding RRDs files in order to
produce graphs for monitoring:
MonitoringConstants.Period| Modifier and Type | Field and Description |
|---|---|
private static String |
__CONFIG_ADMIN_MAIL |
private static String |
__CONFIG_ALERTS_ENABLED |
private static String |
__CONFIG_FROM_MAIL |
private Map<String,Map<String,Boolean>> |
_currentAlerts
Tells if there is a current alert, i.e.
|
private I18nUtils |
_i18nUtils |
private Logger |
_logger |
private MonitoringExtensionPoint |
_monitoringExtensionPoint |
private String |
_rrdStoragePath |
private Timer |
_timer |
FEEDING_PERIOD, RRD_EXT, RRD_STORAGE_DIRECTORY| Constructor and Description |
|---|
RRDsFeederTimerTask() |
| Modifier and Type | Method and Description |
|---|---|
private void |
_checkIfAlert(AlertSampleManager sampleManager,
Map<String,Object> collectedValues) |
private void |
_sendAlertMail(I18nizableText subject,
I18nizableText body,
String currentValue,
String thresholdValue) |
void |
dispose() |
void |
enableLogging(Logger logger) |
void |
initialize() |
void |
run() |
void |
service(ServiceManager manager) |
cancel, scheduledExecutionTimeprivate static final String __CONFIG_ALERTS_ENABLED
private static final String __CONFIG_FROM_MAIL
private static final String __CONFIG_ADMIN_MAIL
private MonitoringExtensionPoint _monitoringExtensionPoint
private String _rrdStoragePath
private I18nUtils _i18nUtils
public RRDsFeederTimerTask()
public void enableLogging(Logger logger)
enableLogging in interface LogEnabledpublic void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void initialize() throws Exception
initialize in interface InitializableExceptionprivate void _checkIfAlert(AlertSampleManager sampleManager, Map<String,Object> collectedValues)
private void _sendAlertMail(I18nizableText subject, I18nizableText body, String currentValue, String thresholdValue)
public void dispose()
dispose in interface Disposable