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
  • Field Details

    • ROLE

      public static final String ROLE
      Avalon Role
  • Constructor Details

  • Method Details

    • 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