|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.support.YarnContextUtils
public class YarnContextUtils
Utility methods for accessing common components from the BeanFactory.
| Field Summary | |
|---|---|
static String |
CONVERSION_SERVICE_BEAN_NAME
Default conversion service bean name |
static String |
EVALUATION_CONTEXT_BEAN_NAME
Default evaluation context bean name |
static String |
TASK_EXECUTOR_BEAN_NAME
Default task executor bean name |
static String |
TASK_SCHEDULER_BEAN_NAME
Default task scheduler bean name |
| Constructor Summary | |
|---|---|
YarnContextUtils()
|
|
| Method Summary | |
|---|---|
static AppmasterService |
getAppmasterClientService(BeanFactory beanFactory)
Return the AppmasterService bean whose name is "yarnClientAmservice" if
available. |
static AppmasterService |
getAppmasterService(BeanFactory beanFactory)
Return the AppmasterService bean whose name is "yarnAmservice" if
available. |
static AppmasterTrackService |
getAppmasterTrackService(BeanFactory beanFactory)
Return the AppmasterTrackService bean whose name is "yarnAmTrackservice" if
available. |
static ConversionService |
getConversionService(BeanFactory beanFactory)
Return the ConversionService bean whose name is
"yarnConversionService" if available. |
static StandardEvaluationContext |
getEvaluationContext(BeanFactory beanFactory)
Return the StandardEvaluationContext bean whose name is
"yarnEvaluationContext" if available. |
static YarnEventPublisher |
getEventPublisher(BeanFactory beanFactory)
Return the YarnEventPublisher bean whose name is "yarnEventPublisher" if
available. |
static TaskExecutor |
getTaskExecutor(BeanFactory beanFactory)
Return the TaskScheduler bean whose name is "taskExecutor" if
available. |
static TaskScheduler |
getTaskScheduler(BeanFactory beanFactory)
Return the TaskScheduler bean whose name is "taskScheduler" if
available. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TASK_SCHEDULER_BEAN_NAME
public static final String TASK_EXECUTOR_BEAN_NAME
public static final String CONVERSION_SERVICE_BEAN_NAME
public static final String EVALUATION_CONTEXT_BEAN_NAME
| Constructor Detail |
|---|
public YarnContextUtils()
| Method Detail |
|---|
public static TaskScheduler getTaskScheduler(BeanFactory beanFactory)
TaskScheduler bean whose name is "taskScheduler" if
available.
beanFactory - BeanFactory for lookup, must not be null.public static TaskExecutor getTaskExecutor(BeanFactory beanFactory)
TaskScheduler bean whose name is "taskExecutor" if
available.
beanFactory - BeanFactory for lookup, must not be null.public static ConversionService getConversionService(BeanFactory beanFactory)
ConversionService bean whose name is
"yarnConversionService" if available.
beanFactory - BeanFactory for lookup, must not be null.
ConversionService bean whose name is
"yarnConversionService" if available.public static StandardEvaluationContext getEvaluationContext(BeanFactory beanFactory)
StandardEvaluationContext bean whose name is
"yarnEvaluationContext" if available.
beanFactory - BeanFactory for lookup, must not be null.
StandardEvaluationContext bean whose name
is "yarnEvaluationContext" .public static AppmasterService getAppmasterService(BeanFactory beanFactory)
AppmasterService bean whose name is "yarnAmservice" if
available.
beanFactory - BeanFactory for lookup, must not be null.public static AppmasterService getAppmasterClientService(BeanFactory beanFactory)
AppmasterService bean whose name is "yarnClientAmservice" if
available. This bean should be the one providing rpc api for external
clients talking to Application Master.
beanFactory - BeanFactory for lookup, must not be null.public static AppmasterTrackService getAppmasterTrackService(BeanFactory beanFactory)
AppmasterTrackService bean whose name is "yarnAmTrackservice" if
available.
beanFactory - BeanFactory for lookup, must not be null.public static YarnEventPublisher getEventPublisher(BeanFactory beanFactory)
YarnEventPublisher bean whose name is "yarnEventPublisher" if
available.
beanFactory - BeanFactory for lookup, must not be null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||