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)
Get offset lags.
|
static void |
main(String[] args) |
public static void main(String[] args)
public static List<KafkaOffsetLagResult> getOffsetLags(NewKafkaSpoutOffsetQuery newKafkaSpoutOffsetQuery) throws Exception
Get offset lags.
newKafkaSpoutOffsetQuery
- represents the information needed to query kafka for log head and spout offsetsException
Copyright © 2022 The Apache Software Foundation. All rights reserved.