storm.kafka
Class KafkaUtils.KafkaOffsetMetric
java.lang.Object
storm.kafka.KafkaUtils.KafkaOffsetMetric
- All Implemented Interfaces:
- IMetric
- Enclosing class:
- KafkaUtils
public static class KafkaUtils.KafkaOffsetMetric
- extends Object
- implements IMetric
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KafkaUtils.KafkaOffsetMetric
public KafkaUtils.KafkaOffsetMetric(String topic,
DynamicPartitionConnections connections)
setLatestEmittedOffset
public void setLatestEmittedOffset(Partition partition,
long offset)
getValueAndReset
public Object getValueAndReset()
- Specified by:
getValueAndReset
in interface IMetric
refreshPartitions
public void refreshPartitions(Set<Partition> partitions)
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.