Class FederationClientMethod<R>

java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.federation.FederationClientMethod<R>

public class FederationClientMethod<R> extends Object
Class to define client method,params and arguments.
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
  • Constructor Details

    • FederationClientMethod

      public FederationClientMethod(String method, Class<?>[] pTypes, Object... pParams) throws org.apache.hadoop.yarn.exceptions.YarnException
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException
    • FederationClientMethod

      public FederationClientMethod(String method, Class pTypes, Object pParams) throws org.apache.hadoop.yarn.exceptions.YarnException
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException
    • FederationClientMethod

      public FederationClientMethod(String method, Class pTypes, Object pParams, Class<R> rTypes, org.apache.hadoop.yarn.server.federation.store.FederationStateStore fedStateStore, org.apache.hadoop.yarn.util.Clock fedClock) throws org.apache.hadoop.yarn.exceptions.YarnException
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException
  • Method Details

    • getParams

      public Object[] getParams()
    • getMethodName

      public String getMethodName()
    • getTypes

      public Class<?>[] getTypes()
      Get the calling types for this method.
      Returns:
      An array of calling types.
    • invoke

      protected R invoke() throws org.apache.hadoop.yarn.exceptions.YarnException
      We will use the invoke method to call the method in FederationStateStoreService.
      Returns:
      The result returned after calling the interface.
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException - yarn exception.