Class DefaultRequestInterceptorREST
java.lang.Object
org.apache.hadoop.yarn.server.router.webapp.AbstractRESTRequestInterceptor
org.apache.hadoop.yarn.server.router.webapp.DefaultRequestInterceptorREST
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol,RESTRequestInterceptor
Extends the AbstractRequestInterceptorClient class and provides an
implementation that simply forwards the client requests to the resource
manager.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponseaddToClusterNodeLabels(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo newNodeLabels, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsecancelDelegationToken(javax.servlet.http.HttpServletRequest hsr) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.RMQueueAclInfocheckUserAccessToQueue(String queue, String username, String queueAclType, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsecreateNewApplication(javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsecreateNewReservation(javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsedeleteReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationDeleteRequestInfo resContext, javax.servlet.http.HttpServletRequest hsr) dumpSchedulerLogs(String time, javax.servlet.http.HttpServletRequest hsr) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfoget()org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ActivitiesInfogetActivities(javax.servlet.http.HttpServletRequest hsr, String nodeId, String groupBy) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppInfoorg.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppActivitiesInfogetAppActivities(javax.servlet.http.HttpServletRequest hsr, String appId, String time, Set<String> requestPriorities, Set<String> allocationRequestIds, String groupBy, String limit, Set<String> actions, boolean summarize) org.apache.hadoop.yarn.server.webapp.dao.AppAttemptInfogetAppAttempt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppAttemptsInfogetAppAttempts(javax.servlet.http.HttpServletRequest hsr, String appId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppPrioritygetAppPriority(javax.servlet.http.HttpServletRequest hsr, String appId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppQueuegetAppQueue(javax.servlet.http.HttpServletRequest hsr, String appId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppsInfogetApps(javax.servlet.http.HttpServletRequest hsr, String stateQuery, Set<String> statesQuery, String finalStatusQuery, String userQuery, String queueQuery, String count, String startedBegin, String startedEnd, String finishBegin, String finishEnd, Set<String> applicationTypes, Set<String> applicationTags, String name, Set<String> unselectedFields) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppStategetAppState(javax.servlet.http.HttpServletRequest hsr, String appId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationStatisticsInfogetAppStatistics(javax.servlet.http.HttpServletRequest hsr, Set<String> stateQueries, Set<String> typeQueries) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutInfogetAppTimeout(javax.servlet.http.HttpServletRequest hsr, String appId, String type) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutsInfogetAppTimeouts(javax.servlet.http.HttpServletRequest hsr, String appId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.BulkActivitiesInfogetBulkActivities(javax.servlet.http.HttpServletRequest hsr, String groupBy, int activitiesCount) javax.ws.rs.client.Clientorg.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfoorg.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfoorg.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfogetClusterNodeLabels(javax.servlet.http.HttpServletRequest hsr) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterUserInfogetClusterUserInfo(javax.servlet.http.HttpServletRequest hsr) org.apache.hadoop.yarn.server.webapp.dao.ContainerInfogetContainer(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId, String containerId) org.apache.hadoop.yarn.server.webapp.dao.ContainersInfogetContainers(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfogetLabelsOnNode(javax.servlet.http.HttpServletRequest hsr, String nodeId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.LabelsToNodesInfogetLabelsToNodes(Set<String> labels) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeInfoorg.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodesInfoorg.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsInfogetNodeToLabels(javax.servlet.http.HttpServletRequest hsr) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfogetRMNodeLabels(javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsegetSchedulerConfiguration(javax.servlet.http.HttpServletRequest req) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.SchedulerTypeInfoprotected org.apache.hadoop.yarn.server.federation.store.records.SubClusterIdprotected StringvoidInitializes theRESTRequestInterceptor.javax.ws.rs.core.ResponselistReservation(String queue, String reservationId, long startTime, long endTime, boolean includeResourceAllocations, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsepostDelegationToken(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.DelegationToken tokenData, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsepostDelegationTokenExpiration(javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponseremoveFromClusterNodeLabels(Set<String> oldNodeLabels, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsereplaceLabelsOnNode(Set<String> newNodeLabelsName, javax.servlet.http.HttpServletRequest hsr, String nodeId) javax.ws.rs.core.ResponsereplaceLabelsOnNodes(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsEntryList newNodeToLabels, javax.servlet.http.HttpServletRequest hsr) voidSets theRESTRequestInterceptorin the chain.protected voidsetSubClusterId(org.apache.hadoop.yarn.server.federation.store.records.SubClusterId scId) voidsetWebAppAddress(String webAppAddress) javax.ws.rs.core.ResponsesignalToContainer(String containerId, String command, javax.servlet.http.HttpServletRequest req) javax.ws.rs.core.ResponsesubmitApplication(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationSubmissionContextInfo newApp, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponsesubmitReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationSubmissionRequestInfo resContext, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponseupdateApplicationPriority(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppPriority targetPriority, javax.servlet.http.HttpServletRequest hsr, String appId) javax.ws.rs.core.ResponseupdateApplicationTimeout(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutInfo appTimeout, javax.servlet.http.HttpServletRequest hsr, String appId) javax.ws.rs.core.ResponseupdateAppQueue(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppQueue targetQueue, javax.servlet.http.HttpServletRequest hsr, String appId) javax.ws.rs.core.ResponseupdateAppState(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppState targetState, javax.servlet.http.HttpServletRequest hsr, String appId) org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceInfoupdateNodeResource(javax.servlet.http.HttpServletRequest hsr, String nodeId, org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceOptionInfo resourceOption) javax.ws.rs.core.ResponseupdateReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationUpdateRequestInfo resContext, javax.servlet.http.HttpServletRequest hsr) javax.ws.rs.core.ResponseupdateSchedulerConfiguration(org.apache.hadoop.yarn.webapp.dao.SchedConfUpdateInfo mutationInfo, javax.servlet.http.HttpServletRequest req) Methods inherited from class org.apache.hadoop.yarn.server.router.webapp.AbstractRESTRequestInterceptor
getConf, getNextInterceptor, getRouterClientRMService, getUser, setConf, setRouterClientRMService, shutdown
-
Constructor Details
-
DefaultRequestInterceptorREST
public DefaultRequestInterceptorREST()
-
-
Method Details
-
setWebAppAddress
-
getWebAppAddress
-
setSubClusterId
protected void setSubClusterId(org.apache.hadoop.yarn.server.federation.store.records.SubClusterId scId) -
getSubClusterId
protected org.apache.hadoop.yarn.server.federation.store.records.SubClusterId getSubClusterId() -
init
Description copied from class:AbstractRESTRequestInterceptorInitializes theRESTRequestInterceptor.- Specified by:
initin interfaceRESTRequestInterceptor- Overrides:
initin classAbstractRESTRequestInterceptor- Parameters:
user- the name of the client
-
get
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo get() -
getClusterInfo
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo getClusterInfo() -
getClusterUserInfo
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterUserInfo getClusterUserInfo(javax.servlet.http.HttpServletRequest hsr) -
getClusterMetricsInfo
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfo getClusterMetricsInfo() -
getSchedulerInfo
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.SchedulerTypeInfo getSchedulerInfo() -
dumpSchedulerLogs
public String dumpSchedulerLogs(String time, javax.servlet.http.HttpServletRequest hsr) throws IOException - Throws:
IOException
-
getNodes
-
getNode
-
updateNodeResource
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceInfo updateNodeResource(javax.servlet.http.HttpServletRequest hsr, String nodeId, org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ResourceOptionInfo resourceOption) -
getApps
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppsInfo getApps(javax.servlet.http.HttpServletRequest hsr, String stateQuery, Set<String> statesQuery, String finalStatusQuery, String userQuery, String queueQuery, String count, String startedBegin, String startedEnd, String finishBegin, String finishEnd, Set<String> applicationTypes, Set<String> applicationTags, String name, Set<String> unselectedFields) -
getActivities
-
getBulkActivities
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.BulkActivitiesInfo getBulkActivities(javax.servlet.http.HttpServletRequest hsr, String groupBy, int activitiesCount) -
getAppActivities
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppActivitiesInfo getAppActivities(javax.servlet.http.HttpServletRequest hsr, String appId, String time, Set<String> requestPriorities, Set<String> allocationRequestIds, String groupBy, String limit, Set<String> actions, boolean summarize) -
getAppStatistics
-
getApp
-
getAppState
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppState getAppState(javax.servlet.http.HttpServletRequest hsr, String appId) throws org.apache.hadoop.security.authorize.AuthorizationException - Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
updateAppState
public javax.ws.rs.core.Response updateAppState(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppState targetState, javax.servlet.http.HttpServletRequest hsr, String appId) throws org.apache.hadoop.security.authorize.AuthorizationException, org.apache.hadoop.yarn.exceptions.YarnException, InterruptedException, IOException - Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionInterruptedExceptionIOException
-
getNodeToLabels
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsInfo getNodeToLabels(javax.servlet.http.HttpServletRequest hsr) throws IOException - Throws:
IOException
-
getLabelsToNodes
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.LabelsToNodesInfo getLabelsToNodes(Set<String> labels) throws IOException - Throws:
IOException
-
replaceLabelsOnNodes
public javax.ws.rs.core.Response replaceLabelsOnNodes(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsEntryList newNodeToLabels, javax.servlet.http.HttpServletRequest hsr) throws IOException - Throws:
IOException
-
replaceLabelsOnNode
public javax.ws.rs.core.Response replaceLabelsOnNode(Set<String> newNodeLabelsName, javax.servlet.http.HttpServletRequest hsr, String nodeId) throws Exception - Throws:
Exception
-
getClusterNodeLabels
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo getClusterNodeLabels(javax.servlet.http.HttpServletRequest hsr) throws IOException - Throws:
IOException
-
addToClusterNodeLabels
public javax.ws.rs.core.Response addToClusterNodeLabels(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo newNodeLabels, javax.servlet.http.HttpServletRequest hsr) throws Exception - Throws:
Exception
-
removeFromClusterNodeLabels
public javax.ws.rs.core.Response removeFromClusterNodeLabels(Set<String> oldNodeLabels, javax.servlet.http.HttpServletRequest hsr) throws Exception - Throws:
Exception
-
getLabelsOnNode
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo getLabelsOnNode(javax.servlet.http.HttpServletRequest hsr, String nodeId) throws IOException - Throws:
IOException
-
getAppPriority
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppPriority getAppPriority(javax.servlet.http.HttpServletRequest hsr, String appId) throws org.apache.hadoop.security.authorize.AuthorizationException - Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
updateApplicationPriority
public javax.ws.rs.core.Response updateApplicationPriority(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppPriority targetPriority, javax.servlet.http.HttpServletRequest hsr, String appId) throws org.apache.hadoop.security.authorize.AuthorizationException, org.apache.hadoop.yarn.exceptions.YarnException, InterruptedException, IOException - Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionInterruptedExceptionIOException
-
getAppQueue
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppQueue getAppQueue(javax.servlet.http.HttpServletRequest hsr, String appId) throws org.apache.hadoop.security.authorize.AuthorizationException - Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
updateAppQueue
public javax.ws.rs.core.Response updateAppQueue(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppQueue targetQueue, javax.servlet.http.HttpServletRequest hsr, String appId) throws org.apache.hadoop.security.authorize.AuthorizationException, org.apache.hadoop.yarn.exceptions.YarnException, InterruptedException, IOException - Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionInterruptedExceptionIOException
-
createNewApplication
public javax.ws.rs.core.Response createNewApplication(javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException - Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedException
-
submitApplication
public javax.ws.rs.core.Response submitApplication(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationSubmissionContextInfo newApp, javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException - Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedException
-
postDelegationToken
public javax.ws.rs.core.Response postDelegationToken(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.DelegationToken tokenData, javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException, Exception - Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedExceptionException
-
postDelegationTokenExpiration
public javax.ws.rs.core.Response postDelegationTokenExpiration(javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException, Exception - Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedExceptionException
-
cancelDelegationToken
public javax.ws.rs.core.Response cancelDelegationToken(javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException, Exception - Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedExceptionException
-
createNewReservation
public javax.ws.rs.core.Response createNewReservation(javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException - Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedException
-
submitReservation
public javax.ws.rs.core.Response submitReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationSubmissionRequestInfo resContext, javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException - Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedException
-
updateReservation
public javax.ws.rs.core.Response updateReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationUpdateRequestInfo resContext, javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException - Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedException
-
deleteReservation
public javax.ws.rs.core.Response deleteReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationDeleteRequestInfo resContext, javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException, IOException, InterruptedException - Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedException
-
listReservation
public javax.ws.rs.core.Response listReservation(String queue, String reservationId, long startTime, long endTime, boolean includeResourceAllocations, javax.servlet.http.HttpServletRequest hsr) throws Exception - Throws:
Exception
-
getAppTimeout
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutInfo getAppTimeout(javax.servlet.http.HttpServletRequest hsr, String appId, String type) throws org.apache.hadoop.security.authorize.AuthorizationException - Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
getAppTimeouts
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutsInfo getAppTimeouts(javax.servlet.http.HttpServletRequest hsr, String appId) throws org.apache.hadoop.security.authorize.AuthorizationException - Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
updateApplicationTimeout
public javax.ws.rs.core.Response updateApplicationTimeout(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutInfo appTimeout, javax.servlet.http.HttpServletRequest hsr, String appId) throws org.apache.hadoop.security.authorize.AuthorizationException, org.apache.hadoop.yarn.exceptions.YarnException, InterruptedException, IOException - Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionInterruptedExceptionIOException
-
getAppAttempts
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppAttemptsInfo getAppAttempts(javax.servlet.http.HttpServletRequest hsr, String appId) -
checkUserAccessToQueue
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.RMQueueAclInfo checkUserAccessToQueue(String queue, String username, String queueAclType, javax.servlet.http.HttpServletRequest hsr) throws org.apache.hadoop.security.authorize.AuthorizationException - Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
getAppAttempt
public org.apache.hadoop.yarn.server.webapp.dao.AppAttemptInfo getAppAttempt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId) - Parameters:
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.- Returns:
- AppAttemptInfo of the specific AppAttempt
- See Also:
-
WebServices.getAppAttempt(HttpServletRequest, HttpServletResponse, String, String)
-
getContainers
public org.apache.hadoop.yarn.server.webapp.dao.ContainersInfo getContainers(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId) - Parameters:
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.- Returns:
- ContainersInfo of all the containers that belong to the specific AppAttempt
- See Also:
-
WebServices.getContainers(HttpServletRequest, HttpServletResponse, String, String)
-
getContainer
public 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) - Parameters:
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.- Returns:
- ContainerInfo of the specific ContainerId
- See Also:
-
WebServices.getContainer(HttpServletRequest, HttpServletResponse, String, String, String)
-
updateSchedulerConfiguration
public javax.ws.rs.core.Response updateSchedulerConfiguration(org.apache.hadoop.yarn.webapp.dao.SchedConfUpdateInfo mutationInfo, javax.servlet.http.HttpServletRequest req) throws org.apache.hadoop.security.authorize.AuthorizationException, InterruptedException - Throws:
org.apache.hadoop.security.authorize.AuthorizationExceptionInterruptedException
-
getSchedulerConfiguration
public javax.ws.rs.core.Response getSchedulerConfiguration(javax.servlet.http.HttpServletRequest req) throws org.apache.hadoop.security.authorize.AuthorizationException - Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
setNextInterceptor
Description copied from class:AbstractRESTRequestInterceptorSets theRESTRequestInterceptorin the chain.- Specified by:
setNextInterceptorin interfaceRESTRequestInterceptor- Overrides:
setNextInterceptorin classAbstractRESTRequestInterceptor- Parameters:
next- the RESTRequestInterceptor to set in the pipeline
-
signalToContainer
public javax.ws.rs.core.Response signalToContainer(String containerId, String command, javax.servlet.http.HttpServletRequest req) throws org.apache.hadoop.security.authorize.AuthorizationException - Throws:
org.apache.hadoop.security.authorize.AuthorizationException
-
getClient
@VisibleForTesting public javax.ws.rs.client.Client getClient() -
getRMNodeLabels
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo getRMNodeLabels(javax.servlet.http.HttpServletRequest hsr)
-