Class AbstractRESTRequestInterceptor
java.lang.Object
org.apache.hadoop.yarn.server.router.webapp.AbstractRESTRequestInterceptor
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol,RESTRequestInterceptor
- Direct Known Subclasses:
DefaultRequestInterceptorREST,FederationInterceptorREST
public abstract class AbstractRESTRequestInterceptor
extends Object
implements RESTRequestInterceptor
Extends the RequestInterceptor class and provides common functionality which
can be used and/or extended by other concrete interceptor classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.conf.ConfigurationgetConf()Gets theConfiguration.Gets the nextRESTRequestInterceptorin the chain.Get RouterClientRMService.org.apache.hadoop.security.UserGroupInformationgetUser()voidInitializes theRESTRequestInterceptor.voidsetConf(org.apache.hadoop.conf.Configuration conf) Sets theConfiguration.voidsetNextInterceptor(RESTRequestInterceptor nextInterceptor) Sets theRESTRequestInterceptorin the chain.voidsetRouterClientRMService(RouterClientRMService routerClientRMService) Set RouterClientRMService.voidshutdown()Disposes theRESTRequestInterceptor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.yarn.server.router.webapp.RESTRequestInterceptor
getAppAttempt, getContainer, getContainersMethods inherited from interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
addToClusterNodeLabels, cancelDelegationToken, checkUserAccessToQueue, createNewApplication, createNewReservation, deleteReservation, dumpSchedulerLogs, get, getActivities, getApp, getAppActivities, getAppAttempts, getAppPriority, getAppQueue, getApps, getAppState, getAppStatistics, getAppTimeout, getAppTimeouts, getBulkActivities, getClusterInfo, getClusterMetricsInfo, getClusterNodeLabels, getClusterUserInfo, getLabelsOnNode, getLabelsToNodes, getNode, getNodes, getNodeToLabels, getRMNodeLabels, getSchedulerConfiguration, getSchedulerInfo, listReservation, postDelegationToken, postDelegationTokenExpiration, removeFromClusterNodeLabels, replaceLabelsOnNode, replaceLabelsOnNodes, signalToContainer, submitApplication, submitReservation, updateApplicationPriority, updateApplicationTimeout, updateAppQueue, updateAppState, updateNodeResource, updateReservation, updateSchedulerConfiguration
-
Constructor Details
-
AbstractRESTRequestInterceptor
public AbstractRESTRequestInterceptor()
-
-
Method Details
-
setNextInterceptor
Sets theRESTRequestInterceptorin the chain.- Specified by:
setNextInterceptorin interfaceRESTRequestInterceptor- Parameters:
nextInterceptor- the RESTRequestInterceptor 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 theRESTRequestInterceptor.- Specified by:
initin interfaceRESTRequestInterceptor- Parameters:
userName- the name of the client
-
shutdown
public void shutdown()Disposes theRESTRequestInterceptor.- Specified by:
shutdownin interfaceRESTRequestInterceptor
-
getNextInterceptor
Gets the nextRESTRequestInterceptorin the chain.- Specified by:
getNextInterceptorin interfaceRESTRequestInterceptor- Returns:
- the next interceptor in the chain
-
getUser
public org.apache.hadoop.security.UserGroupInformation getUser() -
getRouterClientRMService
Description copied from interface:RESTRequestInterceptorGet RouterClientRMService.- Specified by:
getRouterClientRMServicein interfaceRESTRequestInterceptor- Returns:
- RouterClientRMService
-
setRouterClientRMService
Description copied from interface:RESTRequestInterceptorSet RouterClientRMService.- Specified by:
setRouterClientRMServicein interfaceRESTRequestInterceptor- Parameters:
routerClientRMService- routerClientRMService.
-