Package org.jboss.jca.web
Class WebServer
java.lang.Object
org.jboss.jca.web.WebServer
- All Implemented Interfaces:
com.github.fungal.spi.deployers.DeployerPhases
The web server
- Author:
- Jesper Pedersen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the accept queue sizeintgetPort()Get the web server portvoidPost deployvoidPost undeployvoidPre deployvoidPre undeployvoidsetAcceptQueueSize(int v) Set the accept queue sizevoidsetExecutorService(ExecutorService service) Set the executor servicevoidSet the hostvoidsetPort(int port) Set the web server portvoidstart()Startvoidstop()Stop
-
Constructor Details
-
WebServer
public WebServer()Constructs the web server
-
-
Method Details
-
setHost
Set the host- Parameters:
host- The host
-
getPort
public int getPort()Get the web server port- Returns:
- The port
-
setPort
public void setPort(int port) Set the web server port- Parameters:
port- The port
-
getAcceptQueueSize
public int getAcceptQueueSize()Get the accept queue size- Returns:
- The value
-
setAcceptQueueSize
public void setAcceptQueueSize(int v) Set the accept queue size- Parameters:
v- The value
-
setExecutorService
Set the executor service- Parameters:
service- The service
-
start
Start- Throws:
Throwable- If an error occurs
-
stop
Stop- Throws:
Throwable- If an error occurs
-
preDeploy
Pre deploy- Specified by:
preDeployin interfacecom.github.fungal.spi.deployers.DeployerPhases- Throws:
Throwable- Thrown if an error occurs
-
postDeploy
Post deploy- Specified by:
postDeployin interfacecom.github.fungal.spi.deployers.DeployerPhases- Throws:
Throwable- Thrown if an error occurs
-
preUndeploy
Pre undeploy- Specified by:
preUndeployin interfacecom.github.fungal.spi.deployers.DeployerPhases- Throws:
Throwable- Thrown if an error occurs
-
postUndeploy
Post undeploy- Specified by:
postUndeployin interfacecom.github.fungal.spi.deployers.DeployerPhases- Throws:
Throwable- Thrown if an error occurs
-