protected class AbstractLauncher.ContainerLauncherInterceptorList
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractLauncher.ContainerLauncherInterceptorList() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(ContainerLauncherInterceptor interceptor)
Adds interceptor to the list.
|
org.apache.hadoop.yarn.api.records.ContainerLaunchContext |
preLaunch(org.apache.hadoop.yarn.api.records.Container container,
org.apache.hadoop.yarn.api.records.ContainerLaunchContext context)
Handles the pre launch calls.
|
boolean |
set(java.util.List<ContainerLauncherInterceptor> interceptors)
Sets the interceptors, clears any existing interceptors.
|
protected AbstractLauncher.ContainerLauncherInterceptorList()
public boolean set(java.util.List<ContainerLauncherInterceptor> interceptors)
interceptors
- the list of interceptorspublic boolean add(ContainerLauncherInterceptor interceptor)
interceptor
- the interceptorCollection.add(E)
)public org.apache.hadoop.yarn.api.records.ContainerLaunchContext preLaunch(org.apache.hadoop.yarn.api.records.Container container, org.apache.hadoop.yarn.api.records.ContainerLaunchContext context)
context
- the container launch contextcontainer
- the containernull
if interceptor broke the chain