Class DataNodeHeartbeatCache
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.DataNodeHeartbeatCache
Heartbeat cache for cluster DataNodes.
-
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
ConstructorsConstructorDescriptionDataNodeHeartbeatCache(int dataNodeId) Constructor for create DataNodeHeartbeatCache with default NodeStatistics. -
Method Summary
Modifier and TypeMethodDescriptiondoublevoidupdateCurrentStatistics(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
-
DataNodeHeartbeatCache
public DataNodeHeartbeatCache(int dataNodeId) Constructor for create DataNodeHeartbeatCache with default NodeStatistics.
-
-
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
-
getFreeDiskSpace
public double getFreeDiskSpace()
-