1 package org.jgroups.jmx.protocols; 2 3 import org.jgroups.jmx.Protocol; 4 5 9 public class FD_ALL extends Protocol implements FD_ALLMBean { 10 org.jgroups.protocols.FD_ALL p; 11 12 public FD_ALL() { 13 } 14 15 public FD_ALL(org.jgroups.stack.Protocol p) { 16 super(p); 17 this.p=(org.jgroups.protocols.FD_ALL)p; 18 } 19 20 public void attachProtocol(org.jgroups.stack.Protocol p) { 21 super.attachProtocol(p); 22 this.p=(org.jgroups.protocols.FD_ALL)p; 23 } 24 25 public int getHeartbeatsSent() { 26 return p.getHeartbeatsSent(); 27 } 28 29 public int getHeartbeatsReceived() { 30 return p.getHeartbeatsReceived(); 31 } 32 33 public int getSuspectEventsSent() { 34 return p.getSuspectEventsSent(); 35 } 36 37 public long getTimeout() { 38 return p.getTimeout(); 39 } 40 41 public void setTimeout(long timeout) { 42 p.setTimeout(timeout); 43 } 44 45 public long getInterval() { 46 return p.getInterval(); 47 } 48 49 public void setInterval(long interval) { 50 p.setInterval(interval); 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 boolean isRunning() { 62 return p.isRunning(); 63 } 64 65 public String getLocalAddress() { 66 return p.getLocalAddress(); 67 } 68 69 public String getMembers() { 70 return p.getMembers(); 71 } 72 73 public String printSuspectHistory() { 74 return p.printSuspectHistory(); 75 } 76 77 public String printTimestamps() { 78 return p.printTimestamps(); 79 } 80 } 81 | Popular Tags |