lifecycleListeners.add(indexerLifecycleListener);
}
@PostConstruct
public void start() throws LeaderElectionSetupException, IOException, InterruptedException, KeeperException {
leaderElection = new LeaderElection(zk, "Indexer Master",
hbaseConf.get(ConfKeys.ZK_ROOT_NODE) + "/masters",
new MyLeaderElectionCallback());
for (IndexerDefinition indexerDefinition : indexerModel.getIndexers()) {
executor.schedule(new BatchStateUpdater(indexerDefinition.getName(), indexerModel, getJobClient(), executor,