|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StatisticUpdateManager
The StatisticUpdateManager is a pod for registering all IStatisticUpdaters and all it does is going through each of the IStatisticUpdaters to call its updateStatistic method.
Initial Date: 11.02.2010
| Method Summary | |
|---|---|
void |
addStatisticUpdater(IStatisticUpdater updater)
Add the given IStatisticUpdater to this StatisticUpdateManager. |
long |
getAndUpdateLastUpdated(long lastUpdated)
Sets the LAST_UPDATED property to the given value lastUpdated |
long |
getLastUpdated()
Returns the existing LAST_UPDATED property's value - or -1 if it's not set |
boolean |
isEnabled()
Returns whether this manager is enabled or not. |
boolean |
updateOngoing()
Checks whether in this very moment an update is ongoing. |
boolean |
updateStatistics(boolean fullRecalculation,
java.lang.Runnable finishedCallback)
Update all statistics - that is, all that registered itself via addStatisticUpdater |
| Method Detail |
|---|
void addStatisticUpdater(IStatisticUpdater updater)
Note that is the duty of the IStatisticUpdater to register itself with this StatisticUpdateManager!
updater - the updater to be added to this StatisticUpdateManagerlong getAndUpdateLastUpdated(long lastUpdated)
lastUpdated - the new lastUpdated valuelong getLastUpdated()
boolean updateStatistics(boolean fullRecalculation,
java.lang.Runnable finishedCallback)
boolean isEnabled()
boolean updateOngoing()
Note that one millisecond later, some other node or the cron might start an update - so this is really just true for this very moment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||