Class LatencyCommand
- java.lang.Object
-
- org.nuxeo.lib.stream.tools.command.Command
-
- org.nuxeo.lib.stream.tools.command.LatencyCommand
-
public class LatencyCommand extends Command
Display the current latencies of consumers.- Since:
- 9.3
-
-
Constructor Summary
Constructors Constructor Description LatencyCommand()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
formatDate(long timestamp)
protected static String
formatInterval(long l)
protected void
latency(LogManager manager, Codec<Record> codec)
protected void
latency(LogManager manager, Name name, Codec<Record> codec)
String
name()
protected void
renderLatency(Name group, List<Latency> latencies)
boolean
run(LogManager manager, org.apache.commons.cli.CommandLine cmd)
void
updateOptions(org.apache.commons.cli.Options options)
-
Methods inherited from class org.nuxeo.lib.stream.tools.command.Command
getRecordCodec, getRecordRenderer
-
-
-
-
Field Detail
-
NAME
protected static final String NAME
- See Also:
- Constant Field Values
-
verbose
protected boolean verbose
-
-
Method Detail
-
updateOptions
public void updateOptions(org.apache.commons.cli.Options options)
- Specified by:
updateOptions
in classCommand
-
run
public boolean run(LogManager manager, org.apache.commons.cli.CommandLine cmd)
-
latency
protected void latency(LogManager manager, Codec<Record> codec)
-
latency
protected void latency(LogManager manager, Name name, Codec<Record> codec)
-
formatDate
protected String formatDate(long timestamp)
-
formatInterval
protected static String formatInterval(long l)
-
-