Class JobServiceMetricsCommand


  • public class JobServiceMetricsCommand
    extends java.lang.Object
    Prints job service metric information.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.time.format.DateTimeFormatter DATETIME_FORMAT  
    • Constructor Summary

      Constructors 
      Constructor Description
      JobServiceMetricsCommand​(alluxio.client.job.JobMasterClient JobMasterClient, java.io.PrintStream printStream, java.lang.String dateFormatPattern)
      Creates a new instance of JobServiceMetricsCommand.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int run()
      Runs a job services report metrics command.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DATETIME_FORMAT

        public static final java.time.format.DateTimeFormatter DATETIME_FORMAT
    • Constructor Detail

      • JobServiceMetricsCommand

        public JobServiceMetricsCommand​(alluxio.client.job.JobMasterClient JobMasterClient,
                                        java.io.PrintStream printStream,
                                        java.lang.String dateFormatPattern)
        Creates a new instance of JobServiceMetricsCommand.
        Parameters:
        JobMasterClient - client to connect to job master client
        printStream - stream to print job services metrics information to
        dateFormatPattern - the pattern to follow when printing the date
    • Method Detail

      • run

        public int run()
                throws java.io.IOException
        Runs a job services report metrics command.
        Returns:
        0 on success, 1 otherwise
        Throws:
        java.io.IOException