org.apache.hadoop.yarn.server.nodemanager.webapp
Class NMWebServices

java.lang.Object
  extended by org.apache.hadoop.yarn.server.nodemanager.webapp.NMWebServices

public class NMWebServices
extends Object


Constructor Summary
NMWebServices(Context nm, ResourceView view, org.apache.hadoop.yarn.webapp.WebApp webapp)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NMWebServices

@Inject
public NMWebServices(Context nm,
                            ResourceView view,
                            org.apache.hadoop.yarn.webapp.WebApp webapp)
Method Detail

get

public NodeInfo get()

getNodeInfo

public NodeInfo getNodeInfo()

getNodeApps

public AppsInfo getNodeApps(String stateQuery,
                            String userQuery)

getNodeApp

public AppInfo getNodeApp(String appId)

getNodeContainers

public ContainersInfo getNodeContainers()

getNodeContainer

public ContainerInfo getNodeContainer(String id)

getLogs

@InterfaceAudience.Public
@InterfaceStability.Unstable
public javax.ws.rs.core.Response getLogs(String containerIdStr,
                                                                                              String filename)
Returns the contents of a container's log file in plain text. Only works for containers that are still in the NodeManager's memory, so logs are no longer available after the corresponding application is no longer running.

Parameters:
containerIdStr - The container ID
filename - The name of the log file
Returns:
The contents of the container's log file


Copyright © 2014 Apache Software Foundation. All Rights Reserved.