public class ContainerHandler
extends java.lang.Object
implements org.springframework.core.Ordered
YarnComponent
 and @OnContainerStart annotations.| Constructor and Description | 
|---|
ContainerHandler(MethodInvokingYarnContainerRuntimeProcessor<T> processor)
Instantiates a new container handler. 
 | 
ContainerHandler(java.lang.Object target)
Instantiates a new container handler. 
 | 
ContainerHandler(java.lang.Object target,
                java.lang.reflect.Method method)
Instantiates a new container handler. 
 | 
ContainerHandler(java.lang.Object target,
                java.lang.String methodName)
Instantiates a new container handler. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getOrder()  | 
java.lang.Object | 
handle(YarnContainerRuntime yarnContainerRuntime)
Handle container using a  
YarnContainerRuntimeProcessor. | 
void | 
setOrder(int order)
Sets the order used get value from  
getOrder(). | 
public ContainerHandler(java.lang.Object target)
target - the target beanpublic ContainerHandler(java.lang.Object target,
                java.lang.reflect.Method method)
target - the target beanmethod - the methodpublic ContainerHandler(java.lang.Object target,
                java.lang.String methodName)
target - the target beanmethodName - the method namepublic ContainerHandler(MethodInvokingYarnContainerRuntimeProcessor<T> processor)
T - the generic typeprocessor - the processorpublic int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setOrder(int order)
getOrder().
 Default value is Ordered.LOWEST_PRECEDENCE.order - the new orderpublic java.lang.Object handle(YarnContainerRuntime yarnContainerRuntime)
YarnContainerRuntimeProcessor.yarnContainerRuntime - the yarn container runtime