@InterfaceAudience.LimitedPrivate(value={"MapReduce","YARN"})
public class RPCUtil
extends Object
| Constructor and Description |
|---|
RPCUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.hadoop.yarn.exceptions.YarnException |
getRemoteException(String message)
Returns an instance of
YarnException. |
static org.apache.hadoop.yarn.exceptions.YarnException |
getRemoteException(Throwable t)
Returns an instance of
YarnException. |
static Void |
unwrapAndThrowException(org.apache.hadoop.thirdparty.protobuf.ServiceException se)
Utility method that unwraps and returns appropriate exceptions.
|
public static org.apache.hadoop.yarn.exceptions.YarnException getRemoteException(Throwable t)
YarnException.t - instance of Throwable.public static org.apache.hadoop.yarn.exceptions.YarnException getRemoteException(String message)
YarnException.message - yarn exception message.public static Void unwrapAndThrowException(org.apache.hadoop.thirdparty.protobuf.ServiceException se) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
se - ServiceExceptionYarnException or IOExceptionIOException - io error occur.org.apache.hadoop.yarn.exceptions.YarnException - exceptions from yarn servers.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.