Package alluxio.cli.fsadmin.report
Class CapacityCommand
- java.lang.Object
-
- alluxio.cli.fsadmin.report.CapacityCommand
-
public class CapacityCommand extends java.lang.ObjectPrints Alluxio capacity information.
-
-
Constructor Summary
Constructors Constructor Description CapacityCommand(alluxio.client.block.BlockMasterClient blockMasterClient, java.io.PrintStream printStream)Creates a new instance ofCapacityCommand.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerateCapacityReport(alluxio.client.block.options.GetWorkerReportOptions options, alluxio.conf.AlluxioConfiguration conf)Generates capacity report.static java.lang.StringgetUsage()intrun(org.apache.commons.cli.CommandLine cl)Runs report capacity command.
-
-
-
Constructor Detail
-
CapacityCommand
public CapacityCommand(alluxio.client.block.BlockMasterClient blockMasterClient, java.io.PrintStream printStream)Creates a new instance ofCapacityCommand.- Parameters:
blockMasterClient- client to connect to block masterprintStream- stream to print summary information to
-
-
Method Detail
-
run
public int run(org.apache.commons.cli.CommandLine cl) throws java.io.IOExceptionRuns 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.IOExceptionGenerates capacity report.- Parameters:
options- GetWorkerReportOptions to get worker reportconf- the cluster configuration- Throws:
java.io.IOException
-
getUsage
public static java.lang.String getUsage()
- Returns:
- report capacity command usage
-
-