|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.yarn.launch.AbstractCommandLineRunner<YarnAppmaster> org.springframework.yarn.am.CommandLineAppmasterRunner
public class CommandLineAppmasterRunner
Simple launcher for application master.
Constructor Summary | |
---|---|
CommandLineAppmasterRunner()
|
Method Summary | |
---|---|
protected java.lang.String |
getDefaultBeanIdentifier()
Gets a default bean id which is used to resolve the instance from an Application Context. |
protected java.util.List<java.lang.String> |
getValidOpts()
Gets the list of valid option arguments. |
protected ExitStatus |
handleBeanRun(YarnAppmaster bean,
java.lang.String[] parameters,
java.util.Set<java.lang.String> opts)
Handles the execution of a bean after Application Context(s) has been initialized. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class org.springframework.yarn.launch.AbstractCommandLineRunner |
---|
doMain, exit, getApplicationContext, getChildApplicationContext, getChildContextConfigPath, getContextConfigPath, getErrorMessage, presetSystemExiter, start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandLineAppmasterRunner()
Method Detail |
---|
protected ExitStatus handleBeanRun(YarnAppmaster bean, java.lang.String[] parameters, java.util.Set<java.lang.String> opts)
AbstractCommandLineRunner
It 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<YarnAppmaster>
bean
- the bean instanceparameters
- the parametersopts
- the options
protected java.lang.String getDefaultBeanIdentifier()
AbstractCommandLineRunner
getDefaultBeanIdentifier
in class AbstractCommandLineRunner<YarnAppmaster>
protected java.util.List<java.lang.String> getValidOpts()
AbstractCommandLineRunner
When 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<YarnAppmaster>
public static void main(java.lang.String[] args)
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |