Class ServerRMProxy<T>

java.lang.Object
org.apache.hadoop.yarn.client.RMProxy<T>
org.apache.hadoop.yarn.server.api.ServerRMProxy<T>

public class ServerRMProxy<T> extends org.apache.hadoop.yarn.client.RMProxy<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    static <T> T
    createRMProxy(org.apache.hadoop.conf.Configuration configuration, Class<T> protocol)
    Create a proxy to the ResourceManager for the specified protocol.
    getRMAddress(org.apache.hadoop.yarn.conf.YarnConfiguration conf, Class<?> protocol)
     

    Methods inherited from class org.apache.hadoop.yarn.client.RMProxy

    createRetryPolicy, createRetryPolicy, createRMProxy, createRMProxy, createRMProxyFederation, getProxy, getRMFailoverProxyProvider, newProxyInstanceFederation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • 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 - Server protocol for which proxy is being requested.
      Returns:
      Proxy to the ResourceManager for the specified server protocol.
      Throws:
      IOException - if there are I/O errors.
    • getRMAddress

      @Private public InetSocketAddress getRMAddress(org.apache.hadoop.yarn.conf.YarnConfiguration conf, Class<?> protocol)
      Overrides:
      getRMAddress in class org.apache.hadoop.yarn.client.RMProxy<T>
    • checkAllowedProtocols

      @Private public void checkAllowedProtocols(Class<?> protocol)
      Overrides:
      checkAllowedProtocols in class org.apache.hadoop.yarn.client.RMProxy<T>