As with the messages, turn this into a method so that we can override it.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6572 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2011-03-31 23:25:07 +00:00
parent 301cd0d885
commit 57d5d4ef0b
@@ -215,6 +215,10 @@ public abstract class PeerManager
/** The total number of messages sent to all of our peers. */
public long peerMessagesOut;
public void noteNodeActionInvoked (NodeAction action) {
nodeActionsInvoked++;
}
public void notePeerMessageReceived (Message msg) {
peerMessagesIn.incrementAndGet();
}
@@ -450,7 +454,7 @@ public abstract class PeerManager
}
if (invoked) {
_stats.nodeActionsInvoked++; // stats!
_stats.noteNodeActionInvoked(action); // stats!
}
}