Class WebServices
java.lang.Object
org.apache.hadoop.yarn.server.webapp.WebServices
- All Implemented Interfaces:
AppInfoProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.hadoop.yarn.api.ApplicationBaseProtocol -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.server.webapp.BasicAppInfoReturnsBasicAppInfoobject that wraps the collected information about the application.getApp(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId) getAppAttempt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId) getAppAttempts(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId) protected org.apache.hadoop.yarn.api.records.ApplicationAttemptReportgetApplicationAttemptReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationAttemptReportRequest request) protected List<org.apache.hadoop.yarn.api.records.ApplicationAttemptReport>getApplicationAttemptsReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationAttemptsRequest request) protected org.apache.hadoop.yarn.api.records.ApplicationReportgetApplicationReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationReportRequest request) protected List<org.apache.hadoop.yarn.api.records.ApplicationReport>getApplicationsReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationsRequest request) getApps(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String stateQuery, Set<String> statesQuery, String finalStatusQuery, String userQuery, String queueQuery, String count, String startedBegin, String startedEnd, String finishBegin, String finishEnd, String nameQuery, Set<String> applicationTypes) getContainer(javax.servlet.http.HttpServletRequest req, String appId, String appAttemptId, String containerId) getContainer(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId, String containerId) protected org.apache.hadoop.yarn.api.records.ContainerReportgetContainerReport(org.apache.hadoop.yarn.api.protocolrecords.GetContainerReportRequest request) getContainers(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId) protected List<org.apache.hadoop.yarn.api.records.ContainerReport>getContainersReport(org.apache.hadoop.yarn.api.protocolrecords.GetContainersRequest request) getNodeHttpAddress(javax.servlet.http.HttpServletRequest req, String appId, String appAttemptId, String containerId, String clusterId) Returns the node HTTP address.protected static org.apache.hadoop.security.UserGroupInformationgetUser(javax.servlet.http.HttpServletRequest req) protected voidinitForReadableEndpoints(javax.servlet.http.HttpServletResponse response) protected static org.apache.hadoop.yarn.api.records.ApplicationAttemptIdparseApplicationAttemptId(String appAttemptId) protected static org.apache.hadoop.yarn.api.records.ApplicationIdparseApplicationId(String appId) protected static org.apache.hadoop.yarn.api.records.ContainerIdparseContainerId(String containerId) parseQueries(Set<String> queries, boolean isState) protected voidvalidateIds(org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, org.apache.hadoop.yarn.api.records.ContainerId containerId)
-
Field Details
-
appBaseProt
protected org.apache.hadoop.yarn.api.ApplicationBaseProtocol appBaseProt
-
-
Constructor Details
-
WebServices
public WebServices(org.apache.hadoop.yarn.api.ApplicationBaseProtocol appBaseProt)
-
-
Method Details
-
getApps
public AppsInfo getApps(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String stateQuery, Set<String> statesQuery, String finalStatusQuery, String userQuery, String queueQuery, String count, String startedBegin, String startedEnd, String finishBegin, String finishEnd, String nameQuery, Set<String> applicationTypes) -
getApp
-
getApp
public org.apache.hadoop.yarn.server.webapp.BasicAppInfo getApp(javax.servlet.http.HttpServletRequest req, String appId, String clusterId) Description copied from interface:AppInfoProviderReturnsBasicAppInfoobject that wraps the collected information about the application.- Specified by:
getAppin interfaceAppInfoProvider- Parameters:
req-HttpServletRequestassociated with the requestappId- the id of the applicationclusterId- the id of the cluster- Returns:
BasicAppInfoobject
-
getApp
-
getAppAttempts
public AppAttemptsInfo getAppAttempts(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId) -
getAppAttempt
public AppAttemptInfo getAppAttempt(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId) -
getContainers
public ContainersInfo getContainers(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId) -
getNodeHttpAddress
public String getNodeHttpAddress(javax.servlet.http.HttpServletRequest req, String appId, String appAttemptId, String containerId, String clusterId) Description copied from interface:AppInfoProviderReturns the node HTTP address.- Specified by:
getNodeHttpAddressin interfaceAppInfoProvider- Parameters:
req-HttpServletRequestassociated with the requestappId- the id of the applicationappAttemptId- the id of the application attemptcontainerId- the container idclusterId- the id of the cluster- Returns:
- the node HTTP address
-
getContainer
public ContainerInfo getContainer(javax.servlet.http.HttpServletRequest req, String appId, String appAttemptId, String containerId) -
getContainer
public ContainerInfo getContainer(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String appId, String appAttemptId, String containerId) -
initForReadableEndpoints
protected void initForReadableEndpoints(javax.servlet.http.HttpServletResponse response) -
parseQueries
-
parseApplicationId
-
parseApplicationAttemptId
protected static org.apache.hadoop.yarn.api.records.ApplicationAttemptId parseApplicationAttemptId(String appAttemptId) -
parseContainerId
protected static org.apache.hadoop.yarn.api.records.ContainerId parseContainerId(String containerId) -
validateIds
protected void validateIds(org.apache.hadoop.yarn.api.records.ApplicationId appId, org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, org.apache.hadoop.yarn.api.records.ContainerId containerId) -
getUser
protected static org.apache.hadoop.security.UserGroupInformation getUser(javax.servlet.http.HttpServletRequest req) -
getApplicationReport
protected org.apache.hadoop.yarn.api.records.ApplicationReport getApplicationReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationReportRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getApplicationsReport
protected List<org.apache.hadoop.yarn.api.records.ApplicationReport> getApplicationsReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationsRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getApplicationAttemptReport
protected org.apache.hadoop.yarn.api.records.ApplicationAttemptReport getApplicationAttemptReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationAttemptReportRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getApplicationAttemptsReport
protected List<org.apache.hadoop.yarn.api.records.ApplicationAttemptReport> getApplicationAttemptsReport(org.apache.hadoop.yarn.api.protocolrecords.GetApplicationAttemptsRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getContainerReport
protected org.apache.hadoop.yarn.api.records.ContainerReport getContainerReport(org.apache.hadoop.yarn.api.protocolrecords.GetContainerReportRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-
getContainersReport
protected List<org.apache.hadoop.yarn.api.records.ContainerReport> getContainersReport(org.apache.hadoop.yarn.api.protocolrecords.GetContainersRequest request) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException - Throws:
org.apache.hadoop.yarn.exceptions.YarnExceptionIOException
-