Class RegionCache
java.lang.Object
org.apache.iotdb.confignode.manager.load.cache.AbstractLoadCache
org.apache.iotdb.confignode.manager.load.cache.region.RegionCache
RegionCache caches the RegionHeartbeatSamples of a Region. Update and cache the current
statistics of the Region based on the latest RegionHeartbeatSample.
-
Field Summary
Fields inherited from class org.apache.iotdb.confignode.manager.load.cache.AbstractLoadCache
currentStatistics, failureDetector, slidingWindow -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheHeartbeatSample(RegionHeartbeatSample newHeartbeatSample, boolean overwrite) voidupdateCurrentStatistics(boolean forceUpdate) Update currentStatistics based on the latest heartbeat sample that cached in the slidingWindow.Methods inherited from class org.apache.iotdb.confignode.manager.load.cache.AbstractLoadCache
cacheHeartbeatSample, getLastSample
-
Constructor Details
-
RegionCache
public RegionCache()
-
-
Method Details
-
updateCurrentStatistics
public void updateCurrentStatistics(boolean forceUpdate) Description copied from class:AbstractLoadCacheUpdate currentStatistics based on the latest heartbeat sample that cached in the slidingWindow.- Specified by:
updateCurrentStatisticsin classAbstractLoadCache
-
getCurrentStatistics
- Overrides:
getCurrentStatisticsin classAbstractLoadCache
-
cacheHeartbeatSample
-