01: package org.jgroups.jmx.protocols.pbcast;
02:
03: import org.jgroups.jmx.Protocol;
04:
05: /**
06: * @author Bela Ban
07: * @version $Id: STATE_TRANSFER.java,v 1.1 2005/06/14 08:36:50 belaban Exp $
08: */
09: public class STATE_TRANSFER extends Protocol implements
10: STATE_TRANSFERMBean {
11: org.jgroups.protocols.pbcast.STATE_TRANSFER p;
12:
13: public STATE_TRANSFER() {
14: }
15:
16: public STATE_TRANSFER(org.jgroups.stack.Protocol p) {
17: super (p);
18: this .p = (org.jgroups.protocols.pbcast.STATE_TRANSFER) p;
19: }
20:
21: public void attachProtocol(org.jgroups.stack.Protocol p) {
22: super .attachProtocol(p);
23: this .p = (org.jgroups.protocols.pbcast.STATE_TRANSFER) p;
24: }
25:
26: public int getNumberOfStateRequests() {
27: return p.getNumberOfStateRequests();
28: }
29:
30: public long getNumberOfStateBytesSent() {
31: return p.getNumberOfStateBytesSent();
32: }
33:
34: public double getAverageStateSize() {
35: return p.getAverageStateSize();
36: }
37: }
|