Spring for Apache Hadoop

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 java.lang.Object

Convenient wrapper for interceptor list.


Constructor Summary
protected AbstractLauncher.ContainerLauncherInterceptorList()
           
 
Method Summary
 boolean add(ContainerLauncherInterceptor interceptor)
          Adds interceptor to the list.
 org.apache.hadoop.yarn.api.records.ContainerLaunchContext preLaunch(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.
 
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(java.util.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 org.apache.hadoop.yarn.api.records.ContainerLaunchContext preLaunch(org.apache.hadoop.yarn.api.records.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

Spring for Apache Hadoop