public class YarnContextUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONVERSION_SERVICE_BEAN_NAME |
static java.lang.String |
EVALUATION_CONTEXT_BEAN_NAME |
static java.lang.String |
TASK_EXECUTOR_BEAN_NAME |
static java.lang.String |
TASK_SCHEDULER_BEAN_NAME |
Constructor and Description |
---|
YarnContextUtils() |
Modifier and Type | Method and Description |
---|---|
static AppmasterService |
getAppmasterClientService(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
AppmasterService bean whose name is "yarnClientAmservice" if
available. |
static AppmasterService |
getAppmasterService(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
AppmasterService bean whose name is "yarnAmservice" if
available. |
static AppmasterTrackService |
getAppmasterTrackService(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
AppmasterTrackService bean whose name is "yarnAmTrackservice" if
available. |
static ContainerShutdown |
getContainerShutdown(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
ContainerShutdown bean whose name is "yarnContainerShutdown" if
available. |
static org.springframework.core.convert.ConversionService |
getConversionService(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
ConversionService bean whose name is
"yarnConversionService" if available. |
static org.springframework.expression.spel.support.StandardEvaluationContext |
getEvaluationContext(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
StandardEvaluationContext bean whose name is
"yarnEvaluationContext" if available. |
static YarnEventPublisher |
getEventPublisher(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
YarnEventPublisher bean whose name is "yarnEventPublisher" if
available. |
static org.springframework.core.task.TaskExecutor |
getTaskExecutor(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
TaskScheduler bean whose name is "taskExecutor" if
available. |
static org.springframework.scheduling.TaskScheduler |
getTaskScheduler(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
TaskScheduler bean whose name is "taskScheduler" if
available. |
public static final java.lang.String TASK_SCHEDULER_BEAN_NAME
public static final java.lang.String TASK_EXECUTOR_BEAN_NAME
public static final java.lang.String CONVERSION_SERVICE_BEAN_NAME
public static final java.lang.String EVALUATION_CONTEXT_BEAN_NAME
public static org.springframework.scheduling.TaskScheduler getTaskScheduler(org.springframework.beans.factory.BeanFactory beanFactory)
TaskScheduler
bean whose name is "taskScheduler" if
available.beanFactory
- BeanFactory for lookup, must not be null.public static org.springframework.core.task.TaskExecutor getTaskExecutor(org.springframework.beans.factory.BeanFactory beanFactory)
TaskScheduler
bean whose name is "taskExecutor" if
available.beanFactory
- BeanFactory for lookup, must not be null.public static org.springframework.core.convert.ConversionService getConversionService(org.springframework.beans.factory.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 org.springframework.expression.spel.support.StandardEvaluationContext getEvaluationContext(org.springframework.beans.factory.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(org.springframework.beans.factory.BeanFactory beanFactory)
AppmasterService
bean whose name is "yarnAmservice" if
available.beanFactory
- BeanFactory for lookup, must not be null.public static AppmasterService getAppmasterClientService(org.springframework.beans.factory.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(org.springframework.beans.factory.BeanFactory beanFactory)
AppmasterTrackService
bean whose name is "yarnAmTrackservice" if
available.beanFactory
- BeanFactory for lookup, must not be null.public static YarnEventPublisher getEventPublisher(org.springframework.beans.factory.BeanFactory beanFactory)
YarnEventPublisher
bean whose name is "yarnEventPublisher" if
available.beanFactory
- BeanFactory for lookup, must not be null.public static ContainerShutdown getContainerShutdown(org.springframework.beans.factory.BeanFactory beanFactory)
ContainerShutdown
bean whose name is "yarnContainerShutdown" if
available.beanFactory
- BeanFactory for lookup, must not be null.