Class AINodeHeartbeatCache
java.lang.Object
org.apache.iotdb.confignode.manager.load.cache.AbstractLoadCache
org.apache.iotdb.confignode.manager.load.cache.node.BaseNodeCache
org.apache.iotdb.confignode.manager.load.cache.node.AINodeHeartbeatCache
-
Field Summary
Fields inherited from class org.apache.iotdb.confignode.manager.load.cache.node.BaseNodeCache
nodeIdFields inherited from class org.apache.iotdb.confignode.manager.load.cache.AbstractLoadCache
currentStatistics, failureDetector, slidingWindow -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateCurrentStatistics(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.node.BaseNodeCache
getLoadScore, getNodeId, getNodeStatus, getNodeStatusWithReasonMethods inherited from class org.apache.iotdb.confignode.manager.load.cache.AbstractLoadCache
cacheHeartbeatSample, getCurrentStatistics, getLastSample
-
Constructor Details
-
AINodeHeartbeatCache
public AINodeHeartbeatCache(int aiNodeId)
-
-
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
-