|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.DiskUsageStatistics.Summary
public class DiskUsageStatistics.Summary
Holds summary disk usage information for the total disk usage or for a specific user or group.
Field Summary | |
---|---|
private long |
creationTime
|
private Map<String,Long> |
diskUsage
|
Constructor Summary | |
---|---|
private |
DiskUsageStatistics.Summary()
|
private |
DiskUsageStatistics.Summary(Group group)
|
private |
DiskUsageStatistics.Summary(User user)
|
Method Summary | |
---|---|
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(org.hibernate.Query query)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final long creationTime
private final Map<String,Long> diskUsage
Constructor Detail |
---|
private DiskUsageStatistics.Summary()
private DiskUsageStatistics.Summary(User user)
private DiskUsageStatistics.Summary(Group group)
Method Detail |
---|
private void loadDiskUsage(org.hibernate.Query query)
private Long add(Long a, 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 forpublic long getTotal(QuotaType quotaType, Location location)
location
- The location to get the disk usage forquotaType
- The quota type to get the disk usage for
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |