de.is24.util.monitoring.status
Class ServiceStateManager

java.lang.Object
  extended by de.is24.util.monitoring.status.ServiceStateManager
All Implemented Interfaces:
ReportableObserver

public class ServiceStateManager
extends Object
implements ReportableObserver


Nested Class Summary
private  class ServiceStateManager.ServiceStateJob
           
 
Field Summary
private  ScheduledExecutorService ex
           
private static org.apache.log4j.Logger LOGGER
           
private  Map<String,ServiceState> serviceStates
           
 
Constructor Summary
ServiceStateManager()
           
 
Method Summary
 void addNewReportable(Reportable reportable)
          This method is called for each reportable that is registered on the InApplicationMonitor.
 void addServiceState(ServiceState serviceState)
           
 void initialize()
          after adding all serviceState objects once call this method to connect ServiceStates with Monitors
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

private static final org.apache.log4j.Logger LOGGER

ex

private ScheduledExecutorService ex

serviceStates

private Map<String,ServiceState> serviceStates
Constructor Detail

ServiceStateManager

public ServiceStateManager()
Method Detail

addServiceState

public void addServiceState(ServiceState serviceState)

initialize

public void initialize()
after adding all serviceState objects once call this method to connect ServiceStates with Monitors


addNewReportable

public void addNewReportable(Reportable reportable)
Description copied from interface: ReportableObserver
This method is called for each reportable that is registered on the InApplicationMonitor. Additionally, the method is called for each reportable that has been registered before the ReportableObserver has registered itself. It is guaranteed that this method is called at least once for each reportable in the InApplicationMonitor.

Specified by:
addNewReportable in interface ReportableObserver

shutdown

public void shutdown()


Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.