01: package org.jgroups.jmx.protocols;
02:
03: import org.jgroups.jmx.Protocol;
04:
05: /**
06: * @author Bela Ban
07: * @version $Id: UNICAST.java,v 1.7.10.2 2007/04/24 08:26:05 belaban Exp $
08: */
09: 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 getLocalAddress() {
26: return p.getLocalAddress();
27: }
28:
29: public String getMembers() {
30: return p.getMembers();
31: }
32:
33: public String printConnections() {
34: return p.printConnections();
35: }
36:
37: public long getMessagesSent() {
38: return p.getNumMessagesSent();
39: }
40:
41: public long getMessagesReceived() {
42: return p.getNumMessagesReceived();
43: }
44:
45: public long getBytesSent() {
46: return p.getNumBytesSent();
47: }
48:
49: public long getBytesReceived() {
50: return p.getNumBytesReceived();
51: }
52:
53: public long getAcksSent() {
54: return p.getNumAcksSent();
55: }
56:
57: public long getAcksReceived() {
58: return p.getNumAcksReceived();
59: }
60:
61: public long getXmitRequestsReceived() {
62: return p.getNumberOfRetransmitRequestsReceived();
63: }
64:
65: public int getNumUnackedMessages() {
66: return p.getNumberOfUnackedMessages();
67: }
68:
69: public String getUnackedMessages() {
70: return p.getUnackedMessages();
71: }
72:
73: public int getNumberOfMessagesInReceiveWindows() {
74: return p.getNumberOfMessagesInReceiveWindows();
75: }
76:
77: }
|