KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jgroups.jmx.protocols;
2
3 import org.jgroups.jmx.Protocol;
4
5 /**
6  * @author Bela Ban
7  * @version $Id: MERGE2.java,v 1.1 2005/06/13 11:55:31 belaban Exp $
8  */

9 public class MERGE2 extends Protocol implements MERGE2MBean {
10     org.jgroups.protocols.MERGE2 p;
11
12     public MERGE2() {
13     }
14
15     public MERGE2(org.jgroups.stack.Protocol p) {
16         super(p);
17         this.p=(org.jgroups.protocols.MERGE2)p;
18     }
19
20     public void attachProtocol(org.jgroups.stack.Protocol p) {
21         super.attachProtocol(p);
22         this.p=(org.jgroups.protocols.MERGE2)p;
23     }
24
25     public long getMinInterval() {
26         return p.getMinInterval();
27     }
28
29     public void setMinInterval(long i) {
30         p.setMinInterval(i);
31     }
32
33     public long getMaxInterval() {
34         return p.getMaxInterval();
35     }
36
37     public void setMaxInterval(long l) {
38         p.setMaxInterval(l);
39     }
40 }
41
Popular Tags