Class GraphiteRabbitMQ

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

public class GraphiteRabbitMQ extends Object implements GraphiteSender
A rabbit-mq client to a Carbon server.
  • Constructor Details

    • GraphiteRabbitMQ

      public GraphiteRabbitMQ(com.rabbitmq.client.ConnectionFactory connectionFactory, String exchange)
      Creates a new client with a given a ConnectionFactory and an amqp exchange
      Parameters:
      connectionFactory - the ConnectionFactory used to establish connection and publish to graphite server
      exchange - the amqp exchange
    • GraphiteRabbitMQ

      public GraphiteRabbitMQ(String rabbitHost, Integer rabbitPort, String rabbitUsername, String rabbitPassword, String exchange)
      Creates a new client given connection details
      Parameters:
      rabbitHost - the rabbitmq server host
      rabbitPort - the rabbitmq server port
      rabbitUsername - the rabbitmq server username
      rabbitPassword - the rabbitmq server password
      exchange - the amqp exchange
    • GraphiteRabbitMQ

      public GraphiteRabbitMQ(String rabbitHost, Integer rabbitPort, String rabbitUsername, String rabbitPassword, String exchange, Integer rabbitConnectionTimeoutMS, Integer rabbitSocketTimeoutMS, Integer rabbitRequestedHeartbeatInSeconds)
      Creates a new client given connection details
      Parameters:
      rabbitHost - the rabbitmq server host
      rabbitPort - the rabbitmq server port
      rabbitUsername - the rabbitmq server username
      rabbitPassword - the rabbitmq server password
      exchange - the amqp exchange
      rabbitConnectionTimeoutMS - the connection timeout in milliseconds
      rabbitSocketTimeoutMS - the socket timeout in milliseconds
      rabbitRequestedHeartbeatInSeconds - the hearthbeat in seconds
  • Method Details