001: package org.jgroups.jmx.protocols;
002:
003: import org.jgroups.jmx.Protocol;
004:
005: /**
006: * @author Bela Ban
007: * @version $Id: FC.java,v 1.5.10.1 2007/04/18 09:12:35 belaban Exp $
008: */
009: public class FC extends Protocol implements FCMBean {
010: org.jgroups.protocols.FC p;
011:
012: public FC() {
013: }
014:
015: public FC(org.jgroups.stack.Protocol p) {
016: super (p);
017: this .p = (org.jgroups.protocols.FC) p;
018: }
019:
020: public void attachProtocol(org.jgroups.stack.Protocol p) {
021: super .attachProtocol(p);
022: this .p = (org.jgroups.protocols.FC) p;
023: }
024:
025: public long getMaxCredits() {
026: return p.getMaxCredits();
027: }
028:
029: public void setMaxCredits(long max_credits) {
030: p.setMaxCredits(max_credits);
031: }
032:
033: public double getMinThreshold() {
034: return p.getMinThreshold();
035: }
036:
037: public void setMinThreshold(double min_threshold) {
038: p.setMinThreshold(min_threshold);
039: }
040:
041: public long getMinCredits() {
042: return p.getMinCredits();
043: }
044:
045: public void setMinCredits(long min_credits) {
046: p.setMinCredits(min_credits);
047: }
048:
049: public boolean isBlocked() {
050: return p.isBlocked();
051: }
052:
053: public int getBlockings() {
054: return p.getNumberOfBlockings();
055: }
056:
057: public long getTotalTimeBlocked() {
058: return p.getTotalTimeBlocked();
059: }
060:
061: public long getMaxBlockTime() {
062: return p.getMaxBlockTime();
063: }
064:
065: public void setMaxBlockTime(long t) {
066: p.setMaxBlockTime(t);
067: }
068:
069: public double getAverageTimeBlocked() {
070: return p.getAverageTimeBlocked();
071: }
072:
073: public int getCreditRequestsReceived() {
074: return p.getNumberOfCreditRequestsReceived();
075: }
076:
077: public int getCreditRequestsSent() {
078: return p.getNumberOfCreditRequestsSent();
079: }
080:
081: public int getCreditResponsesReceived() {
082: return p.getNumberOfCreditResponsesReceived();
083: }
084:
085: public int getCreditResponsesSent() {
086: return p.getNumberOfCreditResponsesSent();
087: }
088:
089: public String printSenderCredits() {
090: return p.printSenderCredits();
091: }
092:
093: public String printReceiverCredits() {
094: return p.printReceiverCredits();
095: }
096:
097: public String printCredits() {
098: return p.printCredits();
099: }
100:
101: public String showLastBlockingTimes() {
102: return p.showLastBlockingTimes();
103: }
104:
105: public void unblock() {
106: p.unblock();
107: }
108: }
|