Class RMAdminProtocolMethod

java.lang.Object
org.apache.hadoop.yarn.server.federation.utils.FederationMethodWrapper
org.apache.hadoop.yarn.server.router.rmadmin.RMAdminProtocolMethod

public class RMAdminProtocolMethod extends org.apache.hadoop.yarn.server.federation.utils.FederationMethodWrapper
Class to define admin method, params and arguments.
  • Constructor Details

  • Method Details

    • invokeConcurrent

      public <R> Collection<R> invokeConcurrent(FederationRMAdminInterceptor interceptor, Class<R> clazz, String subClusterId) throws org.apache.hadoop.yarn.exceptions.YarnException
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException
    • invokeConcurrent

      protected <R> Collection<R> invokeConcurrent(Class<R> clazz) throws org.apache.hadoop.yarn.exceptions.YarnException
      Specified by:
      invokeConcurrent in class org.apache.hadoop.yarn.server.federation.utils.FederationMethodWrapper
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException
    • invoke

      protected <R> Collection<R> invoke(Class<R> clazz, String subClusterId) throws org.apache.hadoop.yarn.exceptions.YarnException
      Call the method in the protocol according to the subClusterId.
      Type Parameters:
      R - Generic R
      Parameters:
      clazz - return type
      subClusterId - subCluster Id
      Returns:
      response collection.
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException - yarn exception.