public class CommandLineContainerRunner extends AbstractCommandLineRunner<YarnContainer>
| Constructor and Description |
|---|
CommandLineContainerRunner() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getDefaultBeanIdentifier()
Gets a default bean id which is used to resolve
the instance from an Application Context.
|
protected List<String> |
getValidOpts()
Gets the list of valid option arguments.
|
protected ExitStatus |
handleBeanRun(YarnContainer bean,
String[] parameters,
Set<String> opts)
Handles the execution of a bean after Application Context(s) has
been initialized.
|
static void |
main(String[] args) |
doMain, exit, getApplicationContext, getChildApplicationContext, getChildContextConfigPath, getContextConfigPath, getErrorMessage, presetSystemExiter, startprotected ExitStatus handleBeanRun(YarnContainer bean, String[] parameters, Set<String> opts)
AbstractCommandLineRunnerIt is implementors responsibility to decide what to do with the given bean since this class only knows the typed bean instance.
handleBeanRun in class AbstractCommandLineRunner<YarnContainer>bean - the bean instanceparameters - the parametersopts - the optionsprotected String getDefaultBeanIdentifier()
AbstractCommandLineRunnergetDefaultBeanIdentifier in class AbstractCommandLineRunner<YarnContainer>protected List<String> getValidOpts()
AbstractCommandLineRunnerWhen overriding valid options make sure that options doesn't match anything else planned to be used in a command line. i.e. usually it's advised to prefix options with '-' character.
getValidOpts in class AbstractCommandLineRunner<YarnContainer>public static void main(String[] args)