org.jgroups.jmx.protocols

Class TP

Implemented Interfaces:
ProtocolMBean, TPMBean
Known Direct 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)
String
getBindAddress()
long
getBytesReceived()
long
getBytesSent()
String
getChannelName()
int
getIncomingQueueSize()
Address
getLocalAddress()
int
getMaxBundleSize()
long
getMaxBundleTimeout()
long
getMessagesReceived()
long
getMessagesSent()
int
getOutgoingQueueMaxSize()
int
getOutgoingQueueSize()
List
getReceiveInterfaces()
List
getSendInterfaces()
boolean
isDiscardIncompatiblePackets()
boolean
isEnableBundling()
boolean
isLoopback()
boolean
isReceiveOnAllInterfaces()
boolean
isSendOnAllInterfaces()
boolean
isUseIncomingPacketHandler()
boolean
isUseOutgoungPacketHandler()
void
setBindAddress(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

attachProtocol, create, destroy, dumpStats, getDownThread, getName, getPropertiesAsString, getStatsEnabled, getUpThread, isTrace, isWarn, printStats, resetStats, setObserver, setProperties, setStatsEnabled, setTrace, setWarn, start, stop

Constructor Details

TP

public TP()

TP

public TP(Protocol p)

Method Details

attachProtocol

public void attachProtocol(Protocol p)
Overrides:
attachProtocol in interface Protocol

getBindAddress

public String getBindAddress()
Specified by:
getBindAddress in interface TPMBean

getBytesReceived

public long getBytesReceived()
Specified by:
getBytesReceived in interface TPMBean

getBytesSent

public long getBytesSent()
Specified by:
getBytesSent in interface TPMBean

getChannelName

public String getChannelName()
Specified by:
getChannelName in interface TPMBean

getIncomingQueueSize

public int getIncomingQueueSize()
Specified by:
getIncomingQueueSize in interface TPMBean

getLocalAddress

public Address getLocalAddress()
Specified by:
getLocalAddress in interface TPMBean

getMaxBundleSize

public int getMaxBundleSize()
Specified by:
getMaxBundleSize in interface TPMBean

getMaxBundleTimeout

public long getMaxBundleTimeout()
Specified by:
getMaxBundleTimeout in interface TPMBean

getMessagesReceived

public long getMessagesReceived()
Specified by:
getMessagesReceived in interface TPMBean

getMessagesSent

public long getMessagesSent()
Specified by:
getMessagesSent in interface TPMBean

getOutgoingQueueMaxSize

public int getOutgoingQueueMaxSize()
Specified by:
getOutgoingQueueMaxSize in interface TPMBean

getOutgoingQueueSize

public int getOutgoingQueueSize()
Specified by:
getOutgoingQueueSize in interface TPMBean

getReceiveInterfaces

public List getReceiveInterfaces()
Specified by:
getReceiveInterfaces in interface TPMBean

getSendInterfaces

public List getSendInterfaces()
Specified by:
getSendInterfaces in interface TPMBean

isDiscardIncompatiblePackets

public boolean isDiscardIncompatiblePackets()
Specified by:
isDiscardIncompatiblePackets in interface TPMBean

isEnableBundling

public boolean isEnableBundling()
Specified by:
isEnableBundling in interface TPMBean

isLoopback

public boolean isLoopback()
Specified by:
isLoopback in interface TPMBean

isReceiveOnAllInterfaces

public boolean isReceiveOnAllInterfaces()
Specified by:
isReceiveOnAllInterfaces in interface TPMBean

isSendOnAllInterfaces

public boolean isSendOnAllInterfaces()
Specified by:
isSendOnAllInterfaces in interface TPMBean

isUseIncomingPacketHandler

public boolean isUseIncomingPacketHandler()
Specified by:
isUseIncomingPacketHandler in interface TPMBean

isUseOutgoungPacketHandler

public boolean isUseOutgoungPacketHandler()
Specified by:
isUseOutgoungPacketHandler in interface TPMBean

setBindAddress

public void setBindAddress(String bind_address)
            throws UnknownHostException
Specified by:
setBindAddress in interface TPMBean

setDiscardIncompatiblePackets

public void setDiscardIncompatiblePackets(boolean flag)
Specified by:
setDiscardIncompatiblePackets in interface TPMBean

setEnableBundling

public void setEnableBundling(boolean flag)
Specified by:
setEnableBundling in interface TPMBean

setLoopback

public void setLoopback(boolean b)
Specified by:
setLoopback in interface TPMBean

setMaxBundleSize

public void setMaxBundleSize(int size)
Specified by:
setMaxBundleSize in interface TPMBean

setMaxBundleTimeout

public void setMaxBundleTimeout(long timeout)
Specified by:
setMaxBundleTimeout in interface TPMBean

setOutgoingQueueMaxSize

public void setOutgoingQueueMaxSize(int new_size)
Specified by:
setOutgoingQueueMaxSize in interface TPMBean

Copyright B) 1998-2005 Bela Ban. All Rights Reserved.