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 String
ID
-
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 void
addGeneralOptions(org.apache.commons.cli.Options baseOptions)
Adds custom options to the existing general options.String
getId()
Gets the unique identifier of this CustomCommandLine.boolean
isActive(org.apache.commons.cli.CommandLine commandLine)
Signals whether the custom command-line wants to execute or not.Configuration
toConfiguration(org.apache.commons.cli.CommandLine commandLine)
Materializes the command line arguments in the givenCommandLine
to aConfiguration
and 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:CustomCommandLine
Signals 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 Configuration toConfiguration(org.apache.commons.cli.CommandLine commandLine) throws FlinkException
Description copied from interface:CustomCommandLine
Materializes the command line arguments in the givenCommandLine
to aConfiguration
and returns it.- Specified by:
toConfiguration
in interfaceCustomCommandLine
- Overrides:
toConfiguration
in classAbstractCustomCommandLine
- Throws:
FlinkException
-
getId
public String getId()
Description copied from interface:CustomCommandLine
Gets the unique identifier of this CustomCommandLine.- Returns:
- A unique identifier
-
addGeneralOptions
public void addGeneralOptions(org.apache.commons.cli.Options baseOptions)
Description copied from interface:CustomCommandLine
Adds custom options to the existing general options.- Specified by:
addGeneralOptions
in interfaceCustomCommandLine
- Overrides:
addGeneralOptions
in classAbstractCustomCommandLine
- Parameters:
baseOptions
- The existing options.
-
-