KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jgroups.jmx.protocols;
2
3 import org.jgroups.jmx.Protocol;
4
5 /**
6  * @author Bela Ban
7  * @version $Id: VIEW_SYNC.java,v 1.2 2005/10/27 08:30:14 belaban Exp $
8  */

9 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 }
50
Popular Tags