Interface DiskStorageMonitor
-
- All Superinterfaces:
ResourceMonitor<java.lang.Long>
public interface DiskStorageMonitor extends ResourceMonitor<java.lang.Long>
AResourceMonitor
for theResourceMonitoringService.RES_TYPE_DISK_STORAGE
resource type. A DiskStorageMonitor instance monitors and limits the persistent storage of the bundle belonging to theResourceContext
- Version:
- 1.0
- Author:
- $Id: 503c6bd306ddb27d34644b471b35ba953d8f7437 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getUsedDiskStorage()
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 Detail
-
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
-
-