| java.lang.Object org.jgroups.blocks.BasicConnectionTable
All known Subclasses: org.jgroups.blocks.ConnectionTableNIO, org.jgroups.blocks.ConnectionTable, org.jgroups.protocols.TCP_NIO,
BasicConnectionTable | abstract public class BasicConnectionTable (Code) | | Shared class for TCP connection tables.
author: Scott Marlow |
Inner Class :public interface Receiver | |
Inner Class :public interface ConnectionListener | |
Inner Class :class Connection implements Runnable | |
Inner Class :class Reaper implements Runnable | |
MAX_JOIN_TIMEOUT | final static long MAX_JOIN_TIMEOUT(Code) | | |
backlog | final static int backlog(Code) | | |
conn_expire_time | long conn_expire_time(Code) | | |
cookie | final byte[] cookie(Code) | | |
external_addr | InetAddress external_addr(Code) | | The address which will be broadcast to the group (the externally visible address which this host should
be contacted on). If external_addr is null, it will default to the same address that the server socket is bound to.
|
log | final protected Log log(Code) | | |
reaper_interval | long reaper_interval(Code) | | |
receiver | Receiver receiver(Code) | | |
recv_buf_size | int recv_buf_size(Code) | | |
reuse_addr | boolean reuse_addr(Code) | | |
send_buf_size | int send_buf_size(Code) | | |
sock_conn_timeout | int sock_conn_timeout(Code) | | |
tcp_nodelay | boolean tcp_nodelay(Code) | | |
use_reaper | boolean use_reaper(Code) | | |
use_send_queues | boolean use_send_queues(Code) | | |
addConnection | void addConnection(Address peer, Connection c)(Code) | | |
addConnectionListener | public void addConnectionListener(ConnectionListener l)(Code) | | |
getLinger | public int getLinger()(Code) | | |
getNumConnections | public int getNumConnections()(Code) | | |
getReceiveBufferSize | public int getReceiveBufferSize()(Code) | | |
getSendBufferSize | public int getSendBufferSize()(Code) | | |
getSocketConnectionTimeout | public int getSocketConnectionTimeout()(Code) | | |
getTcpNodelay | public boolean getTcpNodelay()(Code) | | |
getUseSendQueues | public boolean getUseSendQueues()(Code) | | |
notifyConnectionClosed | void notifyConnectionClosed(Address peer)(Code) | | |
notifyConnectionOpened | void notifyConnectionOpened(Address peer)(Code) | | |
receive | public void receive(Address sender, byte[] data, int offset, int length)(Code) | | Calls the receiver callback. We serialize access to this method because it may be called concurrently
by several Connection handler threads. Therefore the receiver doesn't need to synchronize.
|
remove | public void remove(Address addr)(Code) | | Remove addr from connection table. This is typically triggered when a member is suspected.
|
removeConnectionListener | public void removeConnectionListener(ConnectionListener l)(Code) | | |
retainAll | public void retainAll(Collection current_mbrs)(Code) | | Removes all connections from ConnectionTable which are not in current_mbrs
Parameters: current_mbrs - |
setLinger | public void setLinger(int linger)(Code) | | |
setReceiveBufferSize | public void setReceiveBufferSize(int recv_buf_size)(Code) | | |
setReceiver | final public void setReceiver(Receiver r)(Code) | | |
setSendBufferSize | public void setSendBufferSize(int send_buf_size)(Code) | | |
setSocketConnectionTimeout | public void setSocketConnectionTimeout(int sock_conn_timeout)(Code) | | |
setTcpNodelay | public void setTcpNodelay(boolean tcp_nodelay)(Code) | | |
setUseSendQueues | public void setUseSendQueues(boolean flag)(Code) | | |
|
|