org.bitrepository.monitoringservice.alarm
Class BasicMonitoringServiceAlerter

java.lang.Object
  extended by org.bitrepository.service.contributor.MessageDispatcher
      extended by org.bitrepository.service.AlarmDispatcher
          extended by 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.


Field Summary
 
Fields inherited from class org.bitrepository.service.contributor.MessageDispatcher
settings
 
Constructor Summary
BasicMonitoringServiceAlerter(Settings settings, MessageSender sender, AlarmLevel alarmLevel, StatusStore statusStore)
           
 
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 org.bitrepository.service.AlarmDispatcher
emergency, error, sendAlarm, warning
 
Methods inherited from class org.bitrepository.service.contributor.MessageDispatcher
dispatchMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.