org.bitrepository.monitoringservice.alarm
Class BasicMonitoringServiceAlerter
java.lang.Object
org.bitrepository.service.contributor.MessageDispatcher
org.bitrepository.service.AlarmDispatcher
org.bitrepository.monitoringservice.alarm.BasicMonitoringServiceAlerter
- All Implemented Interfaces:
- MonitorAlerter
public class BasicMonitoringServiceAlerter
- extends AlarmDispatcher
- implements MonitorAlerter
Class for the monitoring service keep a watch on non responding components, and send alarms if needed.
Method Summary |
void |
checkStatuses()
Check for components that have not responded withing the given constraints, and send alarm
message if there is any. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicMonitoringServiceAlerter
public BasicMonitoringServiceAlerter(Settings settings,
MessageSender sender,
AlarmLevel alarmLevel,
StatusStore statusStore)
- Parameters:
statusStore
- The store for the status results from the components.sender
- Used for sending the alarms.alarmLevel
- Only send alarms at this alarms level or higher.statusStore
- Used to maintain the status of the components.
checkStatuses
public void checkStatuses()
- Description copied from interface:
MonitorAlerter
- Check for components that have not responded withing the given constraints, and send alarm
message if there is any.
- Specified by:
checkStatuses
in interface MonitorAlerter
Copyright © 2010-2013 The State and University Library, The Royal Library and The State Archives, Denmark. All Rights Reserved.