org.jgroups.jmx.protocols
Class TP

java.lang.Object
  extended by org.jgroups.jmx.Protocol
      extended by 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

Constructor Summary
TP()
           
TP(Protocol p)
           
 
Method Summary
 void attachProtocol(Protocol p)
           
 java.lang.String getBindAddress()
           
 long getBytesReceived()
           
 long getBytesSent()
           
 java.lang.String getChannelName()
           
 int getIncomingQueueSize()
           
 Address getLocalAddress()
           
 int getMaxBundleSize()
           
 long getMaxBundleTimeout()
           
 long getMessagesReceived()
           
 long getMessagesSent()
           
 int getOutgoingQueueMaxSize()
           
 int getOutgoingQueueSize()
           
 java.util.List getReceiveInterfaces()
           
 java.util.List getSendInterfaces()
           
 boolean isDiscardIncompatiblePackets()
           
 boolean isEnableBundling()
           
 boolean isLoopback()
           
 boolean isReceiveOnAllInterfaces()
           
 boolean isSendOnAllInterfaces()
           
 boolean isUseIncomingPacketHandler()
           
 boolean isUseOutgoungPacketHandler()
           
 void setBindAddress(java.lang.String bind_address)
           
 void setDiscardIncompatiblePackets(boolean flag)
           
 void setEnableBundling(boolean flag)
           
 void setLoopback(boolean b)
           
 void setMaxBundleSize(int size)
           
 void setMaxBundleTimeout(long timeout)
           
 void setOutgoingQueueMaxSize(int new_size)
           
 
Methods inherited from class org.jgroups.jmx.Protocol
create, destroy, dumpStats, getDownThread, getName, getPropertiesAsString, getStatsEnabled, getUpThread, isTrace, isWarn, printStats, resetStats, setObserver, setProperties, setStatsEnabled, setTrace, setWarn, 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, isTrace, isWarn, printStats, resetStats, setObserver, setProperties, setStatsEnabled, setTrace, setWarn, start, stop
 

Constructor Detail

TP

public TP()

TP

public TP(Protocol p)
Method Detail

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-2005 Bela Ban. All Rights Reserved.