|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.support.LifecycleObjectSupport
org.springframework.yarn.am.container.AbstractLauncher
public abstract class AbstractLauncher
The base class for Container launcher implementations.
| Nested Class Summary | |
|---|---|
protected class |
AbstractLauncher.ContainerLauncherInterceptorList
Convenient wrapper for interceptor list. |
| Constructor Summary | |
|---|---|
AbstractLauncher()
|
|
| Method Summary | |
|---|---|
void |
addInterceptor(ContainerLauncherInterceptor interceptor)
Add a service interceptor to the end of the list. |
protected AppmasterCmOperations |
getCmTemplate(Container container)
Constructs a new AppmasterCmOperations template. |
Configuration |
getConfiguration()
Gets the Yarn configuration. |
Map<String,String> |
getEnvironment()
Gets the environment. |
protected AbstractLauncher.ContainerLauncherInterceptorList |
getInterceptors()
Exposes the interceptor list for subclasses. |
ResourceLocalizer |
getResourceLocalizer()
Gets the resource localizer. |
protected void |
onInit()
Subclasses may implement this for initialization logic. |
void |
setConfiguration(Configuration configuration)
Sets the Yarn configuration. |
void |
setEnvironment(Map<String,String> environment)
Sets the environment. |
void |
setInterceptors(List<ContainerLauncherInterceptor> interceptors)
Set the list of channel interceptors. |
void |
setResourceLocalizer(ResourceLocalizer resourceLocalizer)
Sets the resource localizer. |
| Methods inherited from class org.springframework.yarn.support.LifecycleObjectSupport |
|---|
afterPropertiesSet, doStart, doStop, getBeanFactory, getPhase, getTaskExecutor, getTaskScheduler, getYarnEventPublisher, isAutoStartup, isRunning, setAutoStartup, setBeanFactory, setPhase, setTaskExecutor, setTaskScheduler, setYarnEventPublisher, start, stop, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractLauncher()
| Method Detail |
|---|
protected void onInit()
throws Exception
LifecycleObjectSupportInitializingBean phase. Implementor should
always call super method not to break initialization chain.
onInit in class LifecycleObjectSupportExceptionpublic Configuration getConfiguration()
public void setConfiguration(Configuration configuration)
configuration - the new Yarn configurationpublic Map<String,String> getEnvironment()
public void setEnvironment(Map<String,String> environment)
environment - the environmentpublic void setResourceLocalizer(ResourceLocalizer resourceLocalizer)
resourceLocalizer - the new resource localizerpublic ResourceLocalizer getResourceLocalizer()
public void setInterceptors(List<ContainerLauncherInterceptor> interceptors)
interceptors - the new interceptorspublic void addInterceptor(ContainerLauncherInterceptor interceptor)
interceptor - the interceptorprotected AppmasterCmOperations getCmTemplate(Container container)
AppmasterCmOperations template.
container - the Container
AppmasterCmOperations templateprotected AbstractLauncher.ContainerLauncherInterceptorList getInterceptors()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||