Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

roboll/dropwizard-daemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dropwizard Daemon

An integration of Akuma for Dropwizard.

Dependency Info

<dependency>
    <groupId>com.robertcboll.dropwizard</groupId>
    <artifactId>dropwizard-daemon</artifactId>
    <version>0.2</version>
</dependency>

Currently only available through a private maven repository:

<repository>
    <id>robertcboll-nexus-public</id>
    <name>robertcboll public</name>
    <url>http://nexus.robertcboll.com/nexus/content/groups/public/</url>
    <releases><enabled>true</enabled></releases>
    <snapshots><enabled>false</enabled></snapshots>
</repository>

Basic Usage

Make your application inherit from DaemonApplication.

public class ExampleDaemon extends DaemonApplication<Configuration>

In your application's main method, call daemonize() before run(args).

new ExampleDaemon().daemonize().run(args);

You're all set! Your application will launch as a daemon process into the background.

For a working example, fork the example project.

Releases

No releases published

Packages

No packages published