public class RouterWebServices extends Object implements org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocol
RMWebServiceProtocol messages from client to
the cluster resource manager. It listens RMWebServiceProtocol REST
messages from the client and creates a request intercepting pipeline instance
for each client. The pipeline is a chain of RESTRequestInterceptor
instances that can inspect and modify the request/response as needed. The
main difference with AMRMProxyService is the protocol they implement.| Modifier and Type | Class and Description |
|---|---|
static class |
RouterWebServices.RequestInterceptorChainWrapper
Private structure for encapsulating RequestInterceptor and user instances.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_END_TIME |
static String |
DEFAULT_INCLUDE_RESOURCE |
static String |
DEFAULT_QUEUE |
static String |
DEFAULT_RESERVATION_ID |
static String |
DEFAULT_START_TIME |
| Constructor and Description |
|---|
RouterWebServices(Router router,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addToClusterNodeLabels(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo newNodeLabels,
javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
cancelDelegationToken(javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
createNewApplication(javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
createNewReservation(javax.servlet.http.HttpServletRequest hsr) |
protected RESTRequestInterceptor |
createRequestInterceptorChain()
This method creates and returns reference of the first intercepter in the
chain of request intercepter instances.
|
javax.ws.rs.core.Response |
deleteReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationDeleteRequestInfo resContext,
javax.servlet.http.HttpServletRequest hsr) |
String |
dumpSchedulerLogs(String time,
javax.servlet.http.HttpServletRequest hsr) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo |
get() |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ActivitiesInfo |
getActivities(javax.servlet.http.HttpServletRequest hsr,
String nodeId) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppInfo |
getApp(javax.servlet.http.HttpServletRequest hsr,
String appId,
Set<String> unselectedFields) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppActivitiesInfo |
getAppActivities(javax.servlet.http.HttpServletRequest hsr,
String appId,
String time) |
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.resourcemanager.webapp.dao.AppAttemptsInfo |
getAppAttempts(javax.servlet.http.HttpServletRequest hsr,
String appId) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppPriority |
getAppPriority(javax.servlet.http.HttpServletRequest hsr,
String appId) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppQueue |
getAppQueue(javax.servlet.http.HttpServletRequest hsr,
String appId) |
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,
Set<String> unselectedFields) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppState |
getAppState(javax.servlet.http.HttpServletRequest hsr,
String appId) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationStatisticsInfo |
getAppStatistics(javax.servlet.http.HttpServletRequest hsr,
Set<String> stateQueries,
Set<String> typeQueries) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutInfo |
getAppTimeout(javax.servlet.http.HttpServletRequest hsr,
String appId,
String type) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutsInfo |
getAppTimeouts(javax.servlet.http.HttpServletRequest hsr,
String appId) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo |
getClusterInfo() |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfo |
getClusterMetricsInfo() |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo |
getClusterNodeLabels(javax.servlet.http.HttpServletRequest hsr) |
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) |
protected RouterWebServices.RequestInterceptorChainWrapper |
getInterceptorChain(javax.servlet.http.HttpServletRequest hsr) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo |
getLabelsOnNode(javax.servlet.http.HttpServletRequest hsr,
String nodeId) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.LabelsToNodesInfo |
getLabelsToNodes(Set<String> labels) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeInfo |
getNode(String nodeId) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodesInfo |
getNodes(String states) |
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsInfo |
getNodeToLabels(javax.servlet.http.HttpServletRequest hsr) |
protected Map<String,RouterWebServices.RequestInterceptorChainWrapper> |
getPipelines()
Gets the Request intercepter chains for all the users.
|
org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.SchedulerTypeInfo |
getSchedulerInfo() |
javax.ws.rs.core.Response |
listReservation(String queue,
String reservationId,
long startTime,
long endTime,
boolean includeResourceAllocations,
javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
postDelegationToken(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.DelegationToken tokenData,
javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
postDelegationTokenExpiration(javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
removeFromCluserNodeLabels(Set<String> oldNodeLabels,
javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
replaceLabelsOnNode(Set<String> newNodeLabelsName,
javax.servlet.http.HttpServletRequest hsr,
String nodeId) |
javax.ws.rs.core.Response |
replaceLabelsOnNodes(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsEntryList newNodeToLabels,
javax.servlet.http.HttpServletRequest hsr) |
protected void |
setResponse(javax.servlet.http.HttpServletResponse response) |
javax.ws.rs.core.Response |
submitApplication(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationSubmissionContextInfo newApp,
javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
submitReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationSubmissionRequestInfo resContext,
javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
updateApplicationPriority(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppPriority targetPriority,
javax.servlet.http.HttpServletRequest hsr,
String appId) |
javax.ws.rs.core.Response |
updateApplicationTimeout(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutInfo appTimeout,
javax.servlet.http.HttpServletRequest hsr,
String appId) |
javax.ws.rs.core.Response |
updateAppQueue(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppQueue targetQueue,
javax.servlet.http.HttpServletRequest hsr,
String appId) |
javax.ws.rs.core.Response |
updateAppState(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppState targetState,
javax.servlet.http.HttpServletRequest hsr,
String appId) |
javax.ws.rs.core.Response |
updateReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationUpdateRequestInfo resContext,
javax.servlet.http.HttpServletRequest hsr) |
public static final String DEFAULT_QUEUE
public static final String DEFAULT_RESERVATION_ID
public static final String DEFAULT_START_TIME
public static final String DEFAULT_END_TIME
public static final String DEFAULT_INCLUDE_RESOURCE
@Inject public RouterWebServices(Router router, org.apache.hadoop.conf.Configuration conf)
protected RouterWebServices.RequestInterceptorChainWrapper getInterceptorChain(javax.servlet.http.HttpServletRequest hsr)
protected Map<String,RouterWebServices.RequestInterceptorChainWrapper> getPipelines()
protected RESTRequestInterceptor createRequestInterceptorChain()
public org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo get()
get in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterInfo getClusterInfo()
getClusterInfo in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ClusterMetricsInfo getClusterMetricsInfo()
getClusterMetricsInfo in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.SchedulerTypeInfo getSchedulerInfo()
getSchedulerInfo in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolpublic String dumpSchedulerLogs(String time, @Context javax.servlet.http.HttpServletRequest hsr) throws IOException
dumpSchedulerLogs in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolIOExceptionpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodesInfo getNodes(String states)
getNodes in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeInfo getNode(String nodeId)
getNode in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppsInfo getApps(@Context
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,
Set<String> unselectedFields)
getApps in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ActivitiesInfo getActivities(@Context
javax.servlet.http.HttpServletRequest hsr,
String nodeId)
getActivities in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppActivitiesInfo getAppActivities(@Context
javax.servlet.http.HttpServletRequest hsr,
String appId,
String time)
getAppActivities in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationStatisticsInfo getAppStatistics(@Context
javax.servlet.http.HttpServletRequest hsr,
Set<String> stateQueries,
Set<String> typeQueries)
getAppStatistics in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppInfo getApp(@Context
javax.servlet.http.HttpServletRequest hsr,
String appId,
Set<String> unselectedFields)
getApp in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppState getAppState(@Context
javax.servlet.http.HttpServletRequest hsr,
String appId)
throws org.apache.hadoop.security.authorize.AuthorizationException
getAppState in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionpublic javax.ws.rs.core.Response updateAppState(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppState targetState,
@Context
javax.servlet.http.HttpServletRequest hsr,
String appId)
throws org.apache.hadoop.security.authorize.AuthorizationException,
org.apache.hadoop.yarn.exceptions.YarnException,
InterruptedException,
IOException
updateAppState in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionInterruptedExceptionIOExceptionpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsInfo getNodeToLabels(@Context
javax.servlet.http.HttpServletRequest hsr)
throws IOException
getNodeToLabels in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolIOExceptionpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.LabelsToNodesInfo getLabelsToNodes(Set<String> labels) throws IOException
getLabelsToNodes in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolIOExceptionpublic javax.ws.rs.core.Response replaceLabelsOnNodes(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeToLabelsEntryList newNodeToLabels,
@Context
javax.servlet.http.HttpServletRequest hsr)
throws Exception
replaceLabelsOnNodes in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolExceptionpublic javax.ws.rs.core.Response replaceLabelsOnNode(Set<String> newNodeLabelsName, @Context javax.servlet.http.HttpServletRequest hsr, String nodeId) throws Exception
replaceLabelsOnNode in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolExceptionpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo getClusterNodeLabels(@Context
javax.servlet.http.HttpServletRequest hsr)
throws IOException
getClusterNodeLabels in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolIOExceptionpublic javax.ws.rs.core.Response addToClusterNodeLabels(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo newNodeLabels,
@Context
javax.servlet.http.HttpServletRequest hsr)
throws Exception
addToClusterNodeLabels in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolExceptionpublic javax.ws.rs.core.Response removeFromCluserNodeLabels(Set<String> oldNodeLabels, @Context javax.servlet.http.HttpServletRequest hsr) throws Exception
removeFromCluserNodeLabels in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolExceptionpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.NodeLabelsInfo getLabelsOnNode(@Context
javax.servlet.http.HttpServletRequest hsr,
String nodeId)
throws IOException
getLabelsOnNode in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolIOExceptionpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppPriority getAppPriority(@Context
javax.servlet.http.HttpServletRequest hsr,
String appId)
throws org.apache.hadoop.security.authorize.AuthorizationException
getAppPriority in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionpublic javax.ws.rs.core.Response updateApplicationPriority(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppPriority targetPriority,
@Context
javax.servlet.http.HttpServletRequest hsr,
String appId)
throws org.apache.hadoop.security.authorize.AuthorizationException,
org.apache.hadoop.yarn.exceptions.YarnException,
InterruptedException,
IOException
updateApplicationPriority in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionInterruptedExceptionIOExceptionpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppQueue getAppQueue(@Context
javax.servlet.http.HttpServletRequest hsr,
String appId)
throws org.apache.hadoop.security.authorize.AuthorizationException
getAppQueue in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionpublic javax.ws.rs.core.Response updateAppQueue(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppQueue targetQueue,
@Context
javax.servlet.http.HttpServletRequest hsr,
String appId)
throws org.apache.hadoop.security.authorize.AuthorizationException,
org.apache.hadoop.yarn.exceptions.YarnException,
InterruptedException,
IOException
updateAppQueue in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionInterruptedExceptionIOExceptionpublic javax.ws.rs.core.Response createNewApplication(@Context
javax.servlet.http.HttpServletRequest hsr)
throws org.apache.hadoop.security.authorize.AuthorizationException,
IOException,
InterruptedException
createNewApplication in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedExceptionpublic javax.ws.rs.core.Response submitApplication(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ApplicationSubmissionContextInfo newApp,
@Context
javax.servlet.http.HttpServletRequest hsr)
throws org.apache.hadoop.security.authorize.AuthorizationException,
IOException,
InterruptedException
submitApplication in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedExceptionpublic javax.ws.rs.core.Response postDelegationToken(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.DelegationToken tokenData,
@Context
javax.servlet.http.HttpServletRequest hsr)
throws org.apache.hadoop.security.authorize.AuthorizationException,
IOException,
InterruptedException,
Exception
postDelegationToken in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedExceptionExceptionpublic javax.ws.rs.core.Response postDelegationTokenExpiration(@Context
javax.servlet.http.HttpServletRequest hsr)
throws org.apache.hadoop.security.authorize.AuthorizationException,
IOException,
Exception
postDelegationTokenExpiration in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionExceptionpublic javax.ws.rs.core.Response cancelDelegationToken(@Context
javax.servlet.http.HttpServletRequest hsr)
throws org.apache.hadoop.security.authorize.AuthorizationException,
IOException,
InterruptedException,
Exception
cancelDelegationToken in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedExceptionExceptionpublic javax.ws.rs.core.Response createNewReservation(@Context
javax.servlet.http.HttpServletRequest hsr)
throws org.apache.hadoop.security.authorize.AuthorizationException,
IOException,
InterruptedException
createNewReservation in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedExceptionpublic javax.ws.rs.core.Response submitReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationSubmissionRequestInfo resContext,
@Context
javax.servlet.http.HttpServletRequest hsr)
throws org.apache.hadoop.security.authorize.AuthorizationException,
IOException,
InterruptedException
submitReservation in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedExceptionpublic javax.ws.rs.core.Response updateReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationUpdateRequestInfo resContext,
@Context
javax.servlet.http.HttpServletRequest hsr)
throws org.apache.hadoop.security.authorize.AuthorizationException,
IOException,
InterruptedException
updateReservation in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedExceptionpublic javax.ws.rs.core.Response deleteReservation(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.ReservationDeleteRequestInfo resContext,
@Context
javax.servlet.http.HttpServletRequest hsr)
throws org.apache.hadoop.security.authorize.AuthorizationException,
IOException,
InterruptedException
deleteReservation in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionIOExceptionInterruptedExceptionpublic javax.ws.rs.core.Response listReservation(String queue, String reservationId, long startTime, long endTime, boolean includeResourceAllocations, @Context javax.servlet.http.HttpServletRequest hsr) throws Exception
listReservation in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolExceptionpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutInfo getAppTimeout(@Context
javax.servlet.http.HttpServletRequest hsr,
String appId,
String type)
throws org.apache.hadoop.security.authorize.AuthorizationException
getAppTimeout in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutsInfo getAppTimeouts(@Context
javax.servlet.http.HttpServletRequest hsr,
String appId)
throws org.apache.hadoop.security.authorize.AuthorizationException
getAppTimeouts in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionpublic javax.ws.rs.core.Response updateApplicationTimeout(org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppTimeoutInfo appTimeout,
@Context
javax.servlet.http.HttpServletRequest hsr,
String appId)
throws org.apache.hadoop.security.authorize.AuthorizationException,
org.apache.hadoop.yarn.exceptions.YarnException,
InterruptedException,
IOException
updateApplicationTimeout in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolorg.apache.hadoop.security.authorize.AuthorizationExceptionorg.apache.hadoop.yarn.exceptions.YarnExceptionInterruptedExceptionIOExceptionpublic org.apache.hadoop.yarn.server.resourcemanager.webapp.dao.AppAttemptsInfo getAppAttempts(@Context
javax.servlet.http.HttpServletRequest hsr,
String appId)
getAppAttempts in interface org.apache.hadoop.yarn.server.resourcemanager.webapp.RMWebServiceProtocolpublic org.apache.hadoop.yarn.server.webapp.dao.AppAttemptInfo getAppAttempt(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
String appId,
String appAttemptId)
public org.apache.hadoop.yarn.server.webapp.dao.ContainersInfo getContainers(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
String appId,
String appAttemptId)
public org.apache.hadoop.yarn.server.webapp.dao.ContainerInfo getContainer(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
String appId,
String appAttemptId,
String containerId)
protected void setResponse(javax.servlet.http.HttpServletResponse response)
Copyright © 2022 Apache Software Foundation. All rights reserved.