Class DiskSpaceHelper
- java.lang.Object
-
- org.ametys.runtime.plugins.admin.jvmstatus.monitoring.DiskSpaceHelper
-
- All Implemented Interfaces:
Component
public class DiskSpaceHelper extends Object implements Component
Helper for getting information about the use of the disk space of Ametys home directory
-
-
Constructor Summary
Constructors Constructor Description DiskSpaceHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAvailableSpace()
Gets the free space remaining on the disk of Ametys home directorylong
getUsedSpace()
Gets the space used by the ametys home directory
-
-
-
Constructor Detail
-
DiskSpaceHelper
public DiskSpaceHelper()
-
-
Method Detail
-
getUsedSpace
public long getUsedSpace()
Gets the space used by the ametys home directory- Returns:
- The space used by the ametys home directory in bytes
-
getAvailableSpace
public long getAvailableSpace()
Gets the free space remaining on the disk of Ametys home directory- Returns:
- The free space remaining on the disk of Ametys home directory in bytes
-
-