Class LatencyCommand


  • public class LatencyCommand
    extends Command
    Display the current latencies of consumers.
    Since:
    9.3
    • Constructor Detail

      • LatencyCommand

        public LatencyCommand()
    • Method Detail

      • updateOptions

        public void updateOptions​(org.apache.commons.cli.Options options)
        Specified by:
        updateOptions in class Command
      • run

        public boolean run​(LogManager manager,
                           org.apache.commons.cli.CommandLine cmd)
        Specified by:
        run in class Command
      • renderLatency

        protected void renderLatency​(Name group,
                                     List<Latency> latencies)
      • formatDate

        protected String formatDate​(long timestamp)
      • formatInterval

        protected static String formatInterval​(long l)