Package alluxio.cli.fsadmin.journal
Class QuorumElectCommand
- java.lang.Object
-
- alluxio.cli.fsadmin.command.AbstractFsAdminCommand
-
- alluxio.cli.fsadmin.journal.QuorumElectCommand
-
- All Implemented Interfaces:
alluxio.cli.Command,java.io.Closeable,java.lang.AutoCloseable
public class QuorumElectCommand extends AbstractFsAdminCommand
Command for transferring the leadership to another master within a quorum.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringADDRESS_OPTION_NAMEstatic java.lang.StringRESET_FAILEDstatic java.lang.StringRESET_INITstatic java.lang.StringRESET_SUCCESSstatic java.lang.StringTRANSFER_FAILEDstatic java.lang.StringTRANSFER_INITstatic java.lang.StringTRANSFER_SUCCESS-
Fields inherited from class alluxio.cli.fsadmin.command.AbstractFsAdminCommand
mBlockClient, mFsClient, mJobMasterClient, mJobMasterJournalMasterClient, mMasterJournalMasterClient, mMetaClient, mMetaConfigClient, mMetricsClient, mPrintStream
-
-
Constructor Summary
Constructors Constructor Description QuorumElectCommand(Context context, alluxio.conf.AlluxioConfiguration alluxioConf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringdescription()java.lang.StringgetCommandName()java.lang.StringgetDescription()org.apache.commons.cli.OptionsgetOptions()java.lang.StringgetUsage()intrun(org.apache.commons.cli.CommandLine cl)voidvalidateArgs(org.apache.commons.cli.CommandLine cl)
-
-
-
Field Detail
-
ADDRESS_OPTION_NAME
public static final java.lang.String ADDRESS_OPTION_NAME
- See Also:
- Constant Field Values
-
TRANSFER_INIT
public static final java.lang.String TRANSFER_INIT
- See Also:
- Constant Field Values
-
TRANSFER_SUCCESS
public static final java.lang.String TRANSFER_SUCCESS
- See Also:
- Constant Field Values
-
TRANSFER_FAILED
public static final java.lang.String TRANSFER_FAILED
- See Also:
- Constant Field Values
-
RESET_INIT
public static final java.lang.String RESET_INIT
- See Also:
- Constant Field Values
-
RESET_SUCCESS
public static final java.lang.String RESET_SUCCESS
- See Also:
- Constant Field Values
-
RESET_FAILED
public static final java.lang.String RESET_FAILED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QuorumElectCommand
public QuorumElectCommand(Context context, alluxio.conf.AlluxioConfiguration alluxioConf)
- Parameters:
context- fsadmin command contextalluxioConf- Alluxio configuration
-
-
Method Detail
-
description
public static java.lang.String description()
- Returns:
- command's description
-
run
public int run(org.apache.commons.cli.CommandLine cl) throws java.io.IOException- Throws:
java.io.IOException
-
validateArgs
public void validateArgs(org.apache.commons.cli.CommandLine cl) throws alluxio.exception.status.InvalidArgumentException- Throws:
alluxio.exception.status.InvalidArgumentException
-
getCommandName
public java.lang.String getCommandName()
-
getUsage
public java.lang.String getUsage()
-
getDescription
public java.lang.String getDescription()
-
getOptions
public org.apache.commons.cli.Options getOptions()
-
-