public class CliFrontend extends Object
| 构造器和说明 |
|---|
CliFrontend(org.apache.flink.configuration.Configuration configuration,
ClusterClientServiceLoader clusterClientServiceLoader,
List<CustomCommandLine> customCommandLines) |
CliFrontend(org.apache.flink.configuration.Configuration configuration,
List<CustomCommandLine> customCommandLines) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
cancel(String[] args)
Executes the CANCEL action.
|
protected void |
executeProgram(org.apache.flink.configuration.Configuration configuration,
PackagedProgram program) |
CustomCommandLine |
getActiveCustomCommandLine(org.apache.commons.cli.CommandLine commandLine)
Gets the custom command-line for the arguments.
|
org.apache.commons.cli.CommandLine |
getCommandLine(org.apache.commons.cli.Options commandOptions,
String[] args,
boolean stopAtNonOptions) |
org.apache.flink.configuration.Configuration |
getConfiguration()
Getter which returns a copy of the associated configuration.
|
static String |
getConfigurationDirectoryFromEnv() |
org.apache.commons.cli.Options |
getCustomCommandLineOptions() |
protected void |
info(String[] args)
Executes the info action.
|
protected void |
list(String[] args)
Executes the list action.
|
static List<CustomCommandLine> |
loadCustomCommandLines(org.apache.flink.configuration.Configuration configuration,
String configurationDirectory) |
static void |
main(String[] args)
Submits the job based on the arguments.
|
int |
parseParameters(String[] args)
Parses the command line arguments and starts the requested action.
|
protected void |
run(String[] args)
Executions the run action.
|
protected void |
savepoint(String[] args)
Executes the SAVEPOINT action.
|
protected void |
stop(String[] args)
Executes the STOP action.
|
public CliFrontend(org.apache.flink.configuration.Configuration configuration,
List<CustomCommandLine> customCommandLines)
public CliFrontend(org.apache.flink.configuration.Configuration configuration,
ClusterClientServiceLoader clusterClientServiceLoader,
List<CustomCommandLine> customCommandLines)
public org.apache.flink.configuration.Configuration getConfiguration()
public org.apache.commons.cli.Options getCustomCommandLineOptions()
protected void run(String[] args) throws Exception
args - Command line arguments for the run action.Exceptionprotected void info(String[] args) throws Exception
args - Command line arguments for the info action.Exceptionprotected void list(String[] args) throws Exception
args - Command line arguments for the list action.Exceptionprotected void stop(String[] args) throws Exception
args - Command line arguments for the stop action.Exceptionprotected void cancel(String[] args) throws Exception
args - Command line arguments for the cancel action.Exceptionpublic org.apache.commons.cli.CommandLine getCommandLine(org.apache.commons.cli.Options commandOptions,
String[] args,
boolean stopAtNonOptions)
throws CliArgsException
CliArgsExceptionprotected void savepoint(String[] args) throws Exception
args - Command line arguments for the savepoint action.Exceptionprotected void executeProgram(org.apache.flink.configuration.Configuration configuration,
PackagedProgram program)
throws ProgramInvocationException
public int parseParameters(String[] args)
args - command line arguments of the client.public static void main(String[] args)
public static String getConfigurationDirectoryFromEnv()
public static List<CustomCommandLine> loadCustomCommandLines(org.apache.flink.configuration.Configuration configuration, String configurationDirectory)
public CustomCommandLine getActiveCustomCommandLine(org.apache.commons.cli.CommandLine commandLine)
commandLine - The input to the command-line.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.