Class TimelineDataManager

java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.timeline.TimelineDataManager
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hadoop.service.Service

public class TimelineDataManager extends org.apache.hadoop.service.AbstractService
The class wrap over the timeline store and the ACLs manager. It does some non trivial manipulation of the timeline data before putting or after getting it from the timeline store, and checks the user's access to it.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     

    Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service

    org.apache.hadoop.service.Service.STATE
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hadoop.yarn.api.records.timeline.TimelineDomain
    getDomain(String domainId, org.apache.hadoop.security.UserGroupInformation callerUGI)
    Get a single domain of the particular ID.
    org.apache.hadoop.yarn.api.records.timeline.TimelineDomains
    getDomains(String owner, org.apache.hadoop.security.UserGroupInformation callerUGI)
    Get all the domains that belong to the given owner.
    org.apache.hadoop.yarn.api.records.timeline.TimelineEntities
    getEntities(String entityType, NameValuePair primaryFilter, Collection<NameValuePair> secondaryFilter, Long windowStart, Long windowEnd, String fromId, Long fromTs, Long limit, EnumSet<TimelineReader.Field> fields, org.apache.hadoop.security.UserGroupInformation callerUGI)
    Get the timeline entities that the given user have access to.
    org.apache.hadoop.yarn.api.records.timeline.TimelineEntity
    getEntity(String entityType, String entityId, EnumSet<TimelineReader.Field> fields, org.apache.hadoop.security.UserGroupInformation callerUGI)
    Get the single timeline entity that the given user has access to.
    org.apache.hadoop.yarn.api.records.timeline.TimelineEvents
    getEvents(String entityType, SortedSet<String> entityIds, SortedSet<String> eventTypes, Long windowStart, Long windowEnd, Long limit, org.apache.hadoop.security.UserGroupInformation callerUGI)
    Get the events whose entities the given user has access to.
    org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse
    postEntities(org.apache.hadoop.yarn.api.records.timeline.TimelineEntities entities, org.apache.hadoop.security.UserGroupInformation callerUGI)
    Store the timeline entities into the store and set the owner of them to the given user.
    void
    putDomain(org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain, org.apache.hadoop.security.UserGroupInformation callerUGI)
    Add or update an domain.
    protected void
    serviceInit(org.apache.hadoop.conf.Configuration conf)
     

    Methods inherited from class org.apache.hadoop.service.AbstractService

    close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait