T
- Type of the return valueP
- Type of the rpc protocolpublic interface YarnRpcCallback<T,P>
T doInYarn(P proxy) throws org.apache.hadoop.yarn.exceptions.YarnException, java.io.IOException
proxy
- rpc proxy instanceorg.apache.hadoop.yarn.exceptions.YarnException
- YarnExceptionjava.io.IOException
- IOException