public class CapacityCommand
extends java.lang.Object
| Constructor and Description |
|---|
CapacityCommand(BlockMasterClient blockMasterClient,
java.io.PrintStream printStream)
Creates a new instance of
CapacityCommand. |
| Modifier and Type | Method and Description |
|---|---|
void |
generateCapacityReport(GetWorkerReportOptions options)
Generates capacity report.
|
static java.lang.String |
getUsage() |
int |
run(org.apache.commons.cli.CommandLine cl)
Runs report capacity command.
|
public CapacityCommand(BlockMasterClient blockMasterClient, java.io.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 java.io.IOException
cl - CommandLine to get client optionsjava.io.IOExceptionpublic void generateCapacityReport(GetWorkerReportOptions options) throws java.io.IOException
options - GetWorkerReportOptions to get worker reportjava.io.IOExceptionpublic static java.lang.String getUsage()
Copyright © 2022. All Rights Reserved.