Interface DiskStorageMonitor

All Superinterfaces:

public interface DiskStorageMonitor extends ResourceMonitor<Long>
A ResourceMonitor for the ResourceMonitoringService.RES_TYPE_DISK_STORAGE resource type. A DiskStorageMonitor instance monitors and limits the persistent storage of the bundle belonging to the ResourceContext
  • Method Details

    • getUsedDiskStorage

      long getUsedDiskStorage()
      Returns the sum of the size of the persistent storage areas of the bundles in this resource context.

      The ResourceMonitor.getUsage() method returns the same value, wrapped in a long.

      the sum of the sizes of the persistent storage areas in bytes