Permalink
Browse files

exposing compact()

  • Loading branch information...
1 parent ecd1273 commit 82c3f647f876283b725f70af950acf31456bc57c Bela Ban committed Dec 19, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/org/jgroups/protocols/pbcast/NAKACK.java
@@ -486,6 +486,15 @@ public String printRetransmitTableSizes() {
}
+ @ManagedOperation(description="Compacts the retransmission tables")
+ public void compact() {
+ for(Map.Entry<Address,NakReceiverWindow> entry: xmit_table.entrySet()) {
+ NakReceiverWindow win=entry.getValue();
+ win.compact();
+ }
+ }
+
+
@ManagedAttribute
public double getAverageLossRate() {
double retval=0.0;

0 comments on commit 82c3f64

Please sign in to comment.