|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mule.tck.PortUtils
public class PortUtils
Utility class to find available ports.
Constructor Summary | |
---|---|
PortUtils()
|
Method Summary | |
---|---|
static void |
checkPorts(boolean failIfTaken,
String prefix,
List<Integer> ports)
Iterate through the ports and log whether each is available |
static List<Integer> |
findFreePorts(int numberOfPorts)
Find a given number of available ports |
static boolean |
isPortFree(int port)
Check and log is a given port is available |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortUtils()
Method Detail |
---|
public static List<Integer> findFreePorts(int numberOfPorts)
numberOfPorts
- The number of free ports to find
public static void checkPorts(boolean failIfTaken, String prefix, List<Integer> ports) throws Exception
failIfTaken
- If true, fails the current test if the port is not available
Exception
public static boolean isPortFree(int port)
port
- the port number to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |