public class TimelineMetricCache
extends net.sf.ehcache.constructs.blocking.UpdatingSelfPopulatingCache
| Constructor and Description |
|---|
TimelineMetricCache(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.constructs.blocking.UpdatingCacheEntryFactory factory)
Creates a SelfPopulatingCache.
|
| Modifier and Type | Method and Description |
|---|---|
net.sf.ehcache.Element |
get(Object key)
Set new time bounds on the cache key so that update can use the new
query window.
|
org.apache.hadoop.metrics2.sink.timeline.TimelineMetrics |
getAppTimelineMetricsFromCache(TimelineAppMetricCacheKey key)
Get metrics for an app grouped by the requested @TemporalInfo which is a
part of the @TimelineAppMetricCacheKey
|
refresh, updatemakeAndCheckElement, refresh, refresh, refresh, refreshElement, refreshElementget, getAllWithLoader, getCache, getLockForKey, getTimeoutMillis, getWithLoader, liveness, load, loadAll, put, put, putIfAbsent, putIfAbsent, putQuiet, putWithWriter, registerCacheLoader, setTimeoutMillis, unregisterCacheLoaderacquireReadLockOnKey, acquireWriteLockOnKey, addPropertyChangeListener, bootstrap, calculateInMemorySize, calculateOffHeapSize, calculateOnDiskSize, clone, createQuery, disableDynamicFeatures, dispose, evictExpiredElements, flush, getAll, getBootstrapCacheLoader, getCacheConfiguration, getCacheEventNotificationService, getCacheExceptionHandler, getCacheManager, getDiskStoreSize, getGuid, getInternalContext, getKeys, getKeysNoDuplicateCheck, getKeysWithExpiryCheck, getMemoryStoreSize, getName, getOffHeapStoreSize, getQuiet, getQuiet, getRegisteredCacheExtensions, getRegisteredCacheLoaders, getRegisteredCacheWriter, getSearchAttribute, getSearchAttributes, getSize, getStatistics, getStatus, getWriterManager, hasAbortedSizeOf, initialise, isClusterBulkLoadEnabled, isClusterCoherent, isDisabled, isElementInMemory, isElementInMemory, isElementOnDisk, isElementOnDisk, isExpired, isKeyInCache, isNodeBulkLoadEnabled, isNodeCoherent, isReadLockedByCurrentThread, isSearchable, isValueInCache, isWriteLockedByCurrentThread, putAll, recalculateSize, registerCacheExtension, registerCacheWriter, registerDynamicAttributesExtractor, releaseReadLockOnKey, releaseWriteLockOnKey, remove, remove, remove, remove, removeAll, removeAll, removeAll, removeAll, removeAndReturnElement, removeElement, removePropertyChangeListener, removeQuiet, removeQuiet, removeWithWriter, replace, replace, setBootstrapCacheLoader, setCacheExceptionHandler, setCacheManager, setDisabled, setName, setNodeBulkLoadEnabled, setNodeCoherent, setTransactionManagerLookup, toString, tryReadLockOnKey, tryWriteLockOnKey, unregisterCacheExtension, unregisterCacheWriter, waitUntilClusterBulkLoadComplete, waitUntilClusterCoherentpublic TimelineMetricCache(net.sf.ehcache.Ehcache cache,
net.sf.ehcache.constructs.blocking.UpdatingCacheEntryFactory factory)
throws net.sf.ehcache.CacheException
cache - @Cachefactory - @CacheEntryFactorynet.sf.ehcache.CacheExceptionpublic org.apache.hadoop.metrics2.sink.timeline.TimelineMetrics getAppTimelineMetricsFromCache(TimelineAppMetricCacheKey key) throws IllegalArgumentException, IOException
key - @TimelineAppMetricCacheKeyIllegalArgumentExceptionIOExceptionpublic net.sf.ehcache.Element get(Object key) throws net.sf.ehcache.constructs.blocking.LockTimeoutException
get in interface net.sf.ehcache.Ehcacheget in class net.sf.ehcache.constructs.blocking.UpdatingSelfPopulatingCachenet.sf.ehcache.constructs.blocking.LockTimeoutExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.