public class NetworkFailuresProxy extends Object implements AutoCloseable
| Constructor and Description |
|---|
NetworkFailuresProxy(int localPort,
String remoteHost,
int remotePort) |
| Modifier and Type | Method and Description |
|---|---|
void |
blockTraffic()
Blocks all ongoing traffic, closes all ongoing and closes any new incoming connections.
|
void |
close() |
int |
getLocalPort() |
void |
unblockTraffic()
Resumes normal communication.
|
public NetworkFailuresProxy(int localPort,
String remoteHost,
int remotePort)
public int getLocalPort()
NetworkFailuresProxy is listening.public void blockTraffic()
public void unblockTraffic()
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.