public class AggregatedStorage extends Object implements AggregatedStorage
| Modifier and Type | Field and Description |
|---|---|
protected Storage |
dailyStorage |
protected Storage |
defaultStorage |
protected Storage |
monthlyStorage |
protected Storage |
weeklyStorage |
| Constructor and Description |
|---|
AggregatedStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup(int daysToKeep,
String type) |
List<String> |
find(Date from,
Date to,
String instance,
String type) |
Filters |
findFilters(Date from,
Date to,
String type) |
boolean |
isAggregateOnly()
When true then saves aggregated stats only.
|
Stats |
load(String groupId) |
Stats |
loadAggregated(boolean topLevelOnly,
Date from,
Date to,
String instance,
String type) |
StatDetails |
loadDetails(String detailsId,
Date from,
Date to,
String instance,
String type) |
StatDetails |
loadDetails(String detailsId,
List<String> groupIds) |
String |
replace(String statsId,
Stats stats,
String instance,
String type) |
String |
save(Stats stats,
String instance,
String type) |
void |
setAggregateOnly(boolean aggregateOnly) |
void |
setStorage(Storage defaultStorage,
Storage dailyStorage,
Storage weeklyStorage,
Storage monthlyStorage) |
void |
setup(String initParam) |
protected Storage defaultStorage
protected Storage dailyStorage
protected Storage weeklyStorage
protected Storage monthlyStorage
public void setStorage(Storage defaultStorage, Storage dailyStorage, Storage weeklyStorage, Storage monthlyStorage)
setStorage in interface AggregatedStoragepublic boolean isAggregateOnly()
public void setAggregateOnly(boolean aggregateOnly)
setAggregateOnly in interface AggregatedStoragepublic Filters findFilters(Date from, Date to, String type)
findFilters in interface Storagepublic StatDetails loadDetails(String detailsId, List<String> groupIds)
loadDetails in interface Storagepublic StatDetails loadDetails(String detailsId, Date from, Date to, String instance, String type)
loadDetails in interface Storagepublic Stats loadAggregated(boolean topLevelOnly, Date from, Date to, String instance, String type)
loadAggregated in interface StorageCopyright © 2017. All rights reserved.