tp.java
来自「JGRoups源码」· Java 代码 · 共 143 行
JAVA
143 行
package org.jgroups.jmx.protocols;import org.jgroups.stack.Protocol;import org.jgroups.Address;import java.net.UnknownHostException;import java.util.List;/** * @author Bela Ban * @version $Id: TP.java,v 1.5 2005/11/09 17:42:25 belaban Exp $ */public class TP extends org.jgroups.jmx.Protocol implements TPMBean { org.jgroups.protocols.TP tp; public TP() { } public TP(Protocol p) { super(p); tp=(org.jgroups.protocols.TP)p; } public void attachProtocol(Protocol p) { super.attachProtocol(p); tp=(org.jgroups.protocols.TP)p; } public long getMessagesSent() { return tp.getNumMessagesSent(); } public long getMessagesReceived() { return tp.getNumMessagesReceived(); } public long getBytesSent() { return tp.getNumBytesSent(); } public long getBytesReceived() { return tp.getNumBytesReceived(); } public Address getLocalAddress() { return tp.getLocalAddress(); } public String getBindAddress() { return tp.getBindAddress(); } public String getChannelName() { return tp.getChannelName(); } public void setBindAddress(String bind_address) throws UnknownHostException { tp.setBindAddress(bind_address); } public boolean isReceiveOnAllInterfaces() { return tp.isReceiveOnAllInterfaces(); } public List getReceiveInterfaces() { return tp.getReceiveInterfaces(); } public boolean isSendOnAllInterfaces() { return tp.isSendOnAllInterfaces(); } public List getSendInterfaces() { return tp.getSendInterfaces(); } public boolean isDiscardIncompatiblePackets() { return tp.isDiscardIncompatiblePackets(); } public void setDiscardIncompatiblePackets(boolean flag) { tp.setDiscardIncompatiblePackets(flag); } public boolean isEnableBundling() { return tp.isEnableBundling(); } public void setEnableBundling(boolean flag) { tp.setEnableBundling(flag); } public int getMaxBundleSize() { return tp.getMaxBundleSize(); } public void setMaxBundleSize(int size) { tp.setMaxBundleSize(size); } public long getMaxBundleTimeout() { return tp.getMaxBundleTimeout(); } public void setMaxBundleTimeout(long timeout) { tp.setMaxBundleTimeout(timeout); } public int getOutgoingQueueSize() { return tp.getOutgoingQueueSize(); } public int getOutgoingQueueMaxSize() { return tp.getOutgoingQueueMaxSize(); } public void setOutgoingQueueMaxSize(int new_size) { tp.setOutgoingQueueMaxSize(new_size); } public int getIncomingQueueSize() { return tp.getIncomingQueueSize(); } public boolean isLoopback() { return tp.isLoopback(); } public void setLoopback(boolean b) { tp.setLoopback(b); } public boolean isUseIncomingPacketHandler() { return tp.isUseIncomingPacketHandler(); } public boolean isUseOutgoungPacketHandler() { return tp.isUseOutgoingPacketHandler(); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?