Interface FSClusterStats


@Private public interface FSClusterStats
This interface is used for retrieving the load related statistics of the cluster.
  • Method Details

    • getTotalLoad

      int getTotalLoad()
      an indication of the total load of the cluster.
      Returns:
      a count of the total number of block transfers and block writes that are currently occuring on the cluster.
    • isAvoidingStaleDataNodesForWrite

      boolean isAvoidingStaleDataNodesForWrite()
      Indicate whether or not the cluster is now avoiding to use stale DataNodes for writing.
      Returns:
      True if the cluster is currently avoiding using stale DataNodes for writing targets, and false otherwise.
    • getNumDatanodesInService

      int getNumDatanodesInService()
      Indicates number of datanodes that are in service.
      Returns:
      Number of datanodes that are both alive and not decommissioned.
    • getInServiceXceiverAverage

      double getInServiceXceiverAverage()
      An indication of the average load of non-decommission(ing|ed) nodes eligible for block placement.
      Returns:
      average of the in service number of block transfers and block writes that are currently occurring on the cluster.
    • getInServiceXceiverAverageForVolume

      double getInServiceXceiverAverageForVolume()
      An indication of the average load of volumes at non-decommission(ing|ed) nodes eligible for block placement.
      Returns:
      average of in service number of block transfers and block writes that are currently occurring on the volumes of the cluster.
    • getStorageTypeStats

      Map<org.apache.hadoop.fs.StorageType,StorageTypeStats> getStorageTypeStats()
      Indicates the storage statistics per storage type.
      Returns:
      storage statistics per storage type.