public KafkaMetricsProcessorService(CConfiguration conf,
ZKClientService zkClientService,
KafkaMetricsProcessorServiceFactory kafkaMetricsProcessorServiceFactory) {
int partitionSize = conf.getInt(MetricsConstants.ConfigKeys.KAFKA_PARTITION_SIZE,
MetricsConstants.DEFAULT_KAFKA_PARTITION_SIZE);
multiElection = new MultiLeaderElection(
zkClientService, "metrics-processor", partitionSize,
createPartitionChangeHandler(kafkaMetricsProcessorServiceFactory));
this.completion = SettableFuture.create();
}