01: package org.jgroups.jmx.protocols.pbcast;
02:
03: import org.jgroups.jmx.Protocol;
04:
05: /**
06: * @author Bela Ban
07: * @version $Id: STABLE.java,v 1.3 2005/08/26 14:19:08 belaban Exp $
08: */
09: 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 int getGossipMessages() {
42: return p.getNumberOfGossipMessages();
43: }
44:
45: public void runMessageGarbageCollection() {
46: p.runMessageGarbageCollection();
47: }
48:
49: }
|