Class JettyHttpService

java.lang.Object
com.tenio.common.logger.AbstractLogger
com.tenio.common.logger.SystemLogger
com.tenio.core.manager.AbstractManager
com.tenio.core.network.jetty.JettyHttpService
All Implemented Interfaces:
Service, Runnable

public final class JettyHttpService extends AbstractManager implements Service, Runnable
This class provides the methods for creating HTTP services.
  • Method Details

    • newInstance

      public static JettyHttpService newInstance(EventManager eventManager)
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • initialize

      public void initialize()
      Description copied from interface: Service
      Initializes a new service.
      Specified by:
      initialize in interface Service
    • start

      public void start()
      Description copied from interface: Service
      Start the service.
      Specified by:
      start in interface Service
    • shutdown

      public void shutdown()
      Description copied from interface: Service
      Shutdown the service.
      Specified by:
      shutdown in interface Service
    • isActivated

      public boolean isActivated()
      Description copied from interface: Service
      Determines whether the service is activated.
      Specified by:
      isActivated in interface Service
      Returns:
      true if the service is activated, false otherwise
    • getName

      public String getName()
      Description copied from interface: Service
      Retrieves the service's name.
      Specified by:
      getName in interface Service
      Returns:
      the service's name
    • setName

      public void setName(String name)
      Description copied from interface: Service
      Set the service's name.
      Specified by:
      setName in interface Service
      Parameters:
      name - the service's name
    • setPort

      public void setPort(int port)
    • setPathConfigs

      public void setPathConfigs(List<PathConfig> pathConfigs)