public class NMWebServices extends Object
Constructor and Description |
---|
NMWebServices(Context nm,
ResourceView view,
org.apache.hadoop.yarn.webapp.WebApp webapp) |
NMWebServices(Context nm,
ResourceView view,
org.apache.hadoop.yarn.webapp.WebApp webapp,
javax.servlet.http.HttpServletResponse response) |
Modifier and Type | Method and Description |
---|---|
NodeInfo |
get() |
AuxiliaryServicesInfo |
getAuxiliaryServices(javax.servlet.http.HttpServletRequest hsr) |
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.
|
Object |
getNMResourceInfo(String resourceName) |
AppInfo |
getNodeApp(String appId) |
AppsInfo |
getNodeApps(javax.servlet.http.HttpServletRequest hsr,
String stateQuery,
String userQuery) |
ContainerInfo |
getNodeContainer(javax.servlet.http.HttpServletRequest hsr,
String id) |
ContainersInfo |
getNodeContainers(javax.servlet.http.HttpServletRequest hsr) |
NodeInfo |
getNodeInfo() |
protected Boolean |
hasAccess(String user,
org.apache.hadoop.yarn.api.records.ApplicationId appId,
javax.servlet.http.HttpServletRequest hsr) |
protected Boolean |
hasAdminAccess(javax.servlet.http.HttpServletRequest hsr) |
javax.ws.rs.core.Response |
putAuxiliaryServices(javax.servlet.http.HttpServletRequest req,
AuxServiceRecords services) |
javax.ws.rs.core.Response |
syncYarnSysFS(javax.servlet.http.HttpServletRequest req,
String user,
String appId,
String spec) |
@Inject public NMWebServices(Context nm, ResourceView view, org.apache.hadoop.yarn.webapp.WebApp webapp)
public NMWebServices(Context nm, ResourceView view, org.apache.hadoop.yarn.webapp.WebApp webapp, javax.servlet.http.HttpServletResponse response)
public NodeInfo get()
public NodeInfo getNodeInfo()
public AppsInfo getNodeApps(@Context javax.servlet.http.HttpServletRequest hsr, String stateQuery, String userQuery)
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 filepublic Object getNMResourceInfo(String resourceName) throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnException
public AuxiliaryServicesInfo getAuxiliaryServices(@Context javax.servlet.http.HttpServletRequest hsr)
public javax.ws.rs.core.Response putAuxiliaryServices(@Context javax.servlet.http.HttpServletRequest req, AuxServiceRecords services)
public javax.ws.rs.core.Response syncYarnSysFS(@Context javax.servlet.http.HttpServletRequest req, String user, String appId, String spec)
protected Boolean hasAccess(String user, org.apache.hadoop.yarn.api.records.ApplicationId appId, javax.servlet.http.HttpServletRequest hsr)
protected Boolean hasAdminAccess(javax.servlet.http.HttpServletRequest hsr)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.