Interface AppInfoProvider

All Known Implementing Classes:
LogWebService, WebServices

@LimitedPrivate("YARN") @Unstable public interface AppInfoProvider
Classes implementing this interface are used in the LogServlet for providing various application related information.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hadoop.yarn.server.webapp.BasicAppInfo
    getApp(javax.servlet.http.HttpServletRequest req, String appId, String clusterId)
    Returns BasicAppInfo object that wraps the collected information about the application.
    getNodeHttpAddress(javax.servlet.http.HttpServletRequest req, String appId, String appAttemptId, String containerId, String clusterId)
    Returns the node HTTP address.
  • Method Details

    • getNodeHttpAddress

      String getNodeHttpAddress(javax.servlet.http.HttpServletRequest req, String appId, String appAttemptId, String containerId, String clusterId)
      Returns the node HTTP address.
      Parameters:
      req - HttpServletRequest associated with the request
      appId - the id of the application
      appAttemptId - the id of the application attempt
      containerId - the container id
      clusterId - the id of the cluster
      Returns:
      the node HTTP address
    • getApp

      org.apache.hadoop.yarn.server.webapp.BasicAppInfo getApp(javax.servlet.http.HttpServletRequest req, String appId, String clusterId)
      Returns BasicAppInfo object that wraps the collected information about the application.
      Parameters:
      req - HttpServletRequest associated with the request
      appId - the id of the application
      clusterId - the id of the cluster
      Returns:
      BasicAppInfo object