Class Graphite

java.lang.Object
com.codahale.metrics.graphite.Graphite
All Implemented Interfaces:
GraphiteSender, Closeable, AutoCloseable

public class Graphite extends Object implements GraphiteSender
A client to a Carbon server via TCP.
  • Constructor Details

    • Graphite

      public Graphite(String hostname, int port)
      Creates a new client which connects to the given address using the default SocketFactory.
      Parameters:
      hostname - The hostname of the Carbon server
      port - The port of the Carbon server
    • Graphite

      public Graphite(String hostname, int port, SocketFactory socketFactory)
      Creates a new client which connects to the given address and socket factory.
      Parameters:
      hostname - The hostname of the Carbon server
      port - The port of the Carbon server
      socketFactory - the socket factory
    • Graphite

      public Graphite(String hostname, int port, SocketFactory socketFactory, Charset charset)
      Creates a new client which connects to the given address and socket factory using the given character set.
      Parameters:
      hostname - The hostname of the Carbon server
      port - The port of the Carbon server
      socketFactory - the socket factory
      charset - the character set used by the server
    • Graphite

      public Graphite(InetSocketAddress address)
      Creates a new client which connects to the given address using the default SocketFactory.
      Parameters:
      address - the address of the Carbon server
    • Graphite

      public Graphite(InetSocketAddress address, SocketFactory socketFactory)
      Creates a new client which connects to the given address and socket factory.
      Parameters:
      address - the address of the Carbon server
      socketFactory - the socket factory
    • Graphite

      public Graphite(InetSocketAddress address, SocketFactory socketFactory, Charset charset)
      Creates a new client which connects to the given address and socket factory using the given character set.
      Parameters:
      address - the address of the Carbon server
      socketFactory - the socket factory
      charset - the character set used by the server
  • Method Details