org.apache.hadoop.yarn.server.webapp.dao.ContainersInfo Java Examples

The following examples show how to use org.apache.hadoop.yarn.server.webapp.dao.ContainersInfo. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AHSWebServices.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@GET
@Path("/apps/{appid}/appattempts/{appattemptid}/containers")
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@Override
public ContainersInfo getContainers(@Context HttpServletRequest req,
    @Context HttpServletResponse res, @PathParam("appid") String appId,
    @PathParam("appattemptid") String appAttemptId) {
  init(res);
  return super.getContainers(req, res, appId, appAttemptId);
}
 
Example #2
Source File: AHSWebServices.java    From big-c with Apache License 2.0 5 votes vote down vote up
@GET
@Path("/apps/{appid}/appattempts/{appattemptid}/containers")
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@Override
public ContainersInfo getContainers(@Context HttpServletRequest req,
    @Context HttpServletResponse res, @PathParam("appid") String appId,
    @PathParam("appattemptid") String appAttemptId) {
  init(res);
  return super.getContainers(req, res, appId, appAttemptId);
}