Permalink
Browse files

added num_merge_events

  • Loading branch information...
Bela Ban
Bela Ban committed Oct 21, 2011
1 parent 1fce87c commit 79b713d44c3a359da52d475bb4fc6334e0635891
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/org/jgroups/protocols/MERGE2.java
@@ -88,6 +88,9 @@ public boolean isMergeTaskRunning() {
@ManagedAttribute(description="Number of inconsistent 1-coord views until a MERGE event is sent up the stack")
private int num_inconsistent_views=0;
+ @ManagedAttribute(description="Number of times a MERGE event was sent up the stack")
+ protected int num_merge_events=0;
+
public void init() throws Exception {
timer=getTransport().getTimer();
@@ -294,6 +297,7 @@ private void _findAndNotify() {
Event evt=new Event(Event.MERGE, views);
try {
up_prot.up(evt);
+ num_merge_events++;
}
catch(Throwable t) {
log.error("failed sending up MERGE event", t);

0 comments on commit 79b713d

Please sign in to comment.