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 YarnException,
IOException
- Execute callback.
- Parameters:
proxy - rpc proxy instance
- Returns:
- Value returned by callback
- Throws:
YarnException - YarnException
IOException - IOException