Spring for Apache Hadoop

org.springframework.yarn.container
Class MethodInvokingYarnContainerRuntimeProcessor<T>

java.lang.Object
  extended by org.springframework.yarn.container.MethodInvokingYarnContainerRuntimeProcessor<T>
Type Parameters:
T - the return type
All Implemented Interfaces:
YarnContainerRuntimeProcessor<T>

public class MethodInvokingYarnContainerRuntimeProcessor<T>
extends java.lang.Object
implements YarnContainerRuntimeProcessor<T>

A simple YarnContainerRuntimeProcessor implementation using methods from a container.

Author:
Janne Valkealahti

Constructor Summary
MethodInvokingYarnContainerRuntimeProcessor(java.lang.Object targetObject, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
           
MethodInvokingYarnContainerRuntimeProcessor(java.lang.Object targetObject, java.lang.reflect.Method method)
           
MethodInvokingYarnContainerRuntimeProcessor(java.lang.Object targetObject, java.lang.String methodName)
           
 
Method Summary
 T process(YarnContainerRuntime yarnContainerRuntime)
          Process the container based on information available from YarnContainerRuntime.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvokingYarnContainerRuntimeProcessor

public MethodInvokingYarnContainerRuntimeProcessor(java.lang.Object targetObject,
                                                   java.lang.reflect.Method method)

MethodInvokingYarnContainerRuntimeProcessor

public MethodInvokingYarnContainerRuntimeProcessor(java.lang.Object targetObject,
                                                   java.lang.String methodName)

MethodInvokingYarnContainerRuntimeProcessor

public MethodInvokingYarnContainerRuntimeProcessor(java.lang.Object targetObject,
                                                   java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Method Detail

process

public T process(YarnContainerRuntime yarnContainerRuntime)
Description copied from interface: YarnContainerRuntimeProcessor
Process the container based on information available from YarnContainerRuntime.

Specified by:
process in interface YarnContainerRuntimeProcessor<T>
Parameters:
yarnContainerRuntime - the yarn container runtime
Returns:
the result

Spring for Apache Hadoop