org.springframework.yarn.container
Class MethodInvokingYarnContainerRuntimeProcessor<T>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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