public final class DecommissionWorkerCommand extends AbstractFsAdminCommand
Modifier and Type | Class and Description |
---|---|
static class |
DecommissionWorkerCommand.ReturnCode
A set of return codes.
|
static class |
DecommissionWorkerCommand.WorkerStatus
A wrapper managing worker activeness status and deciding whether the worker
can be safely killed.
|
mBlockClient, mFsClient, mJobMasterClient, mJobMasterJournalMasterClient, mMasterJournalMasterClient, mMetaClient, mMetricsClient, mPrintStream
Constructor and Description |
---|
DecommissionWorkerCommand(Context context,
AlluxioConfiguration alluxioConf)
Constructs a new instance to decommission a given batch of workers from Alluxio.
|
Modifier and Type | Method and Description |
---|---|
String |
getCommandName()
Gets the command name as input from the shell.
|
String |
getDescription() |
org.apache.commons.cli.Options |
getOptions() |
String |
getUsage() |
int |
run(org.apache.commons.cli.CommandLine cl)
Runs the command.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getSubCommands, hasSubCommand, parseAndValidateArgs, validateArgs
public DecommissionWorkerCommand(Context context, AlluxioConfiguration alluxioConf)
context
- fsadmin command contextalluxioConf
- Alluxio configurationpublic int run(org.apache.commons.cli.CommandLine cl)
Command
cl
- the parsed command line for the argumentspublic String getCommandName()
Command
public org.apache.commons.cli.Options getOptions()
Options
of the commandpublic String getUsage()
public String getDescription()
Copyright © 2023. All Rights Reserved.