Class FederationClientMethod<R>
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.federation.FederationClientMethod<R>
Class to define client method,params and arguments.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFederationClientMethod(String method, Class<?>[] pTypes, Object... pParams) FederationClientMethod(String method, Class pTypes, Object pParams) 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) -
Method Summary
-
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
-
getMethodName
-
getTypes
Get the calling types for this method.- Returns:
- An array of calling types.
-
invoke
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.
-