Dropwizard bundle¶
Overview¶
The AtlasDB Dropwizard bundle can be added to Dropwizard applications. This will add startup commands to launch
the AtlasDB Console and CLIs such as sweep and timestamp.
Warning
These commands will only work if the server is started with a leader or timelock block in the configuration.
Getting Started¶
To configure a Dropwizard application to use the AtlasDB Dropwizard bundle:
- Add
bootstrap.addBundle(new AtlasDbBundle<>());to the io.dropwizard.Application#initialize method. - Implement interface
AtlasDbConfigurationProviderin the Configuration class of the Dropwizard application.
Running commands¶
You can run AtlasDB tasks present in AtlasDB Console and CLIs using:
java -jar application.jar atlasdb [-h] {console,sweep,migrate,timestamp} <parameters> config.yml
For example, for running the sweep cli:
java -jar application.jar atlasdb sweep --table <table name> config.yml
Or the migration cli:
java -jar application.jar atlasdb migrate --offline --config-root "/atlas" –-fromConfig from.yml –-setup to.yml