storm.kafka
Class KafkaUtils.KafkaOffsetMetric

java.lang.Object
  extended by storm.kafka.KafkaUtils.KafkaOffsetMetric
All Implemented Interfaces:
IMetric
Enclosing class:
KafkaUtils

public static class KafkaUtils.KafkaOffsetMetric
extends Object
implements IMetric


Constructor Summary
KafkaUtils.KafkaOffsetMetric(String topic, DynamicPartitionConnections connections)
           
 
Method Summary
 Object getValueAndReset()
           
 void refreshPartitions(Set<Partition> partitions)
           
 void setLatestEmittedOffset(Partition partition, long offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KafkaUtils.KafkaOffsetMetric

public KafkaUtils.KafkaOffsetMetric(String topic,
                                    DynamicPartitionConnections connections)
Method Detail

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.