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 |
getLogs(String containerIdStr,
String filename)
Returns the contents of a container's log file in plain text.
|
AppInfo |
getNodeApp(String appId) |
AppsInfo |
getNodeApps(String stateQuery,
String userQuery) |
ContainerInfo |
getNodeContainer(String id) |
ContainersInfo |
getNodeContainers() |
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()
public ContainerInfo getNodeContainer(String id)
@InterfaceAudience.Public @InterfaceStability.Unstable public javax.ws.rs.core.Response getLogs(String containerIdStr, String filename)
containerIdStr
- The container IDfilename
- The name of the log fileCopyright © 2014 Apache Software Foundation. All Rights Reserved.