riemann.bin

Main function.

-main

(-main)(-main config)(-main command config & [test-name])

Start Riemann. Loads a configuration file from the first of its args.

add-config-dir-to-classpath

(add-config-dir-to-classpath config-file)

config-file

The configuration file loaded by the bin tool

ensure-dynamic-classloader

(ensure-dynamic-classloader)

handle-signals

(handle-signals)

Sets up POSIX signal handlers.

pid

(pid)

Process identifier, such as it is on the JVM. :-/

pom-version

(pom-version)

Return version from Maven POM file.

reload!

(reload!)

Reloads the given configuration file by clearing the task scheduler, shutting down the current core, and loading a new one.

reload-lock

run-app!

(run-app! setup)

Start Riemann with the given setup function. The setup function is responsible for executing code that you would normally put into your riemann.config file, e.g. setting up streams.

run-tests

(run-tests test-name-pattern)

Run all tests matching test-name-pattern. The test output will be saved in the test.output.file value if this property is set.

run-tests-with-format

(run-tests-with-format test-name-pattern)

Run all tests matching test-name-pattern. If the test.output.format property is set to junit, the test output will be JUnit compatible.

set-config-file!

(set-config-file! file)

Sets the config file used by Riemann. Adds the config file’s enclosing directory to the classpath as well.

version

(version)

Return version from Leiningen environment or embeddd POM properties.