org.jgroups.jmx.protocols
Class TP
java.lang.Object
org.jgroups.jmx.Protocol
org.jgroups.jmx.protocols.TP
- All Implemented Interfaces:
- ProtocolMBean, TPMBean
- Direct Known Subclasses:
- TCP, UDP
public class TP
- extends Protocol
- implements TPMBean
- Version:
- $Id: TP.java,v 1.5 2005/11/09 17:42:25 belaban Exp $
- Author:
- Bela Ban
Methods inherited from class org.jgroups.jmx.Protocol |
create, destroy, dumpStats, getDownThread, getName, getPropertiesAsString, getStatsEnabled, getUpThread, printStats, resetStats, setObserver, setProperties, setStatsEnabled, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jgroups.jmx.ProtocolMBean |
create, destroy, dumpStats, getDownThread, getName, getPropertiesAsString, getStatsEnabled, getUpThread, printStats, resetStats, setObserver, setProperties, setStatsEnabled, start, stop |
TP
public TP()
TP
public TP(Protocol p)
attachProtocol
public void attachProtocol(Protocol p)
- Overrides:
attachProtocol
in class Protocol
getMessagesSent
public long getMessagesSent()
- Specified by:
getMessagesSent
in interface TPMBean
getMessagesReceived
public long getMessagesReceived()
- Specified by:
getMessagesReceived
in interface TPMBean
getBytesSent
public long getBytesSent()
- Specified by:
getBytesSent
in interface TPMBean
getBytesReceived
public long getBytesReceived()
- Specified by:
getBytesReceived
in interface TPMBean
getLocalAddress
public Address getLocalAddress()
- Specified by:
getLocalAddress
in interface TPMBean
getBindAddress
public java.lang.String getBindAddress()
- Specified by:
getBindAddress
in interface TPMBean
getChannelName
public java.lang.String getChannelName()
- Specified by:
getChannelName
in interface TPMBean
setBindAddress
public void setBindAddress(java.lang.String bind_address)
throws java.net.UnknownHostException
- Specified by:
setBindAddress
in interface TPMBean
- Throws:
java.net.UnknownHostException
isReceiveOnAllInterfaces
public boolean isReceiveOnAllInterfaces()
- Specified by:
isReceiveOnAllInterfaces
in interface TPMBean
getReceiveInterfaces
public java.util.List getReceiveInterfaces()
- Specified by:
getReceiveInterfaces
in interface TPMBean
isSendOnAllInterfaces
public boolean isSendOnAllInterfaces()
- Specified by:
isSendOnAllInterfaces
in interface TPMBean
getSendInterfaces
public java.util.List getSendInterfaces()
- Specified by:
getSendInterfaces
in interface TPMBean
isDiscardIncompatiblePackets
public boolean isDiscardIncompatiblePackets()
- Specified by:
isDiscardIncompatiblePackets
in interface TPMBean
setDiscardIncompatiblePackets
public void setDiscardIncompatiblePackets(boolean flag)
- Specified by:
setDiscardIncompatiblePackets
in interface TPMBean
isEnableBundling
public boolean isEnableBundling()
- Specified by:
isEnableBundling
in interface TPMBean
setEnableBundling
public void setEnableBundling(boolean flag)
- Specified by:
setEnableBundling
in interface TPMBean
getMaxBundleSize
public int getMaxBundleSize()
- Specified by:
getMaxBundleSize
in interface TPMBean
setMaxBundleSize
public void setMaxBundleSize(int size)
- Specified by:
setMaxBundleSize
in interface TPMBean
getMaxBundleTimeout
public long getMaxBundleTimeout()
- Specified by:
getMaxBundleTimeout
in interface TPMBean
setMaxBundleTimeout
public void setMaxBundleTimeout(long timeout)
- Specified by:
setMaxBundleTimeout
in interface TPMBean
getOutgoingQueueSize
public int getOutgoingQueueSize()
- Specified by:
getOutgoingQueueSize
in interface TPMBean
getOutgoingQueueMaxSize
public int getOutgoingQueueMaxSize()
- Specified by:
getOutgoingQueueMaxSize
in interface TPMBean
setOutgoingQueueMaxSize
public void setOutgoingQueueMaxSize(int new_size)
- Specified by:
setOutgoingQueueMaxSize
in interface TPMBean
getIncomingQueueSize
public int getIncomingQueueSize()
- Specified by:
getIncomingQueueSize
in interface TPMBean
isLoopback
public boolean isLoopback()
- Specified by:
isLoopback
in interface TPMBean
setLoopback
public void setLoopback(boolean b)
- Specified by:
setLoopback
in interface TPMBean
isUseIncomingPacketHandler
public boolean isUseIncomingPacketHandler()
- Specified by:
isUseIncomingPacketHandler
in interface TPMBean
isUseOutgoungPacketHandler
public boolean isUseOutgoungPacketHandler()
- Specified by:
isUseOutgoungPacketHandler
in interface TPMBean
Copyright ? 1998-2006 Bela Ban. All Rights Reserved.