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

The following examples show how to use org.apache.hadoop.yarn.server.webapp.dao.AppInfo. 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}")
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@Override
public AppInfo getApp(@Context HttpServletRequest req,
    @Context HttpServletResponse res, @PathParam("appid") String appId) {
  init(res);
  return super.getApp(req, res, appId);
}
 
Example #2
Source File: AHSWebServices.java    From big-c with Apache License 2.0 5 votes vote down vote up
@GET
@Path("/apps/{appid}")
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
@Override
public AppInfo getApp(@Context HttpServletRequest req,
    @Context HttpServletResponse res, @PathParam("appid") String appId) {
  init(res);
  return super.getApp(req, res, appId);
}