storm.kafka
Class KafkaUtils.KafkaOffsetMetric
java.lang.Object
storm.kafka.KafkaUtils.KafkaOffsetMetric
- All Implemented Interfaces:
- backtype.storm.metric.api.IMetric
- Enclosing class:
- KafkaUtils
public static class KafkaUtils.KafkaOffsetMetric
- extends Object
- implements backtype.storm.metric.api.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 backtype.storm.metric.api.IMetric
refreshPartitions
public void refreshPartitions(Set<Partition> partitions)
Copyright © 2014. All rights reserved.