T - Type of the return valueP - Type of the rpc protocolpublic interface YarnRpcCallback<T,P>
T doInYarn(P proxy) throws YarnException, java.io.IOException
proxy - rpc proxy instanceYarnException - YarnExceptionjava.io.IOException - IOException