| java.lang.Object com.tc.net.proxy.TCPProxy
TCPProxy | public class TCPProxy (Code) | | A simple TCP proxy (with round robin load balancing support) to simulate network delays and help debug network
streams.
|
Constructor Summary | |
public | TCPProxy(int listenPort, InetAddress destHost, int destPort, long delay, boolean logData, File logDir) | public | TCPProxy(int listenPort, InetSocketAddress[] endpoints, long delay, boolean logData, File logDir) If multiple endpoints are used, then the proxy will round robin between them. |
TCPProxy | public TCPProxy(int listenPort, InetAddress destHost, int destPort, long delay, boolean logData, File logDir)(Code) | | |
TCPProxy | public TCPProxy(int listenPort, InetSocketAddress[] endpoints, long delay, boolean logData, File logDir)(Code) | | If multiple endpoints are used, then the proxy will round robin between them.
|
closeAllConnections | synchronized void closeAllConnections(boolean waitDeadThread)(Code) | | |
closeClientConnections | public synchronized void closeClientConnections(boolean waitDeadThread, boolean split)(Code) | | |
deregister | void deregister(Connection connection)(Code) | | |
fastStop | public synchronized void fastStop()(Code) | | |
getDelay | public synchronized long getDelay()(Code) | | |
interrupt | void interrupt()(Code) | | |
probeBackendConnection | public boolean probeBackendConnection()(Code) | | |
register | void register(Connection connection)(Code) | | |
setDelay | public synchronized void setDelay(long newDelay)(Code) | | |
setReuseAddress | public void setReuseAddress(boolean reuse)(Code) | | |
status | public void status()(Code) | | |
stop | public synchronized void stop()(Code) | | |
subStop | synchronized void subStop(boolean waitDeadThread)(Code) | | |
toggleDebug | public void toggleDebug()(Code) | | |
|
|