diff options
author | Jan Srnicek <jsrnicek@cisco.com> | 2017-08-10 12:05:41 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-08-14 07:01:06 +0000 |
commit | d0688f2883b3231e743dcd53bbf2203ec4639c6e (patch) | |
tree | 1997647b5f6a3f8531c86bd2aa2196f993f662b7 /infra/minimal-distribution-core | |
parent | c9196e020a935593ba4ee48b37228e7e731dfaca (diff) |
HONEYCOMB-381 - Shutdown handler
Change-Id: I5cf4317e5838470d1e792090c67d97db76ed14f2
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'infra/minimal-distribution-core')
-rw-r--r-- | infra/minimal-distribution-core/src/main/java/io/fd/honeycomb/infra/distro/data/ConfigAndOperationalPipelineModule.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/infra/minimal-distribution-core/src/main/java/io/fd/honeycomb/infra/distro/data/ConfigAndOperationalPipelineModule.java b/infra/minimal-distribution-core/src/main/java/io/fd/honeycomb/infra/distro/data/ConfigAndOperationalPipelineModule.java index 00e3a61a8..29cccccdf 100644 --- a/infra/minimal-distribution-core/src/main/java/io/fd/honeycomb/infra/distro/data/ConfigAndOperationalPipelineModule.java +++ b/infra/minimal-distribution-core/src/main/java/io/fd/honeycomb/infra/distro/data/ConfigAndOperationalPipelineModule.java @@ -22,6 +22,8 @@ import com.google.inject.name.Names; import io.fd.honeycomb.data.ModifiableDataManager; import io.fd.honeycomb.data.ReadableDataManager; import io.fd.honeycomb.data.init.DataTreeInitializer; +import io.fd.honeycomb.data.init.ShutdownHandler; +import io.fd.honeycomb.impl.ShutdownHandlerImpl; import io.fd.honeycomb.infra.distro.data.config.WriterRegistryProvider; import io.fd.honeycomb.infra.distro.data.oper.ReadableDTDelegProvider; import io.fd.honeycomb.infra.distro.data.oper.ReaderRegistryProvider; @@ -42,6 +44,9 @@ public class ConfigAndOperationalPipelineModule extends PrivateModule { public static final String HONEYCOMB_CONFIG = "honeycomb-config"; protected void configure() { + bind(ShutdownHandler.class).to(ShutdownHandlerImpl.class).in(Singleton.class); + expose(ShutdownHandler.class); + // Expose registries for plugin reader/writer factories bind(WriterRegistry.class).toProvider(WriterRegistryProvider.class).in(Singleton.class); expose(WriterRegistry.class); |