public class LogWebService extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
LogWebService.AppInfo |
protected static class |
LogWebService.ContainerInfo |
Constructor and Description |
---|
LogWebService() |
Modifier and Type | Method and Description |
---|---|
protected LogWebService.AppInfo |
getApp(javax.servlet.http.HttpServletRequest req,
String appId,
String clusterId) |
protected LogWebService.ContainerInfo |
getContainer(javax.servlet.http.HttpServletRequest req,
String appId,
String containerId,
String clusterId) |
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)
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)
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) |
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)
req
- HttpServletRequestres
- HttpServletResponsecontainerIdStr
- The container IDnmId
- The Node Manager NodeIdredirectedFromNode
- Whether this is a redirected request from NMprotected LogWebService.ContainerInfo getContainer(javax.servlet.http.HttpServletRequest req, String appId, String containerId, String clusterId)
protected LogWebService.AppInfo getApp(javax.servlet.http.HttpServletRequest req, String appId, String clusterId)
@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)
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)
protected org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntity getEntity(String path, javax.ws.rs.core.MultivaluedMap<String,String> params) throws IOException
IOException
Copyright © 2008–2019 Apache Software Foundation. All rights reserved.