org.apache.hadoop.yarn.client
Class ClientRMProxy<T>

java.lang.Object
  extended by org.apache.hadoop.yarn.client.RMProxy<T>
      extended by org.apache.hadoop.yarn.client.ClientRMProxy<T>

public class ClientRMProxy<T>
extends RMProxy<T>


Method Summary
protected  void checkAllowedProtocols(Class<?> protocol)
          Verify the passed protocol is supported.
static
<T> T
createRMProxy(org.apache.hadoop.conf.Configuration configuration, Class<T> protocol)
          Create a proxy to the ResourceManager for the specified protocol.
protected  InetSocketAddress getRMAddress(org.apache.hadoop.yarn.conf.YarnConfiguration conf, Class<?> protocol)
          Get the ResourceManager address from the provided Configuration for the given protocol.
 
Methods inherited from class org.apache.hadoop.yarn.client.RMProxy
createRetryPolicy, createRMProxy, createRMProxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createRMProxy

public static <T> T createRMProxy(org.apache.hadoop.conf.Configuration configuration,
                                  Class<T> protocol)
                       throws IOException
Create a proxy to the ResourceManager for the specified protocol.

Type Parameters:
T - Type of proxy.
Parameters:
configuration - Configuration with all the required information.
protocol - Client protocol for which proxy is being requested.
Returns:
Proxy to the ResourceManager for the specified client protocol.
Throws:
IOException

getRMAddress

@InterfaceAudience.Private
protected InetSocketAddress getRMAddress(org.apache.hadoop.yarn.conf.YarnConfiguration conf,
                                                                   Class<?> protocol)
                                  throws IOException
Description copied from class: RMProxy
Get the ResourceManager address from the provided Configuration for the given protocol.

Overrides:
getRMAddress in class RMProxy<T>
Throws:
IOException

checkAllowedProtocols

@InterfaceAudience.Private
protected void checkAllowedProtocols(Class<?> protocol)
Description copied from class: RMProxy
Verify the passed protocol is supported.

Overrides:
checkAllowedProtocols in class RMProxy<T>


Copyright © 2014 Apache Software Foundation. All Rights Reserved.