KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgroups > jmx > protocols > pbcast > NAKACK


1 package org.jgroups.jmx.protocols.pbcast;
2
3 import org.jgroups.jmx.Protocol;
4
5 /**
6  * @author Bela Ban
7  * @version $Id: NAKACK.java,v 1.9 2007/05/29 08:13:19 belaban Exp $
8  */

9 public class NAKACK extends Protocol implements NAKACKMBean {
10     org.jgroups.protocols.pbcast.NAKACK p;
11
12     public NAKACK() {
13     }
14
15     public NAKACK(org.jgroups.stack.Protocol p) {
16         super(p);
17         this.p=(org.jgroups.protocols.pbcast.NAKACK)p;
18     }
19
20     public void attachProtocol(org.jgroups.stack.Protocol p) {
21         super.attachProtocol(p);
22         this.p=(org.jgroups.protocols.pbcast.NAKACK)p;
23     }
24
25     public int getGcLag() {
26         return p.getGcLag();
27     }
28
29     public void setGcLag(int gc_lag) {
30         p.setGcLag(gc_lag);
31     }
32
33     public boolean isUseMcastXmit() {
34         return p.isUseMcastXmit();
35     }
36
37     public void setUseMcastXmit(boolean use_mcast_xmit) {
38         p.setUseMcastXmit(use_mcast_xmit);
39     }
40
41     public boolean isXmitFromRandomMember() {
42         return p.isXmitFromRandomMember();
43     }
44
45     public void setXmitFromRandomMember(boolean xmit_from_random_member) {
46         p.setXmitFromRandomMember(xmit_from_random_member);
47     }
48
49     public boolean isDiscardDeliveredMsgs() {
50         return p.isDiscardDeliveredMsgs();
51     }
52
53     public void setDiscardDeliveredMsgs(boolean discard_delivered_msgs) {
54         p.setDiscardDeliveredMsgs(discard_delivered_msgs);
55     }
56
57     public int getMaxXmitBufSize() {
58         return p.getMaxXmitBufSize();
59     }
60
61     public void setMaxXmitBufSize(int max_xmit_buf_size) {
62         p.setMaxXmitBufSize(max_xmit_buf_size);
63     }
64
65     public long getMaxXmitSize() {
66         return p.getMaxXmitSize();
67     }
68
69     public void setMaxXmitSize(long max_xmit_size) {
70         p.setMaxXmitSize(max_xmit_size);
71     }
72
73     public long getXmitRequestsReceived() {
74         return p.getXmitRequestsReceived();
75     }
76
77     public long getXmitRequestsSent() {
78         return p.getXmitRequestsSent();
79     }
80
81     public long getXmitResponsesReceived() {
82         return p.getXmitResponsesReceived();
83     }
84
85     public long getXmitResponsesSent() {
86         return p.getXmitResponsesSent();
87     }
88
89     public long getMissingMessagesReceived() {
90         return p.getMissingMessagesReceived();
91     }
92
93     public int getPendingRetransmissionRequests() {
94         return p.getPendingRetransmissionRequests();
95     }
96
97     public int getXmitTableSize() {
98         return p.getXmitTableSize();
99     }
100
101     public String JavaDoc printXmitTable() {
102         return p.printMessages();
103     }
104
105     public String JavaDoc printMessages() {
106         return p.printMessages();
107     }
108
109     public String JavaDoc printStabilityMessages() {
110         return p.printStabilityMessages();
111     }
112
113
114     public String JavaDoc printRetransmissionTimes() {
115         return p.printRetransmissionTimes();
116     }
117
118
119     public double getTotalAverageRetransmissionTime() {
120         return p.getTotalAverageRetransmissionTime();
121     }
122 }
123
Popular Tags