01: package org.jgroups.jmx.protocols;
02:
03: import org.jgroups.stack.Protocol;
04: import org.jgroups.protocols.*;
05:
06: /**
07: * @author Bela Ban
08: * @version $Id: STATS.java,v 1.1 2005/06/07 10:17:26 belaban Exp $
09: */
10: public class STATS extends org.jgroups.jmx.Protocol implements
11: STATSMBean {
12: org.jgroups.protocols.STATS p;
13:
14: public STATS() {
15: }
16:
17: public STATS(Protocol p) {
18: super (p);
19: this .p = (org.jgroups.protocols.STATS) p;
20: }
21:
22: public void attachProtocol(Protocol p) {
23: super .attachProtocol(p);
24: this .p = (org.jgroups.protocols.STATS) p;
25: }
26:
27: public long getSentMessages() {
28: return p.getSentMessages();
29: }
30:
31: public long getSentBytes() {
32: return p.getSentBytes();
33: }
34:
35: public long getSentUnicastMessages() {
36: return p.getSentUnicastMessages();
37: }
38:
39: public long getSentUnicastBytes() {
40: return p.getSentUnicastBytes();
41: }
42:
43: public long getSentMcastMessages() {
44: return p.getSentMcastMessages();
45: }
46:
47: public long getSentMcastBytes() {
48: return p.getSentMcastBytes();
49: }
50:
51: public long getReceivedMessages() {
52: return p.getReceivedMessages();
53: }
54:
55: public long getReceivedBytes() {
56: return p.getReceivedBytes();
57: }
58:
59: public long getReceivedUnicastMessages() {
60: return p.getReceivedUnicastMessages();
61: }
62:
63: public long getReceivedUnicastBytes() {
64: return p.getReceivedUnicastBytes();
65: }
66:
67: public long getReceivedMcastMessages() {
68: return p.getReceivedMcastMessages();
69: }
70:
71: public long getReceivedMcastBytes() {
72: return p.getReceivedMcastBytes();
73: }
74:
75: public String printStats() {
76: return p.printStats();
77: }
78: }
|