public class ContainerHandler extends Object implements Ordered
YarnComponent
and @OnContainerStart annotations.HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| 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 |
|---|---|
int |
getOrder() |
Object |
handle(YarnContainerRuntime yarnContainerRuntime)
Handle container using a
YarnContainerRuntimeProcessor. |
void |
setOrder(int order)
Sets the order used get value from
getOrder(). |
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 void setOrder(int order)
getOrder().
Default value is Ordered.LOWEST_PRECEDENCE.order - the new orderpublic Object handle(YarnContainerRuntime yarnContainerRuntime)
YarnContainerRuntimeProcessor.yarnContainerRuntime - the yarn container runtime