KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jgroups.jmx.protocols;
2
3 import org.jgroups.jmx.Protocol;
4
5 /**
6  * @author Bela Ban
7  * @version $Id: FRAG.java,v 1.1 2005/06/13 14:29:28 belaban Exp $
8  */

9 public class FRAG extends Protocol implements FRAGMBean {
10     org.jgroups.protocols.FRAG p;
11
12     public FRAG() {
13     }
14
15     public FRAG(org.jgroups.stack.Protocol p) {
16         super(p);
17         this.p=(org.jgroups.protocols.FRAG)p;
18     }
19
20     public void attachProtocol(org.jgroups.stack.Protocol p) {
21         super.attachProtocol(p);
22         this.p=(org.jgroups.protocols.FRAG)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 long getNumberOfSentMessages() {
34         return p.getNumberOfSentMessages();
35     }
36
37     public long getNumberOfSentFragments() {
38         return p.getNumberOfSentFragments();
39     }
40
41     public long getNumberOfReceivedMessages() {
42         return p.getNumberOfReceivedMessages();
43     }
44
45     public long getNumberOfReceivedFragments() {
46         return p.getNumberOfReceivedFragments();
47     }
48 }
49
Popular Tags