public class KafkaOffsetLagUtil extends Object
Utility class for querying offset lag for kafka spout
Constructor and Description |
---|
KafkaOffsetLagUtil() |
Modifier and Type | Method and Description |
---|---|
static List<KafkaOffsetLagResult> |
getOffsetLags(NewKafkaSpoutOffsetQuery newKafkaSpoutOffsetQuery) |
static List<KafkaOffsetLagResult> |
getOffsetLags(OldKafkaSpoutOffsetQuery oldKafkaSpoutOffsetQuery) |
static void |
main(String[] args) |
public static void main(String[] args)
public static List<KafkaOffsetLagResult> getOffsetLags(NewKafkaSpoutOffsetQuery newKafkaSpoutOffsetQuery) throws Exception
newKafkaSpoutOffsetQuery
- represents the information needed to query kafka for log head and spout offsetsException
public static List<KafkaOffsetLagResult> getOffsetLags(OldKafkaSpoutOffsetQuery oldKafkaSpoutOffsetQuery) throws Exception
oldKafkaSpoutOffsetQuery
- represents the information needed to query kafka for log head and spout offsetsException
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.