de.is24.util.monitoring.state2graphite
Class GraphiteConnection

java.lang.Object
  extended by de.is24.util.monitoring.state2graphite.GraphiteConnection

public class GraphiteConnection
extends Object


Field Summary
private static long connectionFailureLogDelay
           
private  ConnectionState connectionState
           
private  String graphiteHost
           
private  int graphitePort
           
private  long lastReportTimestamp
           
private  org.apache.log4j.Logger LOGGER
           
 
Constructor Summary
GraphiteConnection(String graphiteHost, int graphitePort)
           
 
Method Summary
private  void handleException(IOException e, String action)
           
 void send(String msg)
          Part of this code taken from http://neopatel.blogspot.de/2011/04/logging-to-graphite-monitoring-tool.html
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

private final org.apache.log4j.Logger LOGGER

graphiteHost

private final String graphiteHost

graphitePort

private final int graphitePort

connectionState

private ConnectionState connectionState

lastReportTimestamp

private long lastReportTimestamp

connectionFailureLogDelay

private static long connectionFailureLogDelay
Constructor Detail

GraphiteConnection

public GraphiteConnection(String graphiteHost,
                          int graphitePort)
Method Detail

send

public void send(String msg)
Part of this code taken from http://neopatel.blogspot.de/2011/04/logging-to-graphite-monitoring-tool.html


handleException

private void handleException(IOException e,
                             String action)


Copyright © 2013 Immobilien Scout GmbH. All Rights Reserved.