public interface RESTRequestInterceptor
extends org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol, org.apache.hadoop.conf.Configurable
WebServices. They are in this class
 to make sure that RouterWebServices implements the same REST methods of
 RMWebServices.| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hadoop.yarn.server.webapp.dao.AppAttemptInfo | getAppAttempt(javax.servlet.http.HttpServletRequest req,
             javax.servlet.http.HttpServletResponse res,
             String appId,
             String appAttemptId) | 
| org.apache.hadoop.yarn.server.webapp.dao.ContainerInfo | getContainer(javax.servlet.http.HttpServletRequest req,
            javax.servlet.http.HttpServletResponse res,
            String appId,
            String appAttemptId,
            String containerId) | 
| org.apache.hadoop.yarn.server.webapp.dao.ContainersInfo | getContainers(javax.servlet.http.HttpServletRequest req,
             javax.servlet.http.HttpServletResponse res,
             String appId,
             String appAttemptId) | 
| RESTRequestInterceptor | getNextInterceptor()Returns the next intercepter in the chain. | 
| void | init(String user)This method is called for initializing the intercepter. | 
| void | setNextInterceptor(RESTRequestInterceptor nextInterceptor)Sets the next intercepter in the pipeline. | 
| void | shutdown()This method is called to release the resources held by the intercepter. | 
addToClusterNodeLabels, cancelDelegationToken, checkUserAccessToQueue, createNewApplication, createNewReservation, deleteReservation, dumpSchedulerLogs, get, getActivities, getApp, getAppActivities, getAppAttempts, getAppPriority, getAppQueue, getApps, getAppState, getAppStatistics, getAppTimeout, getAppTimeouts, getClusterInfo, getClusterMetricsInfo, getClusterNodeLabels, getClusterUserInfo, getLabelsOnNode, getLabelsToNodes, getNode, getNodes, getNodeToLabels, getSchedulerInfo, listReservation, postDelegationToken, postDelegationTokenExpiration, removeFromCluserNodeLabels, replaceLabelsOnNode, replaceLabelsOnNodes, signalToContainer, submitApplication, submitReservation, updateApplicationPriority, updateApplicationTimeout, updateAppQueue, updateAppState, updateNodeResource, updateReservationvoid init(String user)
user - the name of the clientvoid shutdown()
void setNextInterceptor(RESTRequestInterceptor nextInterceptor)
nextInterceptor - the RESTRequestInterceptor to set in the pipelineRESTRequestInterceptor getNextInterceptor()
org.apache.hadoop.yarn.server.webapp.dao.AppAttemptInfo getAppAttempt(javax.servlet.http.HttpServletRequest req,
                                                                      javax.servlet.http.HttpServletResponse res,
                                                                      String appId,
                                                                      String appAttemptId)
req - the servlet requestres - the servlet responseappId - the application we want to get the appAttempt. It is a
          PathParam.appAttemptId - the AppAttempt we want to get the info. It is a
          PathParam.WebServices.getAppAttempt(HttpServletRequest, HttpServletResponse,
      String, String)org.apache.hadoop.yarn.server.webapp.dao.ContainersInfo getContainers(javax.servlet.http.HttpServletRequest req,
                                                                      javax.servlet.http.HttpServletResponse res,
                                                                      String appId,
                                                                      String appAttemptId)
req - the servlet requestres - the servlet responseappId - the application we want to get the containers info. It is a
          PathParam.appAttemptId - the AppAttempt we want to get the info. It is a
          PathParam.WebServices.getContainers(HttpServletRequest, HttpServletResponse,
      String, String)org.apache.hadoop.yarn.server.webapp.dao.ContainerInfo getContainer(javax.servlet.http.HttpServletRequest req,
                                                                    javax.servlet.http.HttpServletResponse res,
                                                                    String appId,
                                                                    String appAttemptId,
                                                                    String containerId)
req - the servlet requestres - the servlet responseappId - the application we want to get the containers info. It is a
          PathParam.appAttemptId - the AppAttempt we want to get the info. It is a
          PathParam.containerId - the container we want to get the info. It is a
          PathParam.WebServices.getContainer(HttpServletRequest, HttpServletResponse,
      String, String, String)Copyright © 2008–2023 Apache Software Foundation. All rights reserved.