add back code that got lost in translation

This commit is contained in:
Xavier Léauté 2014-10-29 12:54:04 -07:00
parent 7be252599e
commit b7edda2b33
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import com.google.common.collect.ImmutableList;
import com.google.inject.Binder; import com.google.inject.Binder;
import com.google.inject.Module; import com.google.inject.Module;
import com.google.inject.Provides; import com.google.inject.Provides;
import com.google.inject.name.Names;
import com.metamx.common.lifecycle.Lifecycle; import com.metamx.common.lifecycle.Lifecycle;
import com.metamx.common.logger.Logger; import com.metamx.common.logger.Logger;
import io.airlift.command.Command; import io.airlift.command.Command;
@ -69,6 +70,9 @@ public class CliBridge extends ServerRunnable
@Override @Override
public void configure(Binder binder) 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); ConfigProvider.bind(binder, BridgeCuratorConfig.class);
binder.bind(BridgeZkCoordinator.class).in(ManageLifecycle.class); binder.bind(BridgeZkCoordinator.class).in(ManageLifecycle.class);