类 ConfigNodeHeartbeatCache

    • 字段详细资料

      • 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()
        从类复制的说明: BaseNodeCache
        Update currentStatistics based on recent NodeHeartbeatSamples that cached in the slidingWindow
        指定者:
        updateCurrentStatistics 在类中 BaseNodeCache