/** * Return the free space available in bytes * * @return long */ public long getAvailableFreeSpace() { // Get the live free space value from the content store, if supported long freeSpace = contentService.getStoreFreeSpace(); if ( freeSpace == -1L) { // Content store does not support sizing, return a large dummy value freeSpace = ContentDiskDriver.DiskFreeDefault; } return freeSpace; }
/** * Return the free space available in bytes * * @return long */ public long getAvailableFreeSpace() { // Get the live free space value from the content store, if supported long freeSpace = contentService.getStoreFreeSpace(); if ( freeSpace == -1L) { // Content store does not support sizing, return a large dummy value freeSpace = ContentDiskDriver.DiskFreeDefault; } return freeSpace; }
@SuppressWarnings("unused") public void testContentStoreSizes() throws Exception { long contentTotalSize = contentService.getStoreFreeSpace(); long contentAvailableSize = contentService.getStoreTotalSpace(); }
long freeSpace = contentService.getStoreFreeSpace(); long totalSpace= contentService.getStoreTotalSpace();
long freeSpace = contentService.getStoreFreeSpace(); long totalSpace= contentService.getStoreTotalSpace();
long freeSpace = contentService.getStoreFreeSpace(); long totalSpace= contentService.getStoreTotalSpace();
long freeSpace = contentService.getStoreFreeSpace(); long totalSpace= contentService.getStoreTotalSpace();