KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jgroups.jmx.protocols;
2
3 import java.net.InetAddress JavaDoc;
4 import java.net.NetworkInterface JavaDoc;
5 import java.util.List JavaDoc;
6
7 /**
8  * @author Bela Ban
9  * @version $Id: MPING.java,v 1.2 2007/07/02 11:16:07 belaban Exp $
10  */

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 JavaDoc getBindAddr() {
28         return mping.getBindAddr();
29     }
30
31     public void setBindAddr(InetAddress JavaDoc bind_addr) {
32         mping.setBindAddr(bind_addr);
33     }
34
35
36     public List JavaDoc<NetworkInterface JavaDoc> getReceiveInterfaces() {
37         return mping.getReceiveInterfaces();
38     }
39
40     public List JavaDoc<NetworkInterface JavaDoc> 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 JavaDoc getMcastAddr() {
61         return mping.getMcastAddr();
62     }
63
64     public void setMcastAddr(InetAddress JavaDoc 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