public class PortUtil extends Object
Constructor and Description |
---|
PortUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
checkPort(int port,
String host)
Check if specified port is free.
|
public static void checkPort(int port, String host) throws IOException
port
- Port number to check.host
- A local address to bind to; if null, "" or "0.0.0.0" then all local addresses will be considered.IOException
Copyright © 2005–2017 Alfresco Software. All rights reserved.