public class EntityGroupFSTimelineStore
extends org.apache.hadoop.service.CompositeService
implements org.apache.hadoop.yarn.server.timeline.TimelineStore
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityGroupFSTimelineStore.AppState
Application states,
|
org.apache.hadoop.service.CompositeService.CompositeServiceShutdownHookorg.apache.hadoop.yarn.server.timeline.TimelineStore.SystemFilter| Constructor and Description |
|---|
EntityGroupFSTimelineStore() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.hadoop.yarn.client.api.YarnClient |
createAndInitYarnClient(org.apache.hadoop.conf.Configuration conf)
Create and initialize the YARN Client.
|
protected EntityGroupFSTimelineStore.AppState |
getAppState(org.apache.hadoop.yarn.api.records.ApplicationId appId)
Get the application state.
|
org.apache.hadoop.yarn.api.records.timeline.TimelineDomain |
getDomain(String domainId) |
org.apache.hadoop.yarn.api.records.timeline.TimelineDomains |
getDomains(String owner) |
org.apache.hadoop.yarn.api.records.timeline.TimelineEntities |
getEntities(String entityType,
Long limit,
Long windowStart,
Long windowEnd,
String fromId,
Long fromTs,
org.apache.hadoop.yarn.server.timeline.NameValuePair primaryFilter,
Collection<org.apache.hadoop.yarn.server.timeline.NameValuePair> secondaryFilters,
EnumSet<org.apache.hadoop.yarn.server.timeline.TimelineReader.Field> fieldsToRetrieve,
org.apache.hadoop.yarn.server.timeline.TimelineDataManager.CheckAcl checkAcl) |
org.apache.hadoop.yarn.api.records.timeline.TimelineEntity |
getEntity(String entityId,
String entityType,
EnumSet<org.apache.hadoop.yarn.server.timeline.TimelineReader.Field> fieldsToRetrieve) |
org.apache.hadoop.yarn.api.records.timeline.TimelineEvents |
getEntityTimelines(String entityType,
SortedSet<String> entityIds,
Long limit,
Long windowStart,
Long windowEnd,
Set<String> eventTypes) |
protected List<org.apache.hadoop.yarn.server.timeline.TimelineStore> |
getTimelineStoresForRead(String entityId,
String entityType,
List<EntityCacheItem> cacheItems) |
void |
put(org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain) |
org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse |
put(org.apache.hadoop.yarn.api.records.timeline.TimelineEntities data) |
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
protected void |
serviceStart() |
protected void |
serviceStop() |
addIfService, addService, getServices, removeServiceclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopprotected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.CompositeServiceExceptionprotected void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.CompositeServiceExceptionprotected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.CompositeServiceException@VisibleForTesting protected org.apache.hadoop.yarn.client.api.YarnClient createAndInitYarnClient(org.apache.hadoop.conf.Configuration conf)
getAppState(ApplicationId) MUST
also be overriddenconf - configuration@VisibleForTesting protected EntityGroupFSTimelineStore.AppState getAppState(org.apache.hadoop.yarn.api.records.ApplicationId appId) throws IOException
appId - application IDEntityGroupFSTimelineStore.AppState.UNKNOWN if it could not
be determinedIOException - on IO problemsprotected List<org.apache.hadoop.yarn.server.timeline.TimelineStore> getTimelineStoresForRead(String entityId, String entityType, List<EntityCacheItem> cacheItems) throws IOException
IOExceptionpublic org.apache.hadoop.yarn.api.records.timeline.TimelineEntities getEntities(String entityType, Long limit, Long windowStart, Long windowEnd, String fromId, Long fromTs, org.apache.hadoop.yarn.server.timeline.NameValuePair primaryFilter, Collection<org.apache.hadoop.yarn.server.timeline.NameValuePair> secondaryFilters, EnumSet<org.apache.hadoop.yarn.server.timeline.TimelineReader.Field> fieldsToRetrieve, org.apache.hadoop.yarn.server.timeline.TimelineDataManager.CheckAcl checkAcl) throws IOException
getEntities in interface org.apache.hadoop.yarn.server.timeline.TimelineReaderIOExceptionpublic org.apache.hadoop.yarn.api.records.timeline.TimelineEntity getEntity(String entityId, String entityType, EnumSet<org.apache.hadoop.yarn.server.timeline.TimelineReader.Field> fieldsToRetrieve) throws IOException
getEntity in interface org.apache.hadoop.yarn.server.timeline.TimelineReaderIOExceptionpublic org.apache.hadoop.yarn.api.records.timeline.TimelineEvents getEntityTimelines(String entityType, SortedSet<String> entityIds, Long limit, Long windowStart, Long windowEnd, Set<String> eventTypes) throws IOException
getEntityTimelines in interface org.apache.hadoop.yarn.server.timeline.TimelineReaderIOExceptionpublic org.apache.hadoop.yarn.api.records.timeline.TimelineDomain getDomain(String domainId) throws IOException
getDomain in interface org.apache.hadoop.yarn.server.timeline.TimelineReaderIOExceptionpublic org.apache.hadoop.yarn.api.records.timeline.TimelineDomains getDomains(String owner) throws IOException
getDomains in interface org.apache.hadoop.yarn.server.timeline.TimelineReaderIOExceptionpublic org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse put(org.apache.hadoop.yarn.api.records.timeline.TimelineEntities data)
throws IOException
put in interface org.apache.hadoop.yarn.server.timeline.TimelineWriterIOExceptionpublic void put(org.apache.hadoop.yarn.api.records.timeline.TimelineDomain domain)
throws IOException
put in interface org.apache.hadoop.yarn.server.timeline.TimelineWriterIOExceptionCopyright © 2008–2024 Apache Software Foundation. All rights reserved.