@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(com.google.protobuf.ServiceException se)
Utility method that unwraps and returns appropriate exceptions.
|
public static org.apache.hadoop.yarn.exceptions.YarnException getRemoteException(Throwable t)
YarnException
public static org.apache.hadoop.yarn.exceptions.YarnException getRemoteException(String message)
YarnException
public static Void unwrapAndThrowException(com.google.protobuf.ServiceException se) throws IOException, org.apache.hadoop.yarn.exceptions.YarnException
se
- ServiceExceptionYarnException
or IOException
IOException
org.apache.hadoop.yarn.exceptions.YarnException
Copyright © 2008–2019 Apache Software Foundation. All rights reserved.