From b7edda2b335325d05de00d01fad26c77579870b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20L=C3=A9aut=C3=A9?= Date: Wed, 29 Oct 2014 12:54:04 -0700 Subject: [PATCH] add back code that got lost in translation --- services/src/main/java/io/druid/cli/CliBridge.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/src/main/java/io/druid/cli/CliBridge.java b/services/src/main/java/io/druid/cli/CliBridge.java index 150872cea08..824c32ec14b 100644 --- a/services/src/main/java/io/druid/cli/CliBridge.java +++ b/services/src/main/java/io/druid/cli/CliBridge.java @@ -5,6 +5,7 @@ import com.google.common.collect.ImmutableList; import com.google.inject.Binder; import com.google.inject.Module; import com.google.inject.Provides; +import com.google.inject.name.Names; import com.metamx.common.lifecycle.Lifecycle; import com.metamx.common.logger.Logger; import io.airlift.command.Command; @@ -69,6 +70,9 @@ public class CliBridge extends ServerRunnable @Override public void configure(Binder binder) { + binder.bindConstant().annotatedWith(Names.named("serviceName")).to("druid/bridge"); + binder.bindConstant().annotatedWith(Names.named("servicePort")).to(8089); + ConfigProvider.bind(binder, BridgeCuratorConfig.class); binder.bind(BridgeZkCoordinator.class).in(ManageLifecycle.class);