public class TimelineDataManager
extends org.apache.hadoop.service.AbstractService
| Modifier and Type | Class and Description | 
|---|---|
| static interface  | TimelineDataManager.CheckAcl | 
| Modifier and Type | Field and Description | 
|---|---|
| static String | DEFAULT_DOMAIN_ID | 
| Constructor and Description | 
|---|
| TimelineDataManager(TimelineStore store,
                   TimelineACLsManager timelineACLsManager) | 
| Modifier and Type | Method and 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) | 
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic static final String DEFAULT_DOMAIN_ID
public TimelineDataManager(TimelineStore store, TimelineACLsManager timelineACLsManager)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
                    throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceExceptionpublic 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) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
TimelineReader.getEntities(java.lang.String, java.lang.Long, java.lang.Long, java.lang.Long, java.lang.String, java.lang.Long, org.apache.hadoop.yarn.server.timeline.NameValuePair, java.util.Collection<org.apache.hadoop.yarn.server.timeline.NameValuePair>, java.util.EnumSet<org.apache.hadoop.yarn.server.timeline.TimelineReader.Field>, org.apache.hadoop.yarn.server.timeline.TimelineDataManager.CheckAcl).org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionTimelineReader.getEntities(java.lang.String, java.lang.Long, java.lang.Long, java.lang.Long, java.lang.String, java.lang.Long, org.apache.hadoop.yarn.server.timeline.NameValuePair, java.util.Collection<org.apache.hadoop.yarn.server.timeline.NameValuePair>, java.util.EnumSet<org.apache.hadoop.yarn.server.timeline.TimelineReader.Field>, org.apache.hadoop.yarn.server.timeline.TimelineDataManager.CheckAcl)public org.apache.hadoop.yarn.api.records.timeline.TimelineEntity getEntity(String entityType, String entityId, EnumSet<TimelineReader.Field> fields, org.apache.hadoop.security.UserGroupInformation callerUGI) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
TimelineReader.getEntity(java.lang.String, java.lang.String, java.util.EnumSet<org.apache.hadoop.yarn.server.timeline.TimelineReader.Field>).org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionTimelineReader.getEntity(java.lang.String, java.lang.String, java.util.EnumSet<org.apache.hadoop.yarn.server.timeline.TimelineReader.Field>)public 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) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
TimelineReader.getEntityTimelines(java.lang.String, java.util.SortedSet<java.lang.String>, java.lang.Long, java.lang.Long, java.lang.Long, java.util.Set<java.lang.String>).org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionTimelineReader.getEntityTimelines(java.lang.String, java.util.SortedSet<java.lang.String>, java.lang.Long, java.lang.Long, java.lang.Long, java.util.Set<java.lang.String>)public org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse postEntities(org.apache.hadoop.yarn.api.records.timeline.TimelineEntities entities,
                                                                                    org.apache.hadoop.security.UserGroupInformation callerUGI)
                                                                             throws org.apache.hadoop.yarn.exceptions.YarnException,
                                                                                    IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic void putDomain(org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain,
                      org.apache.hadoop.security.UserGroupInformation callerUGI)
               throws org.apache.hadoop.yarn.exceptions.YarnException,
                      IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic org.apache.hadoop.yarn.api.records.timeline.TimelineDomain getDomain(String domainId, org.apache.hadoop.security.UserGroupInformation callerUGI) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionpublic org.apache.hadoop.yarn.api.records.timeline.TimelineDomains getDomains(String owner, org.apache.hadoop.security.UserGroupInformation callerUGI) throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnExceptionIOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.