public static class YarnSubmitCommand.SubmitOptionHandler extends AbstractApplicationCommand.ApplicationOptionHandler<org.apache.hadoop.yarn.api.records.ApplicationId>
Constructor and Description |
---|
YarnSubmitCommand.SubmitOptionHandler() |
Modifier and Type | Method and Description |
---|---|
joptsimple.OptionSpec<java.lang.String> |
getApplicationNameOption()
Get the application name option.
|
joptsimple.OptionSpec<java.lang.String> |
getApplicationVersionOption()
Get the application version option.
|
protected void |
handleApplicationRun(ClientApplicationRunner<org.apache.hadoop.yarn.api.records.ApplicationId> app)
Handles run of
ClientApplicationRunner . |
protected void |
options() |
protected void |
runApplication(joptsimple.OptionSet options)
Run the application.
|
handleApplicationRun, handleOutput, isFlagOn, run, verifyOptionSet
public YarnSubmitCommand.SubmitOptionHandler()
protected final void options()
options
in class org.springframework.boot.cli.command.options.OptionHandler
protected void runApplication(joptsimple.OptionSet options) throws java.lang.Exception
AbstractApplicationCommand.ApplicationOptionHandler
runApplication
in class AbstractApplicationCommand.ApplicationOptionHandler<org.apache.hadoop.yarn.api.records.ApplicationId>
options
- the options setjava.lang.Exception
- if error occurred during the processingprotected void handleApplicationRun(ClientApplicationRunner<org.apache.hadoop.yarn.api.records.ApplicationId> app)
AbstractApplicationCommand.ApplicationOptionHandler
ClientApplicationRunner
.handleApplicationRun
in class AbstractApplicationCommand.ApplicationOptionHandler<org.apache.hadoop.yarn.api.records.ApplicationId>
app
- the apppublic joptsimple.OptionSpec<java.lang.String> getApplicationVersionOption()
public joptsimple.OptionSpec<java.lang.String> getApplicationNameOption()