Spring for Apache Hadoop

org.springframework.yarn.rpc
Interface YarnRpcCallback<T,P>

Type Parameters:
T - Type of the return value
P - Type of the rpc protocol

public interface YarnRpcCallback<T,P>

Simple helper interface to execute methods via callbacks.

Author:
Janne Valkealahti

Method Summary
 T doInYarn(P proxy)
          Execute callback.
 

Method Detail

doInYarn

T doInYarn(P proxy)
           throws org.apache.hadoop.yarn.exceptions.YarnRemoteException,
                  org.apache.hadoop.ipc.RemoteException
Execute callback.

Parameters:
proxy - rpc proxy instance
Returns:
Value returned by callback
Throws:
org.apache.hadoop.yarn.exceptions.YarnRemoteException
org.apache.hadoop.ipc.RemoteException

Spring for Apache Hadoop