KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jgroups.jmx.protocols;
2
3 import org.jgroups.jmx.Protocol;
4
5 /**
6  * @author Bela Ban
7  * @version $Id: UNICAST.java,v 1.8 2007/04/27 11:06:11 belaban Exp $
8  */

9 public class UNICAST extends Protocol implements UNICASTMBean {
10     org.jgroups.protocols.UNICAST p;
11
12     public UNICAST() {
13     }
14
15     public UNICAST(org.jgroups.stack.Protocol p) {
16         super(p);
17         this.p=(org.jgroups.protocols.UNICAST)p;
18     }
19
20     public void attachProtocol(org.jgroups.stack.Protocol p) {
21         super.attachProtocol(p);
22         this.p=(org.jgroups.protocols.UNICAST)p;
23     }
24
25     public String JavaDoc getLocalAddress() {
26         return p.getLocalAddress();
27     }
28
29     public String JavaDoc getMembers() {
30         return p.getMembers();
31     }
32
33
34     public String JavaDoc printConnections() {
35         return p.printConnections();
36     }
37
38     public long getMessagesSent() {
39         return p.getNumMessagesSent();
40     }
41
42     public long getMessagesReceived() {
43         return p.getNumMessagesReceived();
44     }
45
46     public long getBytesSent() {
47         return p.getNumBytesSent();
48     }
49
50     public long getBytesReceived() {
51         return p.getNumBytesReceived();
52     }
53
54     public long getAcksSent() {
55         return p.getNumAcksSent();
56     }
57
58     public long getAcksReceived() {
59         return p.getNumAcksReceived();
60     }
61
62     public long getXmitRequestsReceived() {
63         return p.getNumberOfRetransmitRequestsReceived();
64     }
65
66     public int getNumUnackedMessages() {
67         return p.getNumberOfUnackedMessages();
68     }
69
70     public String JavaDoc getUnackedMessages() {
71         return p.getUnackedMessages();
72 }
73
74     public int getNumberOfMessagesInReceiveWindows() {
75         return p.getNumberOfMessagesInReceiveWindows();
76     }
77
78 }
79
Popular Tags