org.springframework.yarn.rpc
Interface YarnRpcCallback<T,P>
- Type Parameters:
T
- Type of the return valueP
- 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. |
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