public class CapacityCommand extends Object
Constructor and Description |
---|
CapacityCommand(BlockMasterClient blockMasterClient,
PrintStream printStream)
Creates a new instance of
CapacityCommand . |
Modifier and Type | Method and Description |
---|---|
void |
generateCapacityReport(GetWorkerReportOptions options,
AlluxioConfiguration conf)
Generates capacity report.
|
static String |
getUsage() |
int |
run(org.apache.commons.cli.CommandLine cl)
Runs report capacity command.
|
public CapacityCommand(BlockMasterClient blockMasterClient, PrintStream printStream)
CapacityCommand
.blockMasterClient
- client to connect to block masterprintStream
- stream to print summary information topublic int run(org.apache.commons.cli.CommandLine cl) throws IOException
cl
- CommandLine to get client optionsIOException
public void generateCapacityReport(GetWorkerReportOptions options, AlluxioConfiguration conf) throws IOException
options
- GetWorkerReportOptions to get worker reportconf
- the cluster configurationIOException
public static String getUsage()
Copyright © 2023. All Rights Reserved.