Package org.epics.archiverappliance.etl
Interface StorageMetrics
-
- All Known Implementing Classes:
MergeDedupStoragePlugin
,PlainPBStoragePlugin
public interface StorageMetrics
Interface providing details for the storage metrics pages...- Author:
- mshankar
-
-
Method Summary
Modifier and Type Method Description String
getName()
The name is also used to identify the storage in the storage report.long
getTotalSpace(StorageMetricsContext storageMetricsContext)
Gets the total space left on this device.long
getUsableSpace(StorageMetricsContext storageMetricsContext)
Gets the space available to this VM on this devicelong
spaceConsumedByPV(String pvName)
Gets an estimate of the space consumed by this PV on this device.
-
-
-
Method Detail
-
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
-
-
-