|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.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(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(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 for
public long getTotal(QuotaType quotaType,
Location location)
location - The location to get the disk usage forquotaType - The quota type to get the disk usage for
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||