1 package org.jgroups.jmx.protocols; 2 3 import org.jgroups.jmx.Protocol; 4 5 import java.util.Map ; 6 7 11 public class SFC extends Protocol implements SFCMBean { 12 org.jgroups.protocols.SFC p; 13 14 public SFC() { 15 } 16 17 public SFC(org.jgroups.stack.Protocol p) { 18 super(p); 19 this.p=(org.jgroups.protocols.SFC)p; 20 } 21 22 public void attachProtocol(org.jgroups.stack.Protocol p) { 23 super.attachProtocol(p); 24 this.p=(org.jgroups.protocols.SFC)p; 25 } 26 27 public void resetStats() { 28 super.resetStats(); 29 p.resetStats(); 30 } 31 32 public long getMaxCredits() { 33 return p.getMaxCredits(); 34 } 35 36 public long getBytesSent() { 37 return p.getBytesSent(); 38 } 39 40 public long getCredits() { 41 return p.getCredits(); 42 } 43 44 public long getBlockings() { 45 return p.getBlockings(); 46 } 47 48 public long getCreditRequestsReceived() { 49 return p.getCreditRequestsReceived(); 50 } 51 52 public long getCreditRequestsSent() { 53 return p.getCreditRequestsSent(); 54 } 55 56 public long getReplenishmentsReceived() { 57 return p.getReplenishmentsReceived(); 58 } 59 60 public long getReplenishmentsSent() { 61 return p.getReplenishmentsSent(); 62 } 63 64 public long getTotalBlockingTime() { 65 return p.getTotalBlockingTime(); 66 } 67 68 public double getAverageBlockingTime() { 69 return p.getAverageBlockingTime(); 70 } 71 72 public Map dumpStats() { 73 return p.dumpStats(); 74 } 75 76 public String printBlockingTimes() { 77 return p.printBlockingTimes(); 78 } 79 80 public String printReceived() { 81 return p.printReceived(); 82 } 83 84 public String printPendingCreditors() { 85 return p.printPendingCreditors(); 86 } 87 88 public String printPendingRequesters() { 89 return p.printPendingRequesters(); 90 } 91 92 public void unblock() { 93 p.unblock(); 94 } 95 } 96 | Popular Tags |