Spring for Apache Hadoop

org.springframework.yarn.container
Class ContainerHandler

java.lang.Object
  extended by org.springframework.yarn.container.ContainerHandler

public class ContainerHandler
extends java.lang.Object

Handler for a common object representing something to be run. This is usually used when a plain pojo is configured with @YarnContainer and @OnYarnContainerStart annotations.

Author:
Janne Valkealahti

Constructor Summary
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.
 
Method Summary
 java.lang.Object handle(YarnContainerRuntime yarnContainerRuntime)
          Handle container using a YarnContainerRuntimeProcessor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerHandler

public ContainerHandler(java.lang.Object target)
Instantiates a new container handler.

Parameters:
target - the target bean

ContainerHandler

public ContainerHandler(java.lang.Object target,
                        java.lang.reflect.Method method)
Instantiates a new container handler.

Parameters:
target - the target bean
method - the method

ContainerHandler

public ContainerHandler(java.lang.Object target,
                        java.lang.String methodName)
Instantiates a new container handler.

Parameters:
target - the target bean
methodName - the method name

ContainerHandler

public ContainerHandler(MethodInvokingYarnContainerRuntimeProcessor<T> processor)
Instantiates a new container handler.

Type Parameters:
T - the generic type
Parameters:
processor - the processor
Method Detail

handle

public java.lang.Object handle(YarnContainerRuntime yarnContainerRuntime)
Handle container using a YarnContainerRuntimeProcessor.

Parameters:
yarnContainerRuntime - the yarn container runtime
Returns:
the result value

Spring for Apache Hadoop