Package org.jgroups.jmx.protocols
Class TP
java.lang.Object
org.jgroups.jmx.Protocol
org.jgroups.jmx.protocols.TP
- All Implemented Interfaces:
ProtocolMBean
,TPMBean
- Version:
- $Id: TP.java,v 1.12 2006/12/31 14:23:29 belaban Exp $
- Author:
- Bela Ban
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
long
long
long
int
int
long
int
int
int
int
long
long
long
long
int
int
long
int
int
int
boolean
boolean
boolean
boolean
boolean
boolean
void
setBindAddress
(String bind_address) void
setDiscardIncompatiblePackets
(boolean flag) void
setEnableBundling
(boolean flag) void
setIncomingKeepAliveTime
(long time) void
setIncomingMaxPoolSize
(int size) void
setIncomingMinPoolSize
(int size) void
setLoopback
(boolean b) void
setMaxBundleSize
(int size) void
setMaxBundleTimeout
(long timeout) void
setOOBKeepAliveTime
(long time) void
setOOBMaxPoolSize
(int size) void
setOOBMinPoolSize
(int size) Methods inherited from class org.jgroups.jmx.Protocol
create, destroy, dumpStats, getName, getPropertiesAsString, getStatsEnabled, printStats, resetStats, 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, getName, getPropertiesAsString, getStatsEnabled, printStats, resetStats, setProperties, setStatsEnabled, start, stop
-
Constructor Details
-
TP
public TP() -
TP
-
-
Method Details
-
attachProtocol
- Overrides:
attachProtocol
in classProtocol
-
getMessagesSent
public long getMessagesSent()- Specified by:
getMessagesSent
in interfaceTPMBean
-
getMessagesReceived
public long getMessagesReceived()- Specified by:
getMessagesReceived
in interfaceTPMBean
-
getBytesSent
public long getBytesSent()- Specified by:
getBytesSent
in interfaceTPMBean
-
getBytesReceived
public long getBytesReceived()- Specified by:
getBytesReceived
in interfaceTPMBean
-
getLocalAddress
- Specified by:
getLocalAddress
in interfaceTPMBean
-
getBindAddress
- Specified by:
getBindAddress
in interfaceTPMBean
-
getChannelName
- Specified by:
getChannelName
in interfaceTPMBean
-
setBindAddress
- Specified by:
setBindAddress
in interfaceTPMBean
- Throws:
UnknownHostException
-
isReceiveOnAllInterfaces
public boolean isReceiveOnAllInterfaces()- Specified by:
isReceiveOnAllInterfaces
in interfaceTPMBean
-
getReceiveInterfaces
- Specified by:
getReceiveInterfaces
in interfaceTPMBean
-
isSendOnAllInterfaces
public boolean isSendOnAllInterfaces()- Specified by:
isSendOnAllInterfaces
in interfaceTPMBean
-
getSendInterfaces
- Specified by:
getSendInterfaces
in interfaceTPMBean
-
isDiscardIncompatiblePackets
public boolean isDiscardIncompatiblePackets()- Specified by:
isDiscardIncompatiblePackets
in interfaceTPMBean
-
setDiscardIncompatiblePackets
public void setDiscardIncompatiblePackets(boolean flag) - Specified by:
setDiscardIncompatiblePackets
in interfaceTPMBean
-
isEnableBundling
public boolean isEnableBundling()- Specified by:
isEnableBundling
in interfaceTPMBean
-
setEnableBundling
public void setEnableBundling(boolean flag) - Specified by:
setEnableBundling
in interfaceTPMBean
-
getMaxBundleSize
public int getMaxBundleSize()- Specified by:
getMaxBundleSize
in interfaceTPMBean
-
setMaxBundleSize
public void setMaxBundleSize(int size) - Specified by:
setMaxBundleSize
in interfaceTPMBean
-
getMaxBundleTimeout
public long getMaxBundleTimeout()- Specified by:
getMaxBundleTimeout
in interfaceTPMBean
-
setMaxBundleTimeout
public void setMaxBundleTimeout(long timeout) - Specified by:
setMaxBundleTimeout
in interfaceTPMBean
-
isLoopback
public boolean isLoopback()- Specified by:
isLoopback
in interfaceTPMBean
-
setLoopback
public void setLoopback(boolean b) - Specified by:
setLoopback
in interfaceTPMBean
-
isUseIncomingPacketHandler
public boolean isUseIncomingPacketHandler()- Specified by:
isUseIncomingPacketHandler
in interfaceTPMBean
-
getOOBMinPoolSize
public int getOOBMinPoolSize()- Specified by:
getOOBMinPoolSize
in interfaceTPMBean
-
setOOBMinPoolSize
public void setOOBMinPoolSize(int size) - Specified by:
setOOBMinPoolSize
in interfaceTPMBean
-
getOOBMaxPoolSize
public int getOOBMaxPoolSize()- Specified by:
getOOBMaxPoolSize
in interfaceTPMBean
-
setOOBMaxPoolSize
public void setOOBMaxPoolSize(int size) - Specified by:
setOOBMaxPoolSize
in interfaceTPMBean
-
getOOBPoolSize
public int getOOBPoolSize()- Specified by:
getOOBPoolSize
in interfaceTPMBean
-
getOOBKeepAliveTime
public long getOOBKeepAliveTime()- Specified by:
getOOBKeepAliveTime
in interfaceTPMBean
-
setOOBKeepAliveTime
public void setOOBKeepAliveTime(long time) - Specified by:
setOOBKeepAliveTime
in interfaceTPMBean
-
getOOBMessages
public long getOOBMessages()- Specified by:
getOOBMessages
in interfaceTPMBean
-
getOOBQueueSize
public int getOOBQueueSize()- Specified by:
getOOBQueueSize
in interfaceTPMBean
-
getOOBMaxQueueSize
public int getOOBMaxQueueSize()- Specified by:
getOOBMaxQueueSize
in interfaceTPMBean
-
getIncomingMinPoolSize
public int getIncomingMinPoolSize()- Specified by:
getIncomingMinPoolSize
in interfaceTPMBean
-
setIncomingMinPoolSize
public void setIncomingMinPoolSize(int size) - Specified by:
setIncomingMinPoolSize
in interfaceTPMBean
-
getIncomingMaxPoolSize
public int getIncomingMaxPoolSize()- Specified by:
getIncomingMaxPoolSize
in interfaceTPMBean
-
setIncomingMaxPoolSize
public void setIncomingMaxPoolSize(int size) - Specified by:
setIncomingMaxPoolSize
in interfaceTPMBean
-
getIncomingPoolSize
public int getIncomingPoolSize()- Specified by:
getIncomingPoolSize
in interfaceTPMBean
-
getIncomingKeepAliveTime
public long getIncomingKeepAliveTime()- Specified by:
getIncomingKeepAliveTime
in interfaceTPMBean
-
setIncomingKeepAliveTime
public void setIncomingKeepAliveTime(long time) - Specified by:
setIncomingKeepAliveTime
in interfaceTPMBean
-
getIncomingMessages
public long getIncomingMessages()- Specified by:
getIncomingMessages
in interfaceTPMBean
-
getIncomingQueueSize
public int getIncomingQueueSize()- Specified by:
getIncomingQueueSize
in interfaceTPMBean
-
getIncomingMaxQueueSize
public int getIncomingMaxQueueSize()- Specified by:
getIncomingMaxQueueSize
in interfaceTPMBean
-