wip: allow parallel update of feeds

This commit is contained in:
Athou
2013-05-22 00:07:13 +02:00
parent f75baf5cff
commit 15b7d685fe
7 changed files with 177 additions and 124 deletions

View File

@@ -33,13 +33,17 @@ public class MetricsBean {
thisHour.feedsRefreshed++;
}
public void feedUpdated(int entriesCount, int statusesCount) {
public void feedUpdated() {
thisHour.feedsUpdated++;
thisMinute.feedsUpdated++;
thisHour.entriesInserted += entriesCount;
thisMinute.entriesInserted += entriesCount;
}
public void entryUpdated(int statusesCount) {
thisHour.entriesInserted++;
thisMinute.entriesInserted++;
thisHour.statusesInserted += statusesCount;
thisMinute.statusesInserted += statusesCount;
}