added metric for pubsub

This commit is contained in:
Athou
2013-06-27 09:50:11 +02:00
parent dbc1e0b538
commit 9c6f75b633
2 changed files with 37 additions and 3 deletions

View File

@@ -57,6 +57,15 @@ public class MetricsBean {
thisMinute.statusesInserted += statusesCount;
}
public void pushReceived(int feedCount) {
thisHour.pushNotificationsReceived++;
thisMinute.pushNotificationsReceived++;
thisHour.pushFeedsQueued += feedCount;
thisMinute.pushFeedsQueued += feedCount;
}
public void threadWaited() {
thisHour.threadWaited++;
thisMinute.threadWaited++;
@@ -83,6 +92,8 @@ public class MetricsBean {
private int entriesInserted;
private int statusesInserted;
private int threadWaited;
private int pushNotificationsReceived;
private int pushFeedsQueued;
public int getFeedsRefreshed() {
return feedsRefreshed;
@@ -124,5 +135,21 @@ public class MetricsBean {
this.threadWaited = threadWaited;
}
public int getPushNotificationsReceived() {
return pushNotificationsReceived;
}
public void setPushNotificationsReceived(int pushNotificationsReceived) {
this.pushNotificationsReceived = pushNotificationsReceived;
}
public int getPushFeedsQueued() {
return pushFeedsQueued;
}
public void setPushFeedsQueued(int pushFeedsQueued) {
this.pushFeedsQueued = pushFeedsQueued;
}
}
}