KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgroups > jmx > protocols > FC


1 package org.jgroups.jmx.protocols;
2
3 import org.jgroups.jmx.Protocol;
4
5 /**
6  * @author Bela Ban
7  * @version $Id: FC.java,v 1.6 2007/05/07 09:55:37 belaban Exp $
8  */

9 public class FC extends Protocol implements FCMBean {
10     org.jgroups.protocols.FC p;
11
12     public FC() {
13     }
14
15     public FC(org.jgroups.stack.Protocol p) {
16         super(p);
17         this.p=(org.jgroups.protocols.FC)p;
18     }
19
20     public void attachProtocol(org.jgroups.stack.Protocol p) {
21         super.attachProtocol(p);
22         this.p=(org.jgroups.protocols.FC)p;
23     }
24
25     public long getMaxCredits() {
26         return p.getMaxCredits();
27     }
28
29     public void setMaxCredits(long max_credits) {
30         p.setMaxCredits(max_credits);
31     }
32
33     public double getMinThreshold() {
34         return p.getMinThreshold();
35     }
36
37     public void setMinThreshold(double min_threshold) {
38         p.setMinThreshold(min_threshold);
39     }
40
41     public long getMinCredits() {
42         return p.getMinCredits();
43     }
44
45     public void setMinCredits(long min_credits) {
46         p.setMinCredits(min_credits);
47     }
48
49
50     public int getBlockings() {
51         return p.getNumberOfBlockings();
52     }
53
54     public long getTotalTimeBlocked() {
55         return p.getTotalTimeBlocked();
56     }
57
58     public long getMaxBlockTime() {
59         return p.getMaxBlockTime();
60     }
61
62     public void setMaxBlockTime(long t) {
63         p.setMaxBlockTime(t);
64     }
65
66     public double getAverageTimeBlocked() {
67         return p.getAverageTimeBlocked();
68     }
69
70     public int getCreditRequestsReceived() {
71         return p.getNumberOfCreditRequestsReceived();
72     }
73
74     public int getCreditRequestsSent() {
75         return p.getNumberOfCreditRequestsSent();
76     }
77
78     public int getCreditResponsesReceived() {
79         return p.getNumberOfCreditResponsesReceived();
80     }
81
82     public int getCreditResponsesSent() {
83         return p.getNumberOfCreditResponsesSent();
84     }
85
86
87     public String JavaDoc printSenderCredits() {
88         return p.printSenderCredits();
89     }
90
91     public String JavaDoc printReceiverCredits() {
92         return p.printReceiverCredits();
93     }
94
95     public String JavaDoc printCredits() {
96         return p.printCredits();
97     }
98
99     public String JavaDoc showLastBlockingTimes() {
100         return p.showLastBlockingTimes();
101     }
102
103     public void unblock() {
104         p.unblock();
105     }
106 }
107
Popular Tags