Spring for Apache Hadoop

org.springframework.yarn.am
Class GenericRpcMessage<T>

java.lang.Object
  extended by org.springframework.yarn.am.GenericRpcMessage<T>
Type Parameters:
T - Type of the message body
All Implemented Interfaces:
RpcMessage<T>

public class GenericRpcMessage<T>
extends java.lang.Object
implements RpcMessage<T>

Generic RpcMessage implementation.

Author:
Janne Valkealahti

Constructor Summary
GenericRpcMessage(T body)
          Constructs a GenericRpcMessage with a given body.
 
Method Summary
 T getBody()
          Gets a body of this message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericRpcMessage

public GenericRpcMessage(T body)
Constructs a GenericRpcMessage with a given body.

Parameters:
body - The body
Method Detail

getBody

public T getBody()
Description copied from interface: RpcMessage
Gets a body of this message.

Specified by:
getBody in interface RpcMessage<T>
Returns:
wrapped body of the message

Spring for Apache Hadoop