Interface StorageMetrics

All Known Implementing Classes:
MergeDedupStoragePlugin, PlainStoragePlugin

public interface StorageMetrics
Interface providing details for the storage metrics pages...
Author:
mshankar
  • Method Details

    • getName

      String getName()
      The name is also used to identify the storage in the storage report. This method is shared with the StoragePlugin interface.
      Returns:
      name The name of stroage
    • getTotalSpace

      long getTotalSpace(StorageMetricsContext storageMetricsContext) throws IOException
      Gets the total space left on this device.
      Parameters:
      storageMetricsContext - StorageMetricsContext
      Returns:
      getTotalSpac  
      Throws:
      IOException -  
    • getUsableSpace

      long getUsableSpace(StorageMetricsContext storageMetricsContext) throws IOException
      Gets the space available to this VM on this device
      Parameters:
      storageMetricsContext - StorageMetricsContext
      Returns:
      getUsableSpace  
      Throws:
      IOException -  
    • spaceConsumedByPV

      long spaceConsumedByPV(String pvName) throws IOException
      Gets an estimate of the space consumed by this PV on this device.
      Parameters:
      pvName - The name of PV.
      Returns:
      spaceConsumedByPV  
      Throws:
      IOException -