org.bitrepository.monitoringservice
Class MonitoringService

java.lang.Object
  extended by org.bitrepository.monitoringservice.MonitoringService
All Implemented Interfaces:
LifeCycledService

public class MonitoringService
extends Object
implements LifeCycledService

The monitoring service.


Constructor Summary
MonitoringService(Settings settings, SecurityManager securityManager)
          Constructor.
 
Method Summary
 long getCollectionInterval()
           
 int getMaxRetries()
           
 Map<String,ComponentStatus> getStatus()
           
 void shutdown()
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoringService

public MonitoringService(Settings settings,
                         SecurityManager securityManager)
Constructor.

Parameters:
settings - The settings.
securityManager - The security manager.
Method Detail

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.