public interface Server
WireProtocol.| Modifier and Type | Field and Description |
|---|---|
static String |
METHOD_NAME_START |
static String |
METHOD_NAME_STOP |
static Class<?>[] |
METHOD_PARAMS_START |
static Class<?>[] |
METHOD_PARAMS_STOP |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getBoundAddress()
Obtains the address to which the current running server is bound
|
boolean |
isRunning()
Returns whether or not the server is running
|
void |
start()
Starts the server
|
void |
stop()
Stops the server
|
static final String METHOD_NAME_START
static final Class<?>[] METHOD_PARAMS_START
static final String METHOD_NAME_STOP
static final Class<?>[] METHOD_PARAMS_STOP
void start()
throws ServerLifecycleException,
IllegalStateException
ServerLifecycleExceptionIllegalStateException - If the server is already runningvoid stop() throws ServerLifecycleException, IllegalStateException
ServerLifecycleExceptionIllegalStateException - If the server is not runningboolean isRunning()
InetSocketAddress getBoundAddress() throws IllegalStateException
IllegalStateException - If isRunning() is falseCopyright © 2015 JBoss by Red Hat. All rights reserved.