001: package org.jgroups.jmx.protocols.pbcast;
002:
003: import org.jgroups.jmx.Protocol;
004:
005: /**
006: * @author Bela Ban
007: * @version $Id: NAKACK.java,v 1.6 2005/11/08 11:08:32 belaban Exp $
008: */
009: public class NAKACK extends Protocol implements NAKACKMBean {
010: org.jgroups.protocols.pbcast.NAKACK p;
011:
012: public NAKACK() {
013: }
014:
015: public NAKACK(org.jgroups.stack.Protocol p) {
016: super (p);
017: this .p = (org.jgroups.protocols.pbcast.NAKACK) p;
018: }
019:
020: public void attachProtocol(org.jgroups.stack.Protocol p) {
021: super .attachProtocol(p);
022: this .p = (org.jgroups.protocols.pbcast.NAKACK) p;
023: }
024:
025: public int getGcLag() {
026: return p.getGcLag();
027: }
028:
029: public void setGcLag(int gc_lag) {
030: p.setGcLag(gc_lag);
031: }
032:
033: public boolean isUseMcastXmit() {
034: return p.isUseMcastXmit();
035: }
036:
037: public void setUseMcastXmit(boolean use_mcast_xmit) {
038: p.setUseMcastXmit(use_mcast_xmit);
039: }
040:
041: public boolean isXmitFromRandomMember() {
042: return p.isXmitFromRandomMember();
043: }
044:
045: public void setXmitFromRandomMember(boolean xmit_from_random_member) {
046: p.setXmitFromRandomMember(xmit_from_random_member);
047: }
048:
049: public boolean isDiscardDeliveredMsgs() {
050: return p.isDiscardDeliveredMsgs();
051: }
052:
053: public void setDiscardDeliveredMsgs(boolean discard_delivered_msgs) {
054: p.setDiscardDeliveredMsgs(discard_delivered_msgs);
055: }
056:
057: public int getMaxXmitBufSize() {
058: return p.getMaxXmitBufSize();
059: }
060:
061: public void setMaxXmitBufSize(int max_xmit_buf_size) {
062: p.setMaxXmitBufSize(max_xmit_buf_size);
063: }
064:
065: public long getMaxXmitSize() {
066: return p.getMaxXmitSize();
067: }
068:
069: public void setMaxXmitSize(long max_xmit_size) {
070: p.setMaxXmitSize(max_xmit_size);
071: }
072:
073: public long getXmitRequestsReceived() {
074: return p.getXmitRequestsReceived();
075: }
076:
077: public long getXmitRequestsSent() {
078: return p.getXmitRequestsSent();
079: }
080:
081: public long getXmitResponsesReceived() {
082: return p.getXmitResponsesReceived();
083: }
084:
085: public long getXmitResponsesSent() {
086: return p.getXmitResponsesSent();
087: }
088:
089: public long getMissingMessagesReceived() {
090: return p.getMissingMessagesReceived();
091: }
092:
093: public int getPendingRetransmissionRequests() {
094: return p.getPendingRetransmissionRequests();
095: }
096:
097: public int getSentTableSize() {
098: return p.getSentTableSize();
099: }
100:
101: public int getReceivedTableSize() {
102: return p.getReceivedTableSize();
103: }
104:
105: public String printSentMessages() {
106: return p.printSentMsgs();
107: }
108:
109: public String printMessages() {
110: return p.printMessages();
111: }
112:
113: }
|