de.is24.util.monitoring.state2graphite
Class StateValuesToGraphite

java.lang.Object
  extended by de.is24.util.monitoring.state2graphite.StateValuesToGraphite
All Implemented Interfaces:
ReportableObserver

public class StateValuesToGraphite
extends Object
implements ReportableObserver


Nested Class Summary
private  class StateValuesToGraphite.ReportStateValuesJob
           
 
Field Summary
private  ScheduledExecutorService ex
           
private static org.apache.log4j.Logger LOGGER
           
private  Map<String,StateValueProvider> stateValues
           
 
Constructor Summary
StateValuesToGraphite(String graphiteHost, int graphitePort, String appName)
           
StateValuesToGraphite(String appName, LocalHostNameResolver localHostNameResolver, GraphiteConnection graphiteClient)
           
 
Method Summary
 void addNewReportable(Reportable reportable)
          This method is called for each reportable that is registered on the InApplicationMonitor.
 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

stateValues

private Map<String,StateValueProvider> stateValues
Constructor Detail

StateValuesToGraphite

public StateValuesToGraphite(String graphiteHost,
                             int graphitePort,
                             String appName)

StateValuesToGraphite

StateValuesToGraphite(String appName,
                      LocalHostNameResolver localHostNameResolver,
                      GraphiteConnection graphiteClient)
Method Detail

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.