fix metrics

This commit is contained in:
Athou
2013-07-24 15:53:21 +02:00
parent 645164997d
commit dab9f53743
2 changed files with 2 additions and 12 deletions

View File

@@ -55,13 +55,11 @@ public class MetricsBean {
}
public void entryUpdated(int statusesCount) {
public void entryInserted() {
thisHour.entriesInserted++;
thisMinute.entriesInserted++;
thisHour.statusesInserted += statusesCount;
thisMinute.statusesInserted += statusesCount;
}
public void entryCacheHit() {
@@ -107,7 +105,6 @@ public class MetricsBean {
private int feedsRefreshed;
private int feedsUpdated;
private int entriesInserted;
private int statusesInserted;
private int threadWaited;
private int pushNotificationsReceived;
private int pushFeedsQueued;
@@ -138,14 +135,6 @@ public class MetricsBean {
this.entriesInserted = entriesInserted;
}
public int getStatusesInserted() {
return statusesInserted;
}
public void setStatusesInserted(int statusesInserted) {
this.statusesInserted = statusesInserted;
}
public int getThreadWaited() {
return threadWaited;
}

View File

@@ -71,6 +71,7 @@ public class FeedUpdateService {
users.add(user);
}
feedEntryDAO.saveOrUpdate(entry);
metricsBean.entryInserted();
cache.invalidateUserData(users.toArray(new User[0]));
}
}