org.bitrepository.monitoringservice
Class MonitoringService
java.lang.Object
org.bitrepository.monitoringservice.MonitoringService
- All Implemented Interfaces:
- LifeCycledService
public class MonitoringService
- extends Object
- implements LifeCycledService
The monitoring service.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MonitoringService
public MonitoringService(Settings settings,
SecurityManager securityManager)
- Constructor.
- Parameters:
settings
- The settings.securityManager
- The security manager.
getStatus
public Map<String,ComponentStatus> getStatus()
- Returns:
- The map of the status for the components.
start
public void start()
- Specified by:
start
in interface LifeCycledService
getMaxRetries
public int getMaxRetries()
- Returns:
- The maximum number of attempts to retrieve a status from a component before dispatching an alarm.
getCollectionInterval
public long getCollectionInterval()
- Returns:
- The interval between collecting status from the components.
shutdown
public void shutdown()
- Specified by:
shutdown
in interface LifeCycledService
Copyright © 2010-2013 The State and University Library, The Royal Library and The State Archives, Denmark. All Rights Reserved.