01: package org.jgroups.jmx.protocols;
02:
03: import java.net.InetAddress;
04:
05: /**
06: * @author Bela Ban
07: * @version $Id: MPING.java,v 1.1 2005/06/14 10:10:10 belaban Exp $
08: */
09: public class MPING extends PING implements MPINGMBean {
10: org.jgroups.protocols.MPING mping;
11:
12: public MPING() {
13: }
14:
15: public MPING(org.jgroups.stack.Protocol p) {
16: super (p);
17: this .mping = (org.jgroups.protocols.MPING) p;
18: }
19:
20: public void attachProtocol(org.jgroups.stack.Protocol p) {
21: super .attachProtocol(p);
22: this .mping = (org.jgroups.protocols.MPING) p;
23: }
24:
25: public InetAddress getBindAddr() {
26: return mping.getBindAddr();
27: }
28:
29: public void setBindAddr(InetAddress bind_addr) {
30: mping.setBindAddr(bind_addr);
31: }
32:
33: public boolean isBindToAllInterfaces() {
34: return mping.isBindToAllInterfaces();
35: }
36:
37: public void setBindToAllInterfaces(boolean bind_to_all_interfaces) {
38: mping.setBindToAllInterfaces(bind_to_all_interfaces);
39: }
40:
41: public int getTTL() {
42: return mping.getTTL();
43: }
44:
45: public void setTTL(int ip_ttl) {
46: mping.setTTL(ip_ttl);
47: }
48:
49: public InetAddress getMcastAddr() {
50: return mping.getMcastAddr();
51: }
52:
53: public void setMcastAddr(InetAddress mcast_addr) {
54: mping.setMcastAddr(mcast_addr);
55: }
56:
57: public int getMcastPort() {
58: return mping.getMcastPort();
59: }
60:
61: public void setMcastPort(int mcast_port) {
62: mping.setMcastPort(mcast_port);
63: }
64:
65: }
|