Interface DiskStorageMonitor

All Superinterfaces:
ResourceMonitor<Long>

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
Version:
1.0
Author:
$Id: 503c6bd306ddb27d34644b471b35ba953d8f7437 $
  • 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.

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