public final class Servers extends Object
Server instances| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_PORT |
static String |
METHOD_NAME_CREATE |
static Class<?>[] |
METHOD_PARAMS_CREATE |
| Modifier and Type | Method and Description |
|---|---|
static Server |
create(String bindAddress,
int bindPort)
Creates a
Server instance using the specified bind address and bind port. |
public static final int MAX_PORT
public static String METHOD_NAME_CREATE
public static Class<?>[] METHOD_PARAMS_CREATE
public static Server create(String bindAddress, int bindPort) throws IllegalArgumentException
Server instance using the specified bind address and bind port. If no bind address is
specified, the server will bind on all available addresses. The port value must be between 0 and
MAX_PORT; if a value of 0 is selected, the system will choose a port.bindAddress - bindPort - IllegalArgumentExceptionCopyright © 2015 JBoss by Red Hat. All rights reserved.