01: package org.jgroups.jmx.protocols.pbcast;
02:
03: import org.jgroups.jmx.Protocol;
04:
05: /**
06: * @author Vladimir Blagojevic
07: * @version $Id$
08: */
09: public class STREAMING_STATE_TRANSFER extends Protocol implements
10: STREAMING_STATE_TRANSFERMBean {
11: org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER p;
12:
13: public STREAMING_STATE_TRANSFER() {
14: }
15:
16: public STREAMING_STATE_TRANSFER(org.jgroups.stack.Protocol p) {
17: super (p);
18: this .p = (org.jgroups.protocols.pbcast.STREAMING_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.STREAMING_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: }
|