1 package org.jgroups.jmx.protocols; 2 3 import java.net.InetAddress ; 4 import java.net.NetworkInterface ; 5 import java.util.List ; 6 7 11 public class MPING extends PING implements MPINGMBean { 12 org.jgroups.protocols.MPING mping; 13 14 public MPING() { 15 } 16 17 public MPING(org.jgroups.stack.Protocol p) { 18 super(p); 19 this.mping=(org.jgroups.protocols.MPING)p; 20 } 21 22 public void attachProtocol(org.jgroups.stack.Protocol p) { 23 super.attachProtocol(p); 24 this.mping=(org.jgroups.protocols.MPING)p; 25 } 26 27 public InetAddress getBindAddr() { 28 return mping.getBindAddr(); 29 } 30 31 public void setBindAddr(InetAddress bind_addr) { 32 mping.setBindAddr(bind_addr); 33 } 34 35 36 public List <NetworkInterface > getReceiveInterfaces() { 37 return mping.getReceiveInterfaces(); 38 } 39 40 public List <NetworkInterface > getSendInterfaces() { 41 return mping.getSendInterfaces(); 42 } 43 44 public boolean isReceiveOnAllInterfaces() { 45 return mping.isReceiveOnAllInterfaces(); 46 } 47 48 public boolean isSendOnAllInterfaces() { 49 return mping.isSendOnAllInterfaces(); 50 } 51 52 public int getTTL() { 53 return mping.getTTL(); 54 } 55 56 public void setTTL(int ip_ttl) { 57 mping.setTTL(ip_ttl); 58 } 59 60 public InetAddress getMcastAddr() { 61 return mping.getMcastAddr(); 62 } 63 64 public void setMcastAddr(InetAddress mcast_addr) { 65 mping.setMcastAddr(mcast_addr); 66 } 67 68 public int getMcastPort() { 69 return mping.getMcastPort(); 70 } 71 72 public void setMcastPort(int mcast_port) { 73 mping.setMcastPort(mcast_port); 74 } 75 76 } 77 | Popular Tags |