KickJava   Java API By Example, From Geeks To Geeks.

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


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

9 public class FD_SOCK extends Protocol implements FD_SOCKMBean {
10     org.jgroups.protocols.FD_SOCK p;
11
12     public FD_SOCK() {
13     }
14
15     public FD_SOCK(org.jgroups.stack.Protocol p) {
16         super(p);
17         this.p=(org.jgroups.protocols.FD_SOCK)p;
18     }
19
20     public void attachProtocol(org.jgroups.stack.Protocol p) {
21         super.attachProtocol(p);
22         this.p=(org.jgroups.protocols.FD_SOCK)p;
23     }
24
25
26     public String JavaDoc getLocalAddress() {
27         return p.getLocalAddress();
28     }
29
30     public String JavaDoc getMembers() {
31         return p.getMembers();
32     }
33
34     public String JavaDoc getPingableMembers() {
35         return p.getPingableMembers();
36     }
37
38     public String JavaDoc getPingDest() {
39         return p.getPingDest();
40     }
41
42     public int getNumSuspectEventsGenerated() {
43         return p.getNumSuspectEventsGenerated();
44     }
45
46     public String JavaDoc printSuspectHistory() {
47         return p.printSuspectHistory();
48     }
49 }
50
Popular Tags