|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.tribes.transport.ReceiverBase
public abstract class ReceiverBase
Title:
Description:
Company:
Field Summary | |
---|---|
protected static Log |
log
|
static int |
OPTION_DIRECT_BUFFER
|
Constructor Summary | |
---|---|
ReceiverBase()
|
Method Summary | |
---|---|
protected int |
bind(java.net.ServerSocket socket,
int portstart,
int retries)
recursive bind to find the next available port |
boolean |
doListen()
|
java.lang.String |
getAddress()
|
int |
getAutoBind()
|
java.net.InetAddress |
getBind()
|
boolean |
getDirect()
|
java.util.concurrent.ExecutorService |
getExecutor()
|
java.lang.String |
getHost()
String representation of the IPv4 or IPv6 address that this host is listening to. |
MessageListener |
getListener()
|
int |
getMaxTasks()
|
int |
getMaxThreads()
|
MessageListener |
getMessageListener()
Returns the message listener that is associated with this receiver |
int |
getMinTasks()
|
int |
getMinThreads()
|
boolean |
getOoBInline()
|
int |
getPort()
Returns the listening port |
int |
getRxBufSize()
|
int |
getSecurePort()
Returns the secure listening port |
long |
getSelectorTimeout()
|
boolean |
getSoKeepAlive()
|
boolean |
getSoLingerOn()
|
int |
getSoLingerTime()
|
boolean |
getSoReuseAddress()
|
int |
getSoTrafficClass()
|
RxTaskPool |
getTaskPool()
|
java.lang.String |
getTcpListenAddress()
Deprecated. use getAddress |
int |
getTcpListenPort()
Deprecated. use getPort |
boolean |
getTcpNoDelay()
|
long |
getTcpSelectorTimeout()
Deprecated. use getSelectorTimeout |
int |
getTcpThreadCount()
Deprecated. use getMinThreads()/getMaxThreads() |
int |
getTimeout()
|
int |
getTxBufSize()
|
boolean |
getUseBufferPool()
|
int |
getWorkerThreadOptions()
|
void |
heartbeat()
Heartbeat invokation for resources cleanup etc |
boolean |
isListening()
|
void |
messageDataReceived(ChannelMessage data)
This method is invoked on the callback object to notify it that new data has been received from one of the cluster nodes. |
void |
setAddress(java.lang.String host)
|
void |
setAutoBind(int autoBind)
|
void |
setBind(java.net.InetAddress bind)
|
void |
setDirect(boolean direct)
|
void |
setExecutor(java.util.concurrent.ExecutorService executor)
|
void |
setHost(java.lang.String host)
|
void |
setListen(boolean doListen)
|
void |
setListener(MessageListener listener)
|
void |
setLog(Log log)
|
void |
setMaxTasks(int maxTasks)
|
void |
setMaxThreads(int maxThreads)
|
void |
setMessageListener(MessageListener listener)
Sets the message listener to receive notification of incoming |
void |
setMinTasks(int minTasks)
|
void |
setMinThreads(int minThreads)
|
void |
setOoBInline(boolean ooBInline)
|
void |
setPool(RxTaskPool pool)
|
void |
setPort(int port)
|
void |
setRxBufSize(int rxBufSize)
|
void |
setSecurePort(int securePort)
|
void |
setSelectorTimeout(long selTimeout)
|
void |
setSoKeepAlive(boolean soKeepAlive)
|
void |
setSoLingerOn(boolean soLingerOn)
|
void |
setSoLingerTime(int soLingerTime)
|
void |
setSoReuseAddress(boolean soReuseAddress)
|
void |
setSoTrafficClass(int soTrafficClass)
|
void |
setTcpListenAddress(java.lang.String tcpListenHost)
Deprecated. use setAddress |
void |
setTcpListenPort(int tcpListenPort)
Deprecated. use setPort |
void |
setTcpNoDelay(boolean tcpNoDelay)
|
void |
setTcpSelectorTimeout(long selTimeout)
Deprecated. use setSelectorTimeout |
void |
setTcpThreadCount(int tcpThreadCount)
Deprecated. use setMaxThreads/setMinThreads |
void |
setTimeout(int timeout)
|
void |
setTxBufSize(int txBufSize)
|
void |
setUseBufferPool(boolean useBufferPool)
|
void |
start()
Start listening for incoming messages on the host/port |
void |
stop()
Stop listening for messages |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.catalina.tribes.transport.RxTaskPool.TaskCreator |
---|
createRxTask |
Field Detail |
---|
public static final int OPTION_DIRECT_BUFFER
protected static Log log
Constructor Detail |
---|
public ReceiverBase()
Method Detail |
---|
public void start() throws java.io.IOException
ChannelReceiver
start
in interface ChannelReceiver
java.io.IOException
public void stop()
ChannelReceiver
stop
in interface ChannelReceiver
public MessageListener getMessageListener()
ChannelReceiver
getMessageListener
in interface ChannelReceiver
MessageListener
public int getPort()
ChannelReceiver
getPort
in interface ChannelReceiver
public int getRxBufSize()
public int getTxBufSize()
public int getTcpThreadCount()
public void setMessageListener(MessageListener listener)
ChannelReceiver
setMessageListener
in interface ChannelReceiver
listener
- MessageListenerMessageListener
public void setTcpListenPort(int tcpListenPort)
tcpListenPort
- intpublic void setTcpListenAddress(java.lang.String tcpListenHost)
tcpListenHost
- Stringpublic void setRxBufSize(int rxBufSize)
public void setTxBufSize(int txBufSize)
public void setTcpThreadCount(int tcpThreadCount)
tcpThreadCount
- intpublic java.net.InetAddress getBind()
protected int bind(java.net.ServerSocket socket, int portstart, int retries) throws java.io.IOException
socket
- ServerSocketportstart
- intretries
- int
java.io.IOException
public void messageDataReceived(ChannelMessage data)
ListenCallback
messageDataReceived
in interface ListenCallback
data
- - the message bytes received from the cluster/replication systempublic int getWorkerThreadOptions()
public void setBind(java.net.InetAddress bind)
bind
- The bind to set.public int getTcpListenPort()
public boolean getDirect()
public void setDirect(boolean direct)
public java.lang.String getAddress()
public java.lang.String getHost()
ChannelReceiver
getHost
in interface ChannelReceiver
public long getSelectorTimeout()
public long getTcpSelectorTimeout()
public boolean doListen()
public MessageListener getListener()
public RxTaskPool getTaskPool()
public java.lang.String getTcpListenAddress()
public int getAutoBind()
public int getMaxThreads()
public int getMinThreads()
public boolean getTcpNoDelay()
public boolean getSoKeepAlive()
public boolean getOoBInline()
public boolean getSoLingerOn()
public int getSoLingerTime()
public boolean getSoReuseAddress()
public int getSoTrafficClass()
public int getTimeout()
public boolean getUseBufferPool()
public int getSecurePort()
ChannelReceiver
getSecurePort
in interface ChannelReceiver
public int getMinTasks()
public int getMaxTasks()
public java.util.concurrent.ExecutorService getExecutor()
public boolean isListening()
public void setTcpSelectorTimeout(long selTimeout)
selTimeout
- longpublic void setSelectorTimeout(long selTimeout)
public void setListen(boolean doListen)
public void setAddress(java.lang.String host)
public void setHost(java.lang.String host)
public void setListener(MessageListener listener)
public void setLog(Log log)
public void setPool(RxTaskPool pool)
public void setPort(int port)
public void setAutoBind(int autoBind)
public void setMaxThreads(int maxThreads)
public void setMinThreads(int minThreads)
public void setTcpNoDelay(boolean tcpNoDelay)
public void setSoKeepAlive(boolean soKeepAlive)
public void setOoBInline(boolean ooBInline)
public void setSoLingerOn(boolean soLingerOn)
public void setSoLingerTime(int soLingerTime)
public void setSoReuseAddress(boolean soReuseAddress)
public void setSoTrafficClass(int soTrafficClass)
public void setTimeout(int timeout)
public void setUseBufferPool(boolean useBufferPool)
public void setSecurePort(int securePort)
public void setMinTasks(int minTasks)
public void setMaxTasks(int maxTasks)
public void setExecutor(java.util.concurrent.ExecutorService executor)
public void heartbeat()
Heartbeat
heartbeat
in interface Heartbeat
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |