Package org.mockserver.lifecycle
Class LifeCycle
java.lang.Object
org.mockserver.lifecycle.LifeCycle
- All Implemented Interfaces:
Closeable,AutoCloseable,org.mockserver.stop.Stoppable
- Direct Known Subclasses:
MockServer
- Author:
- jamesdbloom
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final io.netty.channel.EventLoopGroupprotected final org.mockserver.mock.HttpStateprotected final org.mockserver.logging.MockServerLoggerprotected io.netty.bootstrap.ServerBootstrapprotected final io.netty.channel.EventLoopGroup -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLifeCycle(org.mockserver.configuration.Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionbindServerPorts(List<Integer> requestedPortBindings) voidclose()protected io.netty.channel.EventLoopGroupintgetPort()Deprecated.use getLocalPort instead of getPortorg.mockserver.scheduler.SchedulerbooleanregisterListener(ExpectationsListener expectationsListener) protected voidstartedServer(List<Integer> ports) voidstop()
-
Field Details
-
mockServerLogger
protected final org.mockserver.logging.MockServerLogger mockServerLogger -
bossGroup
protected final io.netty.channel.EventLoopGroup bossGroup -
workerGroup
protected final io.netty.channel.EventLoopGroup workerGroup -
httpState
protected final org.mockserver.mock.HttpState httpState -
serverServerBootstrap
protected io.netty.bootstrap.ServerBootstrap serverServerBootstrap
-
-
Constructor Details
-
LifeCycle
protected LifeCycle(org.mockserver.configuration.Configuration configuration)
-
-
Method Details
-
stopAsync
-
stop
public void stop()- Specified by:
stopin interfaceorg.mockserver.stop.Stoppable
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getEventLoopGroup
protected io.netty.channel.EventLoopGroup getEventLoopGroup() -
getScheduler
public org.mockserver.scheduler.Scheduler getScheduler() -
isRunning
public boolean isRunning() -
getLocalPorts
-
getPort
Deprecated.use getLocalPort instead of getPort -
getLocalPort
public int getLocalPort() -
bindServerPorts
-
startedServer
-
registerListener
-