public class WebServer extends Object implements com.github.fungal.spi.deployers.DeployerPhases
| Constructor and Description |
|---|
WebServer()
Constructs the web server
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAcceptQueueSize()
Get the accept queue size
|
int |
getPort()
Get the web server port
|
void |
postDeploy()
Post deploy
|
void |
postUndeploy()
Post undeploy
|
void |
preDeploy()
Pre deploy
|
void |
preUndeploy()
Pre undeploy
|
void |
setAcceptQueueSize(int v)
Set the accept queue size
|
void |
setExecutorService(ExecutorService service)
Set the executor service
|
void |
setHost(String host)
Set the host
|
void |
setPort(int port)
Set the web server port
|
void |
start()
Start
|
void |
stop()
Stop
|
public void setHost(String host)
host - The hostpublic int getPort()
public void setPort(int port)
port - The portpublic int getAcceptQueueSize()
public void setAcceptQueueSize(int v)
v - The valuepublic void setExecutorService(ExecutorService service)
service - The servicepublic void preDeploy()
throws Throwable
preDeploy in interface com.github.fungal.spi.deployers.DeployerPhasesThrowable - Thrown if an error occurspublic void postDeploy()
throws Throwable
postDeploy in interface com.github.fungal.spi.deployers.DeployerPhasesThrowable - Thrown if an error occurspublic void preUndeploy()
throws Throwable
preUndeploy in interface com.github.fungal.spi.deployers.DeployerPhasesThrowable - Thrown if an error occursCopyright © 2021 JBoss by Red Hat. All rights reserved.