01: package org.jgroups.jmx.protocols;
02:
03: import org.jgroups.jmx.Protocol;
04:
05: /**
06: * @author Bela Ban
07: * @version $Id: FRAG2.java,v 1.1 2005/06/13 14:53:48 belaban Exp $
08: */
09: public class FRAG2 extends Protocol implements FRAG2MBean {
10: org.jgroups.protocols.FRAG2 p;
11:
12: public FRAG2() {
13: }
14:
15: public FRAG2(org.jgroups.stack.Protocol p) {
16: super (p);
17: this .p = (org.jgroups.protocols.FRAG2) p;
18: }
19:
20: public void attachProtocol(org.jgroups.stack.Protocol p) {
21: super .attachProtocol(p);
22: this .p = (org.jgroups.protocols.FRAG2) p;
23: }
24:
25: public int getFragSize() {
26: return p.getFragSize();
27: }
28:
29: public void setFragSize(int s) {
30: p.setFragSize(s);
31: }
32:
33: public int getOverhead() {
34: return p.getOverhead();
35: }
36:
37: public void setOverhead(int o) {
38: p.setOverhead(o);
39: }
40:
41: public long getNumberOfSentMessages() {
42: return p.getNumberOfSentMessages();
43: }
44:
45: public long getNumberOfSentFragments() {
46: return p.getNumberOfSentFragments();
47: }
48:
49: public long getNumberOfReceivedMessages() {
50: return p.getNumberOfReceivedMessages();
51: }
52:
53: public long getNumberOfReceivedFragments() {
54: return p.getNumberOfReceivedFragments();
55: }
56: }
|