@InterfaceAudience.Private
 @InterfaceStability.Unstable
public class LevelDBCacheTimelineStore
extends org.apache.hadoop.service.AbstractService
KeyValueBasedTimelineStore. This
 implementation stores the entity hash map into a LevelDB instance.
 There are two partitions of the key space. One partition is to store a
 entity id to start time mapping:
 i!ENTITY_ID!ENTITY_TYPE to ENTITY_START_TIME
 The other partition is to store the actual data:
 e!START_TIME!ENTITY_ID!ENTITY_TYPE to ENTITY_BYTES
 This storage does not have any garbage collection mechanism, and is designed
 mainly for caching usages.org.apache.hadoop.yarn.server.timeline.TimelineStore.SystemFilter| Modifier and Type | Field and Description | 
|---|---|
| protected org.apache.hadoop.yarn.server.timeline.TimelineStoreMapAdapter<String,org.apache.hadoop.yarn.api.records.timeline.TimelineDomain> | domainById | 
| protected org.apache.hadoop.yarn.server.timeline.TimelineStoreMapAdapter<String,Set<org.apache.hadoop.yarn.api.records.timeline.TimelineDomain>> | domainsByOwner | 
| protected org.apache.hadoop.yarn.server.timeline.TimelineStoreMapAdapter<org.apache.hadoop.yarn.server.timeline.EntityIdentifier,org.apache.hadoop.yarn.api.records.timeline.TimelineEntity> | entities | 
| protected org.apache.hadoop.yarn.server.timeline.TimelineStoreMapAdapter<org.apache.hadoop.yarn.server.timeline.EntityIdentifier,Long> | entityInsertTimes | 
| Constructor and Description | 
|---|
| LevelDBCacheTimelineStore() | 
| LevelDBCacheTimelineStore(String id) | 
| LevelDBCacheTimelineStore(String id,
                         String name) | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hadoop.yarn.api.records.timeline.TimelineDomain | getDomain(String arg0) | 
| org.apache.hadoop.yarn.api.records.timeline.TimelineDomains | getDomains(String arg0) | 
| org.apache.hadoop.yarn.api.records.timeline.TimelineEntities | getEntities(String arg0,
           Long arg1,
           Long arg2,
           Long arg3,
           String arg4,
           Long arg5,
           org.apache.hadoop.yarn.server.timeline.NameValuePair arg6,
           Collection<org.apache.hadoop.yarn.server.timeline.NameValuePair> arg7,
           EnumSet<org.apache.hadoop.yarn.server.timeline.TimelineReader.Field> arg8,
           org.apache.hadoop.yarn.server.timeline.TimelineDataManager.CheckAcl arg9) | 
| org.apache.hadoop.yarn.api.records.timeline.TimelineEntity | getEntity(String arg0,
         String arg1,
         EnumSet<org.apache.hadoop.yarn.server.timeline.TimelineReader.Field> arg2) | 
| org.apache.hadoop.yarn.api.records.timeline.TimelineEvents | getEntityTimelines(String arg0,
                  SortedSet<String> arg1,
                  Long arg2,
                  Long arg3,
                  Long arg4,
                  Set<String> arg5) | 
| boolean | getServiceStopped() | 
| void | put(org.apache.hadoop.yarn.api.records.timeline.TimelineDomain arg0) | 
| org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse | put(org.apache.hadoop.yarn.api.records.timeline.TimelineEntities arg0) | 
| protected void | serviceInit(org.apache.hadoop.conf.Configuration conf) | 
| protected void | serviceStop() | 
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopprotected org.apache.hadoop.yarn.server.timeline.TimelineStoreMapAdapter<org.apache.hadoop.yarn.server.timeline.EntityIdentifier,org.apache.hadoop.yarn.api.records.timeline.TimelineEntity> entities
protected org.apache.hadoop.yarn.server.timeline.TimelineStoreMapAdapter<org.apache.hadoop.yarn.server.timeline.EntityIdentifier,Long> entityInsertTimes
protected org.apache.hadoop.yarn.server.timeline.TimelineStoreMapAdapter<String,org.apache.hadoop.yarn.api.records.timeline.TimelineDomain> domainById
public LevelDBCacheTimelineStore(String id)
public LevelDBCacheTimelineStore()
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
                    throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceExceptionpublic boolean getServiceStopped()
public org.apache.hadoop.yarn.api.records.timeline.TimelineEntities getEntities(String arg0, Long arg1, Long arg2, Long arg3, String arg4, Long arg5, org.apache.hadoop.yarn.server.timeline.NameValuePair arg6, Collection<org.apache.hadoop.yarn.server.timeline.NameValuePair> arg7, EnumSet<org.apache.hadoop.yarn.server.timeline.TimelineReader.Field> arg8, org.apache.hadoop.yarn.server.timeline.TimelineDataManager.CheckAcl arg9) throws IOException
getEntities in interface org.apache.hadoop.yarn.server.timeline.TimelineReaderIOExceptionpublic org.apache.hadoop.yarn.api.records.timeline.TimelineEntity getEntity(String arg0, String arg1, EnumSet<org.apache.hadoop.yarn.server.timeline.TimelineReader.Field> arg2)
getEntity in interface org.apache.hadoop.yarn.server.timeline.TimelineReaderpublic org.apache.hadoop.yarn.api.records.timeline.TimelineEvents getEntityTimelines(String arg0, SortedSet<String> arg1, Long arg2, Long arg3, Long arg4, Set<String> arg5)
getEntityTimelines in interface org.apache.hadoop.yarn.server.timeline.TimelineReaderpublic org.apache.hadoop.yarn.api.records.timeline.TimelineDomain getDomain(String arg0) throws IOException
getDomain in interface org.apache.hadoop.yarn.server.timeline.TimelineReaderIOExceptionpublic org.apache.hadoop.yarn.api.records.timeline.TimelineDomains getDomains(String arg0) 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 arg0)
put in interface org.apache.hadoop.yarn.server.timeline.TimelineWriterpublic void put(org.apache.hadoop.yarn.api.records.timeline.TimelineDomain arg0)
         throws IOException
put in interface org.apache.hadoop.yarn.server.timeline.TimelineWriterIOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.