org.apache.hadoop.yarn.ipc
Class RPCUtil

java.lang.Object
  extended by org.apache.hadoop.yarn.ipc.RPCUtil

@InterfaceAudience.LimitedPrivate(value={"MapReduce","YARN"})
public class RPCUtil
extends Object


Constructor Summary
RPCUtil()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RPCUtil

public RPCUtil()
Method Detail

getRemoteException

public static org.apache.hadoop.yarn.exceptions.YarnException getRemoteException(Throwable t)
Returns an instance of YarnException


getRemoteException

public static org.apache.hadoop.yarn.exceptions.YarnException getRemoteException(String message)
Returns an instance of YarnException


unwrapAndThrowException

public static Void unwrapAndThrowException(com.google.protobuf.ServiceException se)
                                    throws IOException,
                                           org.apache.hadoop.yarn.exceptions.YarnException
Utility method that unwraps and returns appropriate exceptions.

Parameters:
se - ServiceException
Returns:
An instance of the actual exception, which will be a subclass of YarnException or IOException
Throws:
IOException
org.apache.hadoop.yarn.exceptions.YarnException


Copyright © 2014 Apache Software Foundation. All Rights Reserved.