@InterfaceAudience.Private @InterfaceStability.Unstable @Path(value="/ws/v2/timeline") public class TimelineCollectorWebService extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TimelineCollectorWebService.AboutInfo
Gives information about timeline collector.
|
| Constructor and Description |
|---|
TimelineCollectorWebService() |
| Modifier and Type | Method and Description |
|---|---|
TimelineCollectorWebService.AboutInfo |
about(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Return the description of the timeline web services.
|
javax.ws.rs.core.Response |
putDomain(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String appId,
org.apache.hadoop.yarn.api.records.timelineservice.TimelineDomain domain) |
javax.ws.rs.core.Response |
putEntities(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
String async,
String isSubAppEntities,
String appId,
org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntities entities)
Accepts writes to the collector, and returns a response.
|
@GET @Produces(value="application/json; charset=utf-8") public TimelineCollectorWebService.AboutInfo about(@Context javax.servlet.http.HttpServletRequest req, @Context javax.servlet.http.HttpServletResponse res)
req - Servlet request.res - Servlet response.@PUT
@Path(value="/entities")
@Consumes(value="application/json")
public javax.ws.rs.core.Response putEntities(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
@QueryParam(value="async")
String async,
@QueryParam(value="subappwrite")
String isSubAppEntities,
@QueryParam(value="appid")
String appId,
org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntities entities)
req - Servlet request.res - Servlet response.async - flag indicating whether its an async put or not. "true"
indicates, its an async call. If null, its considered false.appId - Application Id to which the entities to be put belong to. If
appId is not there or it cannot be parsed, HTTP 400 will be sent back.entities - timeline entities to be put.@PUT
@Path(value="/domain")
@Consumes(value="application/json")
public javax.ws.rs.core.Response putDomain(@Context
javax.servlet.http.HttpServletRequest req,
@Context
javax.servlet.http.HttpServletResponse res,
@QueryParam(value="appid")
String appId,
org.apache.hadoop.yarn.api.records.timelineservice.TimelineDomain domain)
req - Servlet request.res - Servlet response.domain - timeline domain to be put.appId - Application Id to which the domain to be put belong to. If
appId is not there or it cannot be parsed, HTTP 400 will be sent back.Copyright © 2008–2022 Apache Software Foundation. All rights reserved.