public class ContainerHandler extends Object
YarnComponent
and @OnContainerStart annotations.| Constructor and Description |
|---|
ContainerHandler(MethodInvokingYarnContainerRuntimeProcessor<T> processor)
Instantiates a new container handler.
|
ContainerHandler(Object target)
Instantiates a new container handler.
|
ContainerHandler(Object target,
Method method)
Instantiates a new container handler.
|
ContainerHandler(Object target,
String methodName)
Instantiates a new container handler.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
handle(YarnContainerRuntime yarnContainerRuntime)
Handle container using a
YarnContainerRuntimeProcessor. |
public ContainerHandler(Object target)
target - the target beanpublic ContainerHandler(Object target, Method method)
target - the target beanmethod - the methodpublic ContainerHandler(Object target, String methodName)
target - the target beanmethodName - the method namepublic ContainerHandler(MethodInvokingYarnContainerRuntimeProcessor<T> processor)
T - the generic typeprocessor - the processorpublic Object handle(YarnContainerRuntime yarnContainerRuntime)
YarnContainerRuntimeProcessor.yarnContainerRuntime - the yarn container runtime