fix missing service name/port bindings for peons

This commit is contained in:
Xavier Léauté 2014-11-03 21:11:49 -08:00
parent 8b1edfd464
commit 4b6438537e
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,7 @@ import com.google.inject.Injector;
import com.google.inject.Key;
import com.google.inject.Module;
import com.google.inject.multibindings.MapBinder;
import com.google.inject.name.Names;
import com.metamx.common.lifecycle.Lifecycle;
import com.metamx.common.logger.Logger;
import io.airlift.command.Arguments;
@ -107,6 +108,9 @@ public class CliPeon extends GuiceRunnable
@Override
public void configure(Binder binder)
{
binder.bindConstant().annotatedWith(Names.named("serviceName")).to("druid/peon");
binder.bindConstant().annotatedWith(Names.named("servicePort")).to(-1);
PolyBind.createChoice(
binder,
"druid.indexer.task.chathandler.type",