diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2015-02-15 10:12:23 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2015-02-15 10:14:03 +0100 |
commit | b425162fd7314400f7b25ce4bb732b7cec8d73d8 (patch) | |
tree | bb49ac8f806b7338951fe4ecf0500082b6e4f81a /kamon-core/src/main/scala | |
parent | 19869e0dae72d7e5c77ced6f4a62945fc7aea0d1 (diff) | |
download | Kamon-b425162fd7314400f7b25ce4bb732b7cec8d73d8.tar.gz Kamon-b425162fd7314400f7b25ce4bb732b7cec8d73d8.tar.bz2 Kamon-b425162fd7314400f7b25ce4bb732b7cec8d73d8.zip |
+ core: add a Kamon.shutdown() method.
Diffstat (limited to 'kamon-core/src/main/scala')
-rw-r--r-- | kamon-core/src/main/scala/kamon/Kamon.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kamon-core/src/main/scala/kamon/Kamon.scala b/kamon-core/src/main/scala/kamon/Kamon.scala index ab9ce05e..231fc530 100644 --- a/kamon-core/src/main/scala/kamon/Kamon.scala +++ b/kamon-core/src/main/scala/kamon/Kamon.scala @@ -58,6 +58,12 @@ object Kamon { def start(): Unit = start(ConfigFactory.load) + def shutdown(): Unit = { + _coreComponents = None + _system.shutdown() + _system = null + } + def metrics: MetricsExtension = ifStarted(_.metrics) |