public class ContainerHandler
extends java.lang.Object
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 |
|---|---|
java.lang.Object |
handle(YarnContainerRuntime yarnContainerRuntime)
Handle container using a
YarnContainerRuntimeProcessor. |
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 java.lang.Object handle(YarnContainerRuntime yarnContainerRuntime)
YarnContainerRuntimeProcessor.yarnContainerRuntime - the yarn container runtime