01: package org.jgroups.jmx.protocols;
02:
03: import org.jgroups.jmx.Protocol;
04:
05: /**
06: * @author Bela Ban
07: * @version $Id: FD_SOCK.java,v 1.1 2005/06/13 13:06:02 belaban Exp $
08: */
09: 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: public String getLocalAddress() {
26: return p.getLocalAddress();
27: }
28:
29: public String getMembers() {
30: return p.getMembers();
31: }
32:
33: public String getPingableMembers() {
34: return p.getPingableMembers();
35: }
36:
37: public String getPingDest() {
38: return p.getPingDest();
39: }
40:
41: public int getNumSuspectEventsGenerated() {
42: return p.getNumSuspectEventsGenerated();
43: }
44:
45: public String printSuspectHistory() {
46: return p.printSuspectHistory();
47: }
48: }
|