Class DataNodeHeartbeatCache


public class DataNodeHeartbeatCache extends BaseNodeCache
Heartbeat cache for cluster DataNodes.
  • 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: AbstractLoadCache
      Update currentStatistics based on the latest heartbeat sample that cached in the slidingWindow.
      Specified by:
      updateCurrentStatistics in class AbstractLoadCache
    • getFreeDiskSpace

      public double getFreeDiskSpace()