CVS update: JGroups/src/org/jgroups/protocols FC.java
"Bela Ban" <[email protected]>
| Newsgroups | gmane.comp.java.javagroups.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: belaban
Date: 10/08/30 10:42:26
Modified: src/org/jgroups/protocols FC.java
Log:
ns
Revision Changes Path
1.126 +6 -1 JGroups/src/org/jgroups/protocols/FC.java
Index: FC.java
===================================================================
RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/protocols/FC.java,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -r1.125 -r1.126
--- FC.java 30 Aug 2010 10:32:43 -0000 1.125
+++ FC.java 30 Aug 2010 10:42:26 -0000 1.126
@@ -34,7 +34,7 @@
* <li>Receivers don't send the full credits (max_credits), but rather tha actual number of bytes received
* <ol/>
* @author Bela Ban
- * @version $Id: FC.java,v 1.125 2010/08/30 10:32:43 belaban Exp $
+ * @version $Id: FC.java,v 1.126 2010/08/30 10:42:26 belaban Exp $
*/
@MBean(description="Simple flow control protocol based on a credit system")
public class FC extends Protocol {
@@ -325,6 +325,11 @@
return sb.toString();
}
+ @ManagedOperation(description="Prints the creditors")
+ public String printCreditors() {
+ return creditors.toString();
+ }
+
public Map<String, Object> dumpStats() {
Map<String, Object> retval=super.dumpStats();
retval.put("senders", printMap(sent));
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d