java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Service, org.apache.hadoop.yarn.server.timeline.TimelineReader, org.apache.hadoop.yarn.server.timeline.TimelineStore, org.apache.hadoop.yarn.server.timeline.TimelineWriter@Private
@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.service.Service.STATE| Modifier and Type | Field | Description |
|---|---|---|
protected org.apache.hadoop.yarn.server.timeline.TimelineStoreMapAdapter<java.lang.String,org.apache.hadoop.yarn.api.records.timeline.TimelineDomain> |
domainById |
|
protected org.apache.hadoop.yarn.server.timeline.TimelineStoreMapAdapter<java.lang.String,java.util.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,java.lang.Long> |
entityInsertTimes |
| Constructor | Description |
|---|---|
LevelDBCacheTimelineStore() |
|
LevelDBCacheTimelineStore(java.lang.String id) |
|
LevelDBCacheTimelineStore(java.lang.String id,
java.lang.String name) |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.yarn.api.records.timeline.TimelineDomain |
getDomain(java.lang.String arg0) |
|
org.apache.hadoop.yarn.api.records.timeline.TimelineDomains |
getDomains(java.lang.String arg0) |
|
org.apache.hadoop.yarn.api.records.timeline.TimelineEntities |
getEntities(java.lang.String arg0,
java.lang.Long arg1,
java.lang.Long arg2,
java.lang.Long arg3,
java.lang.String arg4,
java.lang.Long arg5,
org.apache.hadoop.yarn.server.timeline.NameValuePair arg6,
java.util.Collection<org.apache.hadoop.yarn.server.timeline.NameValuePair> arg7,
java.util.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(java.lang.String arg0,
java.lang.String arg1,
java.util.EnumSet<org.apache.hadoop.yarn.server.timeline.TimelineReader.Field> arg2) |
|
org.apache.hadoop.yarn.api.records.timeline.TimelineEvents |
getEntityTimelines(java.lang.String arg0,
java.util.SortedSet<java.lang.String> arg1,
java.lang.Long arg2,
java.lang.Long arg3,
java.lang.Long arg4,
java.util.Set<java.lang.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,java.lang.Long> entityInsertTimes
protected org.apache.hadoop.yarn.server.timeline.TimelineStoreMapAdapter<java.lang.String,org.apache.hadoop.yarn.api.records.timeline.TimelineDomain> domainById
protected org.apache.hadoop.yarn.server.timeline.TimelineStoreMapAdapter<java.lang.String,java.util.Set<org.apache.hadoop.yarn.api.records.timeline.TimelineDomain>> domainsByOwner
public LevelDBCacheTimelineStore(java.lang.String id,
java.lang.String name)
public LevelDBCacheTimelineStore(java.lang.String id)
public LevelDBCacheTimelineStore()
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
serviceInit in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected void serviceStop()
throws java.lang.Exception
java.lang.Exceptionpublic boolean getServiceStopped()
public org.apache.hadoop.yarn.api.records.timeline.TimelineEntities getEntities(java.lang.String arg0,
java.lang.Long arg1,
java.lang.Long arg2,
java.lang.Long arg3,
java.lang.String arg4,
java.lang.Long arg5,
org.apache.hadoop.yarn.server.timeline.NameValuePair arg6,
java.util.Collection<org.apache.hadoop.yarn.server.timeline.NameValuePair> arg7,
java.util.EnumSet<org.apache.hadoop.yarn.server.timeline.TimelineReader.Field> arg8,
org.apache.hadoop.yarn.server.timeline.TimelineDataManager.CheckAcl arg9)
throws java.io.IOException
getEntities in interface org.apache.hadoop.yarn.server.timeline.TimelineReaderjava.io.IOExceptionpublic org.apache.hadoop.yarn.api.records.timeline.TimelineEntity getEntity(java.lang.String arg0,
java.lang.String arg1,
java.util.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(java.lang.String arg0,
java.util.SortedSet<java.lang.String> arg1,
java.lang.Long arg2,
java.lang.Long arg3,
java.lang.Long arg4,
java.util.Set<java.lang.String> arg5)
getEntityTimelines in interface org.apache.hadoop.yarn.server.timeline.TimelineReaderpublic org.apache.hadoop.yarn.api.records.timeline.TimelineDomain getDomain(java.lang.String arg0)
throws java.io.IOException
getDomain in interface org.apache.hadoop.yarn.server.timeline.TimelineReaderjava.io.IOExceptionpublic org.apache.hadoop.yarn.api.records.timeline.TimelineDomains getDomains(java.lang.String arg0)
throws java.io.IOException
getDomains in interface org.apache.hadoop.yarn.server.timeline.TimelineReaderjava.io.IOExceptionpublic 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 java.io.IOException
put in interface org.apache.hadoop.yarn.server.timeline.TimelineWriterjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.