KickJava   Java API By Example, From Geeks To Geeks.

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


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

9 public class FD extends Protocol implements FDMBean {
10     org.jgroups.protocols.FD p;
11
12     public FD() {
13     }
14
15     public FD(org.jgroups.stack.Protocol p) {
16         super(p);
17         this.p=(org.jgroups.protocols.FD)p;
18     }
19
20     public void attachProtocol(org.jgroups.stack.Protocol p) {
21         super.attachProtocol(p);
22         this.p=(org.jgroups.protocols.FD)p;
23     }
24
25     public int getNumberOfHeartbeatsSent() {
26         return p.getNumberOfHeartbeatsSent();
27     }
28
29     public int getNumSuspectEventsGenerated() {
30         return p.getNumSuspectEventsGenerated();
31     }
32
33     public long getTimeout() {
34         return p.getTimeout();
35     }
36
37     public void setTimeout(long timeout) {
38         p.setTimeout(timeout);
39     }
40
41     public int getMaxTries() {
42         return p.getMaxTries();
43     }
44
45     public void setMaxTries(int max_tries) {
46         p.setMaxTries(max_tries);
47     }
48
49     public int getCurrentNumTries() {
50         return p.getCurrentNumTries();
51     }
52
53     public boolean isShun() {
54         return p.isShun();
55     }
56
57     public void setShun(boolean flag) {
58         p.setShun(flag);
59     }
60
61     public String JavaDoc getLocalAddress() {
62         return p.getLocalAddress();
63     }
64
65     public String JavaDoc getMembers() {
66         return p.getMembers();
67     }
68
69     public String JavaDoc getPingableMembers() {
70         return p.getPingableMembers();
71     }
72
73     public String JavaDoc getPingDest() {
74         return p.getPingDest();
75     }
76
77     public String JavaDoc printSuspectHistory() {
78         return p.printSuspectHistory();
79     }
80 }
81
Popular Tags