public class DiskUsageStatistics.Summary
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
creationTime |
private java.util.Map<java.lang.String,java.lang.Long> |
diskUsage |
Modifier | Constructor and Description |
---|---|
private |
Summary() |
private |
Summary(Group group) |
private |
Summary(User user) |
Modifier and Type | Method and Description |
---|---|
private java.lang.Long |
add(java.lang.Long a,
java.lang.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(org.hibernate.query.Query<java.lang.Object[]> query) |
private final long creationTime
private final java.util.Map<java.lang.String,java.lang.Long> diskUsage
private Summary()
private Summary(User user)
private Summary(Group group)
private void loadDiskUsage(org.hibernate.query.Query<java.lang.Object[]> query)
private java.lang.Long add(java.lang.Long a, java.lang.Long b)
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