Class AbstractRMAdminRequestInterceptor
java.lang.Object
org.apache.hadoop.yarn.server.router.rmadmin.AbstractRMAdminRequestInterceptor
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.tools.GetUserMappingsProtocol,org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol,RMAdminRequestInterceptor
- Direct Known Subclasses:
DefaultRMAdminRequestInterceptor,FederationRMAdminInterceptor
public abstract class AbstractRMAdminRequestInterceptor
extends Object
implements RMAdminRequestInterceptor
Implements the
RMAdminRequestInterceptor interface and provides
common functionality which can can be used and/or extended by other concrete
interceptor classes.-
Field Summary
FieldsFields inherited from interface org.apache.hadoop.tools.GetUserMappingsProtocol
versionID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.conf.ConfigurationgetConf()Gets theConfiguration.Gets the nextRMAdminRequestInterceptorin the chain.voidInitializes theRMAdminRequestInterceptor.voidsetConf(org.apache.hadoop.conf.Configuration conf) Sets theConfiguration.voidsetNextInterceptor(RMAdminRequestInterceptor nextInterceptor) Sets theRMAdminRequestInterceptorin the chain.voidshutdown()Disposes theRMAdminRequestInterceptor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.tools.GetUserMappingsProtocol
getGroupsForUserMethods inherited from interface org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol
addToClusterNodeLabels, batchSaveFederationQueuePolicies, checkForDecommissioningNodes, deleteFederationApplication, deleteFederationPoliciesByQueues, deregisterSubCluster, getFederationSubClusters, listFederationQueuePolicies, mapAttributesToNodes, refreshAdminAcls, refreshClusterMaxPriority, refreshNodes, refreshNodesResources, refreshQueues, refreshServiceAcls, refreshSuperUserGroupsConfiguration, refreshUserToGroupsMappings, removeFromClusterNodeLabels, replaceLabelsOnNode, saveFederationQueuePolicy, updateNodeResource
-
Field Details
-
user
protected org.apache.hadoop.security.UserGroupInformation user
-
-
Constructor Details
-
AbstractRMAdminRequestInterceptor
public AbstractRMAdminRequestInterceptor()
-
-
Method Details
-
setNextInterceptor
Sets theRMAdminRequestInterceptorin the chain.- Specified by:
setNextInterceptorin interfaceRMAdminRequestInterceptor- Parameters:
nextInterceptor- the RMAdminRequestInterceptor to set in the pipeline
-
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf) Sets theConfiguration.- Specified by:
setConfin interfaceorg.apache.hadoop.conf.Configurable
-
getConf
public org.apache.hadoop.conf.Configuration getConf()Gets theConfiguration.- Specified by:
getConfin interfaceorg.apache.hadoop.conf.Configurable
-
init
Initializes theRMAdminRequestInterceptor.- Specified by:
initin interfaceRMAdminRequestInterceptor- Parameters:
userName- the name of the client
-
shutdown
public void shutdown()Disposes theRMAdminRequestInterceptor.- Specified by:
shutdownin interfaceRMAdminRequestInterceptor
-
getNextInterceptor
Gets the nextRMAdminRequestInterceptorin the chain.- Specified by:
getNextInterceptorin interfaceRMAdminRequestInterceptor- Returns:
- the next interceptor in the chain
-