KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jgroups.jmx.protocols;
2
3 import org.jgroups.stack.Protocol;
4 import org.jgroups.protocols.*;
5
6 /**
7  * @author Bela Ban
8  * @version $Id: STATS.java,v 1.1 2005/06/07 10:17:26 belaban Exp $
9  */

10 public class STATS extends org.jgroups.jmx.Protocol implements STATSMBean {
11     org.jgroups.protocols.STATS p;
12
13     public STATS() {
14     }
15
16     public STATS(Protocol p) {
17         super(p);
18         this.p=(org.jgroups.protocols.STATS)p;
19     }
20
21     public void attachProtocol(Protocol p) {
22         super.attachProtocol(p);
23         this.p=(org.jgroups.protocols.STATS)p;
24     }
25
26     public long getSentMessages() {
27         return p.getSentMessages();
28     }
29
30     public long getSentBytes() {
31         return p.getSentBytes();
32     }
33
34     public long getSentUnicastMessages() {
35         return p.getSentUnicastMessages();
36     }
37
38     public long getSentUnicastBytes() {
39         return p.getSentUnicastBytes();
40     }
41
42     public long getSentMcastMessages() {
43         return p.getSentMcastMessages();
44     }
45
46     public long getSentMcastBytes() {
47         return p.getSentMcastBytes();
48     }
49
50     public long getReceivedMessages() {
51         return p.getReceivedMessages();
52     }
53
54     public long getReceivedBytes() {
55         return p.getReceivedBytes();
56     }
57
58     public long getReceivedUnicastMessages() {
59         return p.getReceivedUnicastMessages();
60     }
61
62     public long getReceivedUnicastBytes() {
63         return p.getReceivedUnicastBytes();
64     }
65
66     public long getReceivedMcastMessages() {
67         return p.getReceivedMcastMessages();
68     }
69
70     public long getReceivedMcastBytes() {
71         return p.getReceivedMcastBytes();
72     }
73
74     public String JavaDoc printStats() {
75         return p.printStats();
76     }
77 }
78
Popular Tags