Skip to content

phaneesh/dropwizard-rmq-healthcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dropwizard RMQ Healthcheck Bundle Travis build status

This bundle adds a RabbitMQ healthcheck This bundle compiles only on Java 8.

Usage

This makes it easier perform healthchecks on RabbitMQ

Build instructions

  • Clone the source:

    git clone github.com/phaneesh/dropwizard-rmq-healthcheck
    
  • Build

    mvn install
    

Maven Dependency

  • Use the following maven dependency:
<dependency>
    <groupId>io.dropwizard</groupId>
    <artifactId>dropwizard-rmq-healthcheck</artifactId>
    <version>1.0.0-SNAPSHOT</version>
</dependency>

Using RMQ Healthcheck Bundle

Bootstrap

    @Override
    public void initialize(final Bootstrap...) {
        bootstrap.addBundle(new RabbitHealthCheckBundle() {
            
            public RabbitConfig withConnection() {
                return <rmq connetion>;
            }
            
            public List<String> withQueues() {
                return <list of queues>;
            }
        });
    }

About

A simple to use RMQ Healthcheck bundle which does more than simple connection checks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages