Class WebServer

java.lang.Object
org.jboss.jca.web.WebServer
All Implemented Interfaces:
com.github.fungal.spi.deployers.DeployerPhases

public class WebServer extends Object implements com.github.fungal.spi.deployers.DeployerPhases
The web server
Author:
Jesper Pedersen
  • Constructor Details

    • WebServer

      public WebServer()
      Constructs the web server
  • Method Details

    • setHost

      public void setHost(String host)
      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

      public void setExecutorService(ExecutorService service)
      Set the executor service
      Parameters:
      service - The service
    • start

      public void start() throws Throwable
      Start
      Throws:
      Throwable - If an error occurs
    • stop

      public void stop() throws Throwable
      Stop
      Throws:
      Throwable - If an error occurs
    • preDeploy

      public void preDeploy() throws Throwable
      Pre deploy
      Specified by:
      preDeploy in interface com.github.fungal.spi.deployers.DeployerPhases
      Throws:
      Throwable - Thrown if an error occurs
    • postDeploy

      public void postDeploy() throws Throwable
      Post deploy
      Specified by:
      postDeploy in interface com.github.fungal.spi.deployers.DeployerPhases
      Throws:
      Throwable - Thrown if an error occurs
    • preUndeploy

      public void preUndeploy() throws Throwable
      Pre undeploy
      Specified by:
      preUndeploy in interface com.github.fungal.spi.deployers.DeployerPhases
      Throws:
      Throwable - Thrown if an error occurs
    • postUndeploy

      public void postUndeploy() throws Throwable
      Post undeploy
      Specified by:
      postUndeploy in interface com.github.fungal.spi.deployers.DeployerPhases
      Throws:
      Throwable - Thrown if an error occurs