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, update
makeAndCheckElement, refresh, refresh, refresh, refreshElement, refreshElement
get, getAllWithLoader, getCache, getLockForKey, getTimeoutMillis, getWithLoader, liveness, load, loadAll, put, put, putIfAbsent, putIfAbsent, putQuiet, putWithWriter, registerCacheLoader, setTimeoutMillis, unregisterCacheLoader
acquireReadLockOnKey, 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, waitUntilClusterCoherent
public TimelineMetricCache(net.sf.ehcache.Ehcache cache, net.sf.ehcache.constructs.blocking.UpdatingCacheEntryFactory factory) throws net.sf.ehcache.CacheException
cache
- @Cachefactory
- @CacheEntryFactorynet.sf.ehcache.CacheException
public org.apache.hadoop.metrics2.sink.timeline.TimelineMetrics getAppTimelineMetricsFromCache(TimelineAppMetricCacheKey key) throws IllegalArgumentException, IOException
key
- @TimelineAppMetricCacheKeyIllegalArgumentException
IOException
public net.sf.ehcache.Element get(Object key) throws net.sf.ehcache.constructs.blocking.LockTimeoutException
get
in interface net.sf.ehcache.Ehcache
get
in class net.sf.ehcache.constructs.blocking.UpdatingSelfPopulatingCache
net.sf.ehcache.constructs.blocking.LockTimeoutException
Copyright © 2022 Apache Software Foundation. All rights reserved.