|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.launch.AbstractCommandLineRunner<YarnClient>
org.springframework.yarn.client.CommandLineClientRunner
public class CommandLineClientRunner
A simple client runner executing a bean named "yarnClient".
| Field Summary | |
|---|---|
static String |
ARG_APPLICATION_ID
|
static String |
OPT_KILL
|
static String |
OPT_LIST
|
static String |
OPT_SUBMIT
|
| Constructor Summary | |
|---|---|
CommandLineClientRunner()
|
|
| Method Summary | |
|---|---|
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(YarnClient bean,
String[] parameters,
Set<String> opts)
Handles the execution of a bean after Application Context(s) has been initialized. |
static void |
main(String[] args)
|
protected ApplicationId |
queryApplicationId(YarnClient client,
String applicationId)
Query application id. |
| 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 |
| Field Detail |
|---|
public static final String OPT_SUBMIT
public static final String OPT_KILL
public static final String OPT_LIST
public static final String ARG_APPLICATION_ID
| Constructor Detail |
|---|
public CommandLineClientRunner()
| Method Detail |
|---|
protected ExitStatus handleBeanRun(YarnClient 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<YarnClient>bean - the bean instanceparameters - the parametersopts - the options
protected String getDefaultBeanIdentifier()
AbstractCommandLineRunner
getDefaultBeanIdentifier in class AbstractCommandLineRunner<YarnClient>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<YarnClient>
protected ApplicationId queryApplicationId(YarnClient client,
String applicationId)
client - the yarn clientapplicationId - the application id
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||