01: package org.jgroups.jmx.protocols;
02:
03: import org.jgroups.jmx.Protocol;
04:
05: /**
06: * @author Bela Ban
07: * @version $Id: VIEW_SYNC.java,v 1.2 2005/10/27 08:30:14 belaban Exp $
08: */
09: public class VIEW_SYNC extends Protocol implements VIEW_SYNCMBean {
10: org.jgroups.protocols.VIEW_SYNC p;
11:
12: public VIEW_SYNC() {
13: }
14:
15: public VIEW_SYNC(org.jgroups.stack.Protocol p) {
16: super (p);
17: this .p = (org.jgroups.protocols.VIEW_SYNC) p;
18: }
19:
20: public void attachProtocol(org.jgroups.stack.Protocol p) {
21: super .attachProtocol(p);
22: this .p = (org.jgroups.protocols.VIEW_SYNC) p;
23: }
24:
25: public long getAverageSendInterval() {
26: return p.getAverageSendInterval();
27: }
28:
29: public void setAverageSendInterval(long send_interval) {
30: p.setAverageSendInterval(send_interval);
31: }
32:
33: public int getNumViewsSent() {
34: return p.getNumViewsSent();
35: }
36:
37: public int getNumViewsAdjusted() {
38: return p.getNumViewsAdjusted();
39: }
40:
41: public void sendViewRequest() {
42: p.sendViewRequest();
43: }
44:
45: // public void sendFakeViewForTestingOnly() {
46: // p.sendFakeViewForTestingOnly();
47: // }
48:
49: }
|