Class CapacityCommand


  • public class CapacityCommand
    extends java.lang.Object
    Prints Alluxio capacity information.
    • Constructor Summary

      Constructors 
      Constructor Description
      CapacityCommand​(alluxio.client.block.BlockMasterClient blockMasterClient, java.io.PrintStream printStream)
      Creates a new instance of CapacityCommand.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void generateCapacityReport​(alluxio.client.block.options.GetWorkerReportOptions options, alluxio.conf.AlluxioConfiguration conf)
      Generates capacity report.
      static java.lang.String getUsage()  
      int run​(org.apache.commons.cli.CommandLine cl)
      Runs report capacity command.
      • Methods inherited from class java.lang.Object

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

      • CapacityCommand

        public CapacityCommand​(alluxio.client.block.BlockMasterClient blockMasterClient,
                               java.io.PrintStream printStream)
        Creates a new instance of CapacityCommand.
        Parameters:
        blockMasterClient - client to connect to block master
        printStream - stream to print summary information to
    • Method Detail

      • run

        public int run​(org.apache.commons.cli.CommandLine cl)
                throws java.io.IOException
        Runs report capacity command.
        Parameters:
        cl - CommandLine to get client options
        Returns:
        0 on success, 1 otherwise
        Throws:
        java.io.IOException
      • generateCapacityReport

        public void generateCapacityReport​(alluxio.client.block.options.GetWorkerReportOptions options,
                                           alluxio.conf.AlluxioConfiguration conf)
                                    throws java.io.IOException
        Generates capacity report.
        Parameters:
        options - GetWorkerReportOptions to get worker report
        conf - the cluster configuration
        Throws:
        java.io.IOException
      • getUsage

        public static java.lang.String getUsage()
        Returns:
        report capacity command usage