类 ConfigNodeHeartbeatCache
- java.lang.Object
-
- org.apache.iotdb.confignode.manager.node.heartbeat.BaseNodeCache
-
- org.apache.iotdb.confignode.manager.node.heartbeat.ConfigNodeHeartbeatCache
-
public class ConfigNodeHeartbeatCache extends BaseNodeCache
-
-
字段概要
字段 修饰符和类型 字段 说明 static intCURRENT_NODE_IDOnly get CURRENT_NODE_ID here due to initialization orderstatic NodeStatisticsCURRENT_NODE_STATISTICS-
从类继承的字段 org.apache.iotdb.confignode.manager.node.heartbeat.BaseNodeCache
currentStatistics, HEARTBEAT_TIMEOUT_TIME, MAXIMUM_WINDOW_SIZE, previousStatistics, slidingWindow
-
-
构造器概要
构造器 构造器 说明 ConfigNodeHeartbeatCache(int configNodeId)Constructor for create ConfigNodeHeartbeatCache with default NodeStatisticsConfigNodeHeartbeatCache(int configNodeId, NodeStatistics statistics)Constructor only for ConfigNode-leader
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidupdateCurrentStatistics()Update currentStatistics based on recent NodeHeartbeatSamples that cached in the slidingWindow-
从类继承的方法 org.apache.iotdb.confignode.manager.node.heartbeat.BaseNodeCache
cacheHeartbeatSample, forceUpdate, getLoadScore, getNodeStatus, getNodeStatusWithReason, getStatistics, periodicUpdate
-
-
-
-
字段详细资料
-
CURRENT_NODE_ID
public static final int CURRENT_NODE_ID
Only get CURRENT_NODE_ID here due to initialization order
-
CURRENT_NODE_STATISTICS
public static final NodeStatistics CURRENT_NODE_STATISTICS
-
-
构造器详细资料
-
ConfigNodeHeartbeatCache
public ConfigNodeHeartbeatCache(int configNodeId)
Constructor for create ConfigNodeHeartbeatCache with default NodeStatistics
-
ConfigNodeHeartbeatCache
public ConfigNodeHeartbeatCache(int configNodeId, NodeStatistics statistics)Constructor only for ConfigNode-leader
-
-
方法详细资料
-
updateCurrentStatistics
protected void updateCurrentStatistics()
从类复制的说明:BaseNodeCacheUpdate currentStatistics based on recent NodeHeartbeatSamples that cached in the slidingWindow- 指定者:
updateCurrentStatistics在类中BaseNodeCache
-
-