public class DiskUsageStatistics.Summary extends Object
Modifier and Type | Field and Description |
---|---|
private long |
creationTime |
private Map<String,Long> |
diskUsage |
Modifier | Constructor and Description |
---|---|
private |
Summary() |
private |
Summary(Group group) |
private |
Summary(User user) |
Modifier and Type | Method and Description |
---|---|
private Long |
add(Long a,
Long b) |
int |
getAge()
Get the age of this summary object since it was created in seconds.
|
long |
getTotal()
Get the total disk usage in bytes
|
long |
getTotal(Location location)
Get the total disk usage of the specified location in bytes.
|
long |
getTotal(QuotaType quotaType)
Get the total disk usage for the specified quota type in bytes.
|
long |
getTotal(QuotaType quotaType,
Location location)
Get the total disk usage of the specified location and
quota type in bytes.
|
boolean |
isOld()
Check if this summary object is old by comparing it's
age to the
DiskUsageStatistics.getMaxAge() . |
private void |
loadDiskUsage(Query query) |
private Summary()
private Summary(User user)
private Summary(Group group)
private void loadDiskUsage(Query query)
public int getAge()
public boolean isOld()
DiskUsageStatistics.getMaxAge()
.public long getTotal()
public long getTotal(Location location)
location
- The location to get the disk usage forpublic long getTotal(QuotaType quotaType)
quotaType
- The quota type to get the disk usage for