1 package org.jgroups.jmx.protocols; 2 3 import org.jgroups.jmx.Protocol; 4 5 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 |