org.apache.hadoop.yarn.server.timeline.webapp
Class TimelineWebServices

java.lang.Object
  extended by org.apache.hadoop.yarn.server.timeline.webapp.TimelineWebServices

public class TimelineWebServices
extends Object


Nested Class Summary
static class TimelineWebServices.AboutInfo
           
 
Constructor Summary
TimelineWebServices(TimelineDataManager timelineDataManager)
           
 
Method Summary
 TimelineWebServices.AboutInfo about(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Return the description of the timeline web services.
 org.apache.hadoop.yarn.api.records.timeline.TimelineDomain getDomain(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String domainId)
          Return a single domain of the given domain Id.
 org.apache.hadoop.yarn.api.records.timeline.TimelineDomains getDomains(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String owner)
          Return a list of domains of the given owner.
 org.apache.hadoop.yarn.api.records.timeline.TimelineEntities getEntities(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String entityType, String primaryFilter, String secondaryFilter, String windowStart, String windowEnd, String fromId, String fromTs, String limit, String fields)
          Return a list of entities that match the given parameters.
 org.apache.hadoop.yarn.api.records.timeline.TimelineEntity getEntity(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String entityType, String entityId, String fields)
          Return a single entity of the given entity type and Id.
 org.apache.hadoop.yarn.api.records.timeline.TimelineEvents getEvents(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, String entityType, String entityId, String eventType, String windowStart, String windowEnd, String limit)
          Return the events that match the given parameters.
 org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse postEntities(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, org.apache.hadoop.yarn.api.records.timeline.TimelineEntities entities)
          Store the given entities into the timeline store, and return the errors that happen during storing.
 org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse putDomain(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain)
          Store the given domain into the timeline store, and return the errors that happen during storing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimelineWebServices

@Inject
public TimelineWebServices(TimelineDataManager timelineDataManager)
Method Detail

about

public TimelineWebServices.AboutInfo about(@Context
                                           javax.servlet.http.HttpServletRequest req,
                                           @Context
                                           javax.servlet.http.HttpServletResponse res)
Return the description of the timeline web services.


getEntities

public org.apache.hadoop.yarn.api.records.timeline.TimelineEntities getEntities(@Context
                                                                                javax.servlet.http.HttpServletRequest req,
                                                                                @Context
                                                                                javax.servlet.http.HttpServletResponse res,
                                                                                String entityType,
                                                                                String primaryFilter,
                                                                                String secondaryFilter,
                                                                                String windowStart,
                                                                                String windowEnd,
                                                                                String fromId,
                                                                                String fromTs,
                                                                                String limit,
                                                                                String fields)
Return a list of entities that match the given parameters.


getEntity

public org.apache.hadoop.yarn.api.records.timeline.TimelineEntity getEntity(@Context
                                                                            javax.servlet.http.HttpServletRequest req,
                                                                            @Context
                                                                            javax.servlet.http.HttpServletResponse res,
                                                                            String entityType,
                                                                            String entityId,
                                                                            String fields)
Return a single entity of the given entity type and Id.


getEvents

public org.apache.hadoop.yarn.api.records.timeline.TimelineEvents getEvents(@Context
                                                                            javax.servlet.http.HttpServletRequest req,
                                                                            @Context
                                                                            javax.servlet.http.HttpServletResponse res,
                                                                            String entityType,
                                                                            String entityId,
                                                                            String eventType,
                                                                            String windowStart,
                                                                            String windowEnd,
                                                                            String limit)
Return the events that match the given parameters.


postEntities

public org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse postEntities(@Context
                                                                                    javax.servlet.http.HttpServletRequest req,
                                                                                    @Context
                                                                                    javax.servlet.http.HttpServletResponse res,
                                                                                    org.apache.hadoop.yarn.api.records.timeline.TimelineEntities entities)
Store the given entities into the timeline store, and return the errors that happen during storing.


putDomain

public org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse putDomain(@Context
                                                                                 javax.servlet.http.HttpServletRequest req,
                                                                                 @Context
                                                                                 javax.servlet.http.HttpServletResponse res,
                                                                                 org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain)
Store the given domain into the timeline store, and return the errors that happen during storing.


getDomain

public org.apache.hadoop.yarn.api.records.timeline.TimelineDomain getDomain(@Context
                                                                            javax.servlet.http.HttpServletRequest req,
                                                                            @Context
                                                                            javax.servlet.http.HttpServletResponse res,
                                                                            String domainId)
Return a single domain of the given domain Id.


getDomains

public org.apache.hadoop.yarn.api.records.timeline.TimelineDomains getDomains(@Context
                                                                              javax.servlet.http.HttpServletRequest req,
                                                                              @Context
                                                                              javax.servlet.http.HttpServletResponse res,
                                                                              String owner)
Return a list of domains of the given owner.



Copyright © 2014 Apache Software Foundation. All Rights Reserved.