01: package org.jgroups.jmx.protocols;
02:
03: import org.jgroups.jmx.Protocol;
04:
05: import java.util.Map;
06:
07: /**
08: * @author Bela Ban
09: * @version $Id: SEQUENCER.java,v 1.1 2006/01/03 14:43:43 belaban Exp $
10: */
11: public class SEQUENCER extends Protocol implements SEQUENCERMBean {
12: org.jgroups.protocols.SEQUENCER p;
13:
14: public SEQUENCER() {
15: }
16:
17: public SEQUENCER(org.jgroups.stack.Protocol p) {
18: super (p);
19: this .p = (org.jgroups.protocols.SEQUENCER) p;
20: }
21:
22: public void attachProtocol(org.jgroups.stack.Protocol p) {
23: super .attachProtocol(p);
24: this .p = (org.jgroups.protocols.SEQUENCER) p;
25: }
26:
27: public boolean isCoord() {
28: return p.isCoordinator();
29: }
30:
31: public String getCoordinator() {
32: return p.getCoordinator().toString();
33: }
34:
35: public String getLocalAddress() {
36: return p.getLocalAddress().toString();
37: }
38:
39: public long getForwarded() {
40: return p.getForwarded();
41: }
42:
43: public long getBroadcast() {
44: return p.getBroadcast();
45: }
46:
47: public long getReceivedForwards() {
48: return p.getReceivedForwards();
49: }
50:
51: public long getReceivedBroadcasts() {
52: return p.getReceivedBroadcasts();
53: }
54:
55: public void resetStats() {
56: super .resetStats();
57: }
58:
59: public String printStats() {
60: return super .printStats();
61: }
62:
63: public Map dumpStats() {
64: return super.dumpStats();
65: }
66: }
|