KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jgroups.jmx.protocols.pbcast;
2
3 import org.jgroups.jmx.Protocol;
4
5 /**
6  * @author Bela Ban
7  * @version $Id: STABLE.java,v 1.4 2007/01/09 11:40:16 belaban Exp $
8  */

9 public class STABLE extends Protocol implements STABLEMBean {
10     org.jgroups.protocols.pbcast.STABLE p;
11
12     public STABLE() {
13     }
14
15     public STABLE(org.jgroups.stack.Protocol p) {
16         super(p);
17         this.p=(org.jgroups.protocols.pbcast.STABLE)p;
18     }
19
20     public void attachProtocol(org.jgroups.stack.Protocol p) {
21         super.attachProtocol(p);
22         this.p=(org.jgroups.protocols.pbcast.STABLE)p;
23     }
24
25     public long getDesiredAverageGossip() {
26         return p.getDesiredAverageGossip();
27     }
28
29     public void setDesiredAverageGossip(long gossip_interval) {
30         p.setDesiredAverageGossip(gossip_interval);
31     }
32
33     public long getMaxBytes() {
34         return p.getMaxBytes();
35     }
36
37     public void setMaxBytes(long max_bytes) {
38         p.setMaxBytes(max_bytes);
39     }
40
41     public long getBytes() {
42         return p.getBytes();
43     }
44
45     public int getStableSent() {
46         return p.getStableSent();
47     }
48
49     public int getStableReceived() {
50         return p.getStableReceived();
51     }
52
53     public int getStabilitySent() {
54         return p.getStabilitySent();
55     }
56
57     public int getStabilityReceived() {
58         return p.getStabilityReceived();
59     }
60
61     public void runMessageGarbageCollection() {
62         p.runMessageGarbageCollection();
63     }
64
65 }
66
Popular Tags