Interface DiskStorageMonitor
- All Superinterfaces:
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 Summary
Modifier and TypeMethodDescriptionlong
Returns the sum of the size of the persistent storage areas of the bundles in this resource context.Methods inherited from interface org.osgi.service.resourcemonitoring.ResourceMonitor
delete, disable, enable, equals, getContext, getMonitoredPeriod, getResourceType, getSamplingPeriod, getUsage, hashCode, isDeleted, isEnabled
-
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
-