Class JettyHttpServer
java.lang.Object
com.yahoo.jdisc.AbstractResource
com.yahoo.jdisc.http.server.jetty.JettyHttpServer
- All Implemented Interfaces:
com.yahoo.jdisc.service.ServerProvider
,com.yahoo.jdisc.SharedResource
public class JettyHttpServer
extends com.yahoo.jdisc.AbstractResource
implements com.yahoo.jdisc.service.ServerProvider
- Author:
- Simon Thoresen Hult, bjorncs
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.yahoo.jdisc.SharedResource
com.yahoo.jdisc.SharedResource.Debug
-
Field Summary
Fields inherited from interface com.yahoo.jdisc.SharedResource
DEBUG, SYSTEM_PROPERTY_NAME_DEBUG
-
Constructor Summary
ConstructorDescriptionJettyHttpServer
(com.yahoo.jdisc.Metric metric, ServerConfig serverConfig, com.yahoo.component.provider.ComponentRegistry<ConnectorFactory> connectorFactories, RequestLog requestLog, ConnectionLog connectionLog) -
Method Summary
Methods inherited from class com.yahoo.jdisc.AbstractResource
currentState, destroy, refer, 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.service.ServerProvider
isMultiplexed
Methods inherited from interface com.yahoo.jdisc.SharedResource
refer, refer, release
-
Constructor Details
-
JettyHttpServer
@Inject public JettyHttpServer(com.yahoo.jdisc.Metric metric, ServerConfig serverConfig, com.yahoo.component.provider.ComponentRegistry<ConnectorFactory> connectorFactories, RequestLog requestLog, ConnectionLog connectionLog)
-
-
Method Details
-
start
public void start()- Specified by:
start
in interfacecom.yahoo.jdisc.service.ServerProvider
-
close
public void close()- Specified by:
close
in interfacecom.yahoo.jdisc.service.ServerProvider
-
getListenPort
public int getListenPort()
-