public class LogWebService extends Object implements AppInfoProvider
| Constructor and Description | 
|---|
| LogWebService() | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hadoop.yarn.server.webapp.BasicAppInfo | getApp(javax.servlet.http.HttpServletRequest req,
      String appId,
      String clusterId)Returns  BasicAppInfoobject that wraps the collected information
 about the application. | 
| javax.ws.rs.core.Response | getContainerLogFile(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res,
                   String containerIdStr,
                   String filename,
                   String format,
                   String size,
                   String nmId,
                   boolean redirectedFromNode,
                   String clusterId,
                   boolean manualRedirection)Returns the contents of a container's log file in plain text. | 
| javax.ws.rs.core.Response | getContainerLogsInfo(javax.servlet.http.HttpServletRequest req,
                    javax.servlet.http.HttpServletResponse res,
                    String containerIdStr,
                    String nmId,
                    boolean redirectedFromNode,
                    String clusterId,
                    boolean manualRedirection)Returns log file's name as well as current file size for a container. | 
| protected org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity | getEntity(String path,
         javax.ws.rs.core.MultivaluedMap<String,String> params) | 
| javax.ws.rs.core.Response | getLogs(javax.servlet.http.HttpServletRequest req,
       javax.servlet.http.HttpServletResponse res,
       String containerIdStr,
       String filename,
       String format,
       String size,
       String nmId,
       boolean redirectedFromNode,
       String clusterId,
       boolean manualRedirection) | 
| String | getNodeHttpAddress(javax.servlet.http.HttpServletRequest req,
                  String appId,
                  String appAttemptId,
                  String containerId,
                  String clusterId)Returns the node HTTP address. | 
public javax.ws.rs.core.Response getContainerLogsInfo(@Context
                                                      javax.servlet.http.HttpServletRequest req,
                                                      @Context
                                                      javax.servlet.http.HttpServletResponse res,
                                                      String containerIdStr,
                                                      String nmId,
                                                      boolean redirectedFromNode,
                                                      String clusterId,
                                                      boolean manualRedirection)
req - HttpServletRequestres - HttpServletResponsecontainerIdStr - The container IDnmId - The Node Manager NodeIdredirectedFromNode - Whether this is a redirected request from NMpublic String getNodeHttpAddress(javax.servlet.http.HttpServletRequest req, String appId, String appAttemptId, String containerId, String clusterId)
AppInfoProvidergetNodeHttpAddress in interface AppInfoProviderreq - HttpServletRequest associated with the requestappId - the id of the applicationappAttemptId - the id of the application attemptcontainerId - the container idclusterId - the id of the clusterpublic org.apache.hadoop.yarn.server.webapp.BasicAppInfo getApp(javax.servlet.http.HttpServletRequest req,
                                                                String appId,
                                                                String clusterId)
AppInfoProviderBasicAppInfo object that wraps the collected information
 about the application.getApp in interface AppInfoProviderreq - HttpServletRequest associated with the requestappId - the id of the applicationclusterId - the id of the clusterBasicAppInfo object@InterfaceAudience.Public
 @InterfaceStability.Unstable
public javax.ws.rs.core.Response getContainerLogFile(@Context
                                                                                                             javax.servlet.http.HttpServletRequest req,
                                                                                                             @Context
                                                                                                             javax.servlet.http.HttpServletResponse res,
                                                                                                             String containerIdStr,
                                                                                                             String filename,
                                                                                                             String format,
                                                                                                             String size,
                                                                                                             String nmId,
                                                                                                             boolean redirectedFromNode,
                                                                                                             String clusterId,
                                                                                                             boolean manualRedirection)
req - HttpServletRequestres - HttpServletResponsecontainerIdStr - The container IDfilename - The name of the log fileformat - The content typesize - the size of the log filenmId - The Node Manager NodeIdredirectedFromNode - Whether this is the redirect request from NM@InterfaceAudience.Public
 @InterfaceStability.Unstable
public javax.ws.rs.core.Response getLogs(@Context
                                                                                                 javax.servlet.http.HttpServletRequest req,
                                                                                                 @Context
                                                                                                 javax.servlet.http.HttpServletResponse res,
                                                                                                 String containerIdStr,
                                                                                                 String filename,
                                                                                                 String format,
                                                                                                 String size,
                                                                                                 String nmId,
                                                                                                 boolean redirectedFromNode,
                                                                                                 String clusterId,
                                                                                                 boolean manualRedirection)
protected org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getEntity(String path, javax.ws.rs.core.MultivaluedMap<String,String> params) throws IOException
IOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.