public class NMWebServices extends Object
Constructor and Description |
---|
NMWebServices(Context nm,
ResourceView view,
org.apache.hadoop.yarn.webapp.WebApp webapp) |
Modifier and Type | Method and Description |
---|---|
NodeInfo |
get() |
javax.ws.rs.core.Response |
getContainerLogFile(String containerIdStr,
String filename,
String format,
String size)
Returns the contents of a container's log file in plain text.
|
javax.ws.rs.core.Response |
getContainerLogsInfo(javax.servlet.http.HttpServletRequest hsr,
javax.servlet.http.HttpServletResponse res,
String containerIdStr)
Returns log file's name as well as current file size for a container.
|
javax.ws.rs.core.Response |
getLogs(String containerIdStr,
String filename,
String format,
String size)
Returns the contents of a container's log file in plain text.
|
AppInfo |
getNodeApp(String appId) |
AppsInfo |
getNodeApps(String stateQuery,
String userQuery) |
ContainerInfo |
getNodeContainer(javax.servlet.http.HttpServletRequest hsr,
String id) |
ContainersInfo |
getNodeContainers(javax.servlet.http.HttpServletRequest hsr) |
NodeInfo |
getNodeInfo() |
@Inject public NMWebServices(Context nm, ResourceView view, org.apache.hadoop.yarn.webapp.WebApp webapp)
public NodeInfo get()
public NodeInfo getNodeInfo()
public ContainersInfo getNodeContainers(@Context javax.servlet.http.HttpServletRequest hsr)
public ContainerInfo getNodeContainer(@Context javax.servlet.http.HttpServletRequest hsr, String id)
public javax.ws.rs.core.Response getContainerLogsInfo(@Context javax.servlet.http.HttpServletRequest hsr, @Context javax.servlet.http.HttpServletResponse res, String containerIdStr)
hsr
- HttpServletRequestres
- HttpServletResponsecontainerIdStr
- The container ID@InterfaceAudience.Public @InterfaceStability.Unstable public javax.ws.rs.core.Response getContainerLogFile(String containerIdStr, String filename, String format, String size)
containerIdStr
- The container IDfilename
- The name of the log fileformat
- The content typesize
- the size of the log file@InterfaceAudience.Public @InterfaceStability.Unstable public javax.ws.rs.core.Response getLogs(String containerIdStr, String filename, String format, String size)
containerIdStr
- The container IDfilename
- The name of the log fileformat
- The content typesize
- the size of the log fileCopyright © 2018 Apache Software Foundation. All Rights Reserved.