Package org.apache.solr.cloud
Class IpTables
- java.lang.Object
-
- org.apache.solr.cloud.IpTables
-
public class IpTables extends Object
To use, tests must be able to run iptables, eg sudo chmod u+s iptables
-
-
Constructor Summary
Constructors Constructor Description IpTables()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
blockPort(int port)
static void
unblockAllPorts()
static void
unblockPort(int port)
-
-
-
Method Detail
-
blockPort
public static void blockPort(int port) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
unblockPort
public static void unblockPort(int port) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
unblockAllPorts
public static void unblockAllPorts() throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-