Package org.apache.flink.client.cli
Class DefaultCLI
- java.lang.Object
-
- org.apache.flink.client.cli.AbstractCustomCommandLine
-
- org.apache.flink.client.cli.DefaultCLI
-
- All Implemented Interfaces:
CustomCommandLine
public class DefaultCLI extends AbstractCustomCommandLine
The default CLI which is used for interaction with standalone clusters.
-
-
Field Summary
Fields Modifier and Type Field Description static StringID-
Fields inherited from class org.apache.flink.client.cli.AbstractCustomCommandLine
zookeeperNamespaceOption
-
-
Constructor Summary
Constructors Constructor Description DefaultCLI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGeneralOptions(org.apache.commons.cli.Options baseOptions)Adds custom options to the existing general options.StringgetId()Gets the unique identifier of this CustomCommandLine.booleanisActive(org.apache.commons.cli.CommandLine commandLine)Signals whether the custom command-line wants to execute or not.org.apache.flink.configuration.ConfigurationtoConfiguration(org.apache.commons.cli.CommandLine commandLine)Materializes the command line arguments in the givenCommandLineto aConfigurationand returns it.-
Methods inherited from class org.apache.flink.client.cli.AbstractCustomCommandLine
addRunOptions, handleCliArgsException, handleError, printUsage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.client.cli.CustomCommandLine
parseCommandLineOptions
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
isActive
public boolean isActive(org.apache.commons.cli.CommandLine commandLine)
Description copied from interface:CustomCommandLineSignals whether the custom command-line wants to execute or not.- Parameters:
commandLine- The command-line options- Returns:
- True if the command-line wants to run, False otherwise
-
toConfiguration
public org.apache.flink.configuration.Configuration toConfiguration(org.apache.commons.cli.CommandLine commandLine) throws org.apache.flink.util.FlinkExceptionDescription copied from interface:CustomCommandLineMaterializes the command line arguments in the givenCommandLineto aConfigurationand returns it.- Specified by:
toConfigurationin interfaceCustomCommandLine- Overrides:
toConfigurationin classAbstractCustomCommandLine- Throws:
org.apache.flink.util.FlinkException
-
getId
public String getId()
Description copied from interface:CustomCommandLineGets the unique identifier of this CustomCommandLine.- Returns:
- A unique identifier
-
addGeneralOptions
public void addGeneralOptions(org.apache.commons.cli.Options baseOptions)
Description copied from interface:CustomCommandLineAdds custom options to the existing general options.- Specified by:
addGeneralOptionsin interfaceCustomCommandLine- Overrides:
addGeneralOptionsin classAbstractCustomCommandLine- Parameters:
baseOptions- The existing options.
-
-