Class JettyHttpServer

  • All Implemented Interfaces:
    com.yahoo.jdisc.service.ServerProvider, com.yahoo.jdisc.SharedResource

    @Beta
    public class JettyHttpServer
    extends com.yahoo.jdisc.service.AbstractServerProvider
    Author:
    Simon Thoresen Hult, bjorncs
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  JettyHttpServer.Metrics  
    • Field Summary

      • Fields inherited from interface com.yahoo.jdisc.SharedResource

        DEBUG, SYSTEM_PROPERTY_NAME_DEBUG
    • Constructor Summary

      Constructors 
      Constructor Description
      JettyHttpServer​(com.yahoo.jdisc.service.CurrentContainer container, com.yahoo.jdisc.Metric metric, ServerConfig serverConfig, ServletPathsConfig servletPathsConfig, java.util.concurrent.ThreadFactory threadFactory, FilterBindings filterBindings, com.yahoo.component.provider.ComponentRegistry<ConnectorFactory> connectorFactories, com.yahoo.component.provider.ComponentRegistry<org.eclipse.jetty.servlet.ServletHolder> servletHolders, FilterInvoker filterInvoker, com.yahoo.container.logging.AccessLog accessLog)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      int getListenPort()  
      void start()  
      • Methods inherited from class com.yahoo.jdisc.service.AbstractServerProvider

        container
      • Methods inherited from class com.yahoo.jdisc.AbstractResource

        currentState, destroy, refer, release, retainCount
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.yahoo.jdisc.SharedResource

        refer, release
    • Constructor Detail

      • JettyHttpServer

        @Inject
        public JettyHttpServer​(com.yahoo.jdisc.service.CurrentContainer container,
                               com.yahoo.jdisc.Metric metric,
                               ServerConfig serverConfig,
                               ServletPathsConfig servletPathsConfig,
                               java.util.concurrent.ThreadFactory threadFactory,
                               FilterBindings filterBindings,
                               com.yahoo.component.provider.ComponentRegistry<ConnectorFactory> connectorFactories,
                               com.yahoo.component.provider.ComponentRegistry<org.eclipse.jetty.servlet.ServletHolder> servletHolders,
                               FilterInvoker filterInvoker,
                               com.yahoo.container.logging.AccessLog accessLog)
    • Method Detail

      • start

        public void start()
      • close

        public void close()
      • getListenPort

        public int getListenPort()