org.springframework.yarn.am.container
Class AbstractLauncher.ContainerLauncherInterceptorList

java.lang.Object
  extended by org.springframework.yarn.am.container.AbstractLauncher.ContainerLauncherInterceptorList
Enclosing class:
AbstractLauncher

protected class AbstractLauncher.ContainerLauncherInterceptorList
extends Object

Convenient wrapper for interceptor list.


Constructor Summary
protected AbstractLauncher.ContainerLauncherInterceptorList()
           
 
Method Summary
 boolean add(ContainerLauncherInterceptor interceptor)
          Adds interceptor to the list.
 ContainerLaunchContext preLaunch(Container container, ContainerLaunchContext context)
          Handles the pre launch calls.
 boolean set(List<ContainerLauncherInterceptor> interceptors)
          Sets the interceptors, clears any existing interceptors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLauncher.ContainerLauncherInterceptorList

protected AbstractLauncher.ContainerLauncherInterceptorList()
Method Detail

set

public boolean set(List<ContainerLauncherInterceptor> interceptors)
Sets the interceptors, clears any existing interceptors.

Parameters:
interceptors - the list of interceptors
Returns:
true if interceptor list changed as a result of the call

add

public boolean add(ContainerLauncherInterceptor interceptor)
Adds interceptor to the list.

Parameters:
interceptor - the interceptor
Returns:
true (as specified by Collection.add(E))

preLaunch

public ContainerLaunchContext preLaunch(Container container,
                                        ContainerLaunchContext context)
Handles the pre launch calls.

Parameters:
context - the container launch context
Returns:
the final modified context or null if interceptor broke the chain