Package org.apache.storm.kafka.monitor
Class KafkaOffsetLagResult
- java.lang.Object
-
- org.apache.storm.kafka.monitor.KafkaOffsetLagResult
-
- All Implemented Interfaces:
net.minidev.json.JSONAware
public class KafkaOffsetLagResult extends Object implements net.minidev.json.JSONAware
Class representing the log head offsets, spout offsets and the lag for a topic.
-
-
Constructor Summary
Constructors Constructor Description KafkaOffsetLagResult(String topic, int parition, long consumerCommittedOffset, long logHeadOffset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetConsumerCommittedOffset()longgetLag()longgetLogHeadOffset()intgetPartition()StringgetTopic()inthashCode()StringtoJSONString()StringtoString()
-
-
-
Constructor Detail
-
KafkaOffsetLagResult
public KafkaOffsetLagResult(String topic, int parition, long consumerCommittedOffset, long logHeadOffset)
-
-
Method Detail
-
getTopic
public String getTopic()
-
getPartition
public int getPartition()
-
getConsumerCommittedOffset
public long getConsumerCommittedOffset()
-
getLogHeadOffset
public long getLogHeadOffset()
-
getLag
public long getLag()
-
toJSONString
public String toJSONString()
- Specified by:
toJSONStringin interfacenet.minidev.json.JSONAware
-
-