public abstract static class AbstractApplicationCommand.ApplicationOptionHandler<R>
extends org.springframework.boot.cli.command.options.OptionHandler
| Constructor and Description |
|---|
AbstractApplicationCommand.ApplicationOptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleApplicationRun(org.springframework.yarn.boot.app.ClientApplicationRunner<R> app)
Handles run of
ClientApplicationRunner. |
protected void |
handleApplicationRun(org.springframework.yarn.boot.app.ClientApplicationRunner<R> app,
String... args)
Handles run of
ClientApplicationRunner. |
protected void |
handleOutput(String output)
Utility method to handle output for the command.
|
protected boolean |
isFlagOn(joptsimple.OptionSet options,
joptsimple.OptionSpec<Boolean> option)
Utility method to check if boolean flag is set.
|
protected org.springframework.boot.cli.command.status.ExitStatus |
run(joptsimple.OptionSet options) |
protected abstract void |
runApplication(joptsimple.OptionSet options)
Run the application.
|
protected void |
verifyOptionSet(joptsimple.OptionSet options)
Verify option before application is executed.
|
public AbstractApplicationCommand.ApplicationOptionHandler()
protected final org.springframework.boot.cli.command.status.ExitStatus run(joptsimple.OptionSet options)
throws Exception
run in class org.springframework.boot.cli.command.options.OptionHandlerExceptionprotected void verifyOptionSet(joptsimple.OptionSet options)
throws Exception
runApplication(OptionSet).options - the options setException - if error occurred during the processingprotected abstract void runApplication(joptsimple.OptionSet options)
throws Exception
options - the options setException - if error occurred during the processingprotected boolean isFlagOn(joptsimple.OptionSet options,
joptsimple.OptionSpec<Boolean> option)
options - the options setoption - the boolean option specprotected void handleOutput(String output)
Log.output - protected void handleApplicationRun(org.springframework.yarn.boot.app.ClientApplicationRunner<R> app)
ClientApplicationRunner.app - the app