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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <R> Collection<R>Call the method in the protocol according to the subClusterId.protected <R> Collection<R>invokeConcurrent(Class<R> clazz) <R> Collection<R>invokeConcurrent(FederationRMAdminInterceptor interceptor, Class<R> clazz, String subClusterId) Methods inherited from class org.apache.hadoop.yarn.server.federation.utils.FederationMethodWrapper
getMethodName, getParams, getTypes, setMethodName
-
Constructor Details
-
RMAdminProtocolMethod
- Throws:
IOException
-
-
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:
invokeConcurrentin classorg.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 typesubClusterId- subCluster Id- Returns:
- response collection.
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException- yarn exception.
-