Class LifeCycle
java.lang.Object
software.xdev.mockserver.lifecycle.LifeCycle
- All Implemented Interfaces:
Closeable,AutoCloseable,Stoppable
- Direct Known Subclasses:
MockServer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final io.netty.channel.EventLoopGroupprotected final HttpStateprotected io.netty.bootstrap.ServerBootstrapprotected final io.netty.channel.EventLoopGroup -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbindServerPorts(List<Integer> requestedPortBindings) voidclose()protected io.netty.channel.EventLoopGroupintbooleanregisterListener(ExpectationsListener expectationsListener) protected voidstartedServer(List<Integer> ports) voidstop()
-
Field Details
-
bossGroup
protected final io.netty.channel.EventLoopGroup bossGroup -
workerGroup
protected final io.netty.channel.EventLoopGroup workerGroup -
httpState
-
serverServerBootstrap
protected io.netty.bootstrap.ServerBootstrap serverServerBootstrap
-
-
Constructor Details
-
LifeCycle
-
-
Method Details
-
stopAsync
-
stop
public void stop() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getEventLoopGroup
protected io.netty.channel.EventLoopGroup getEventLoopGroup() -
getScheduler
-
isRunning
public boolean isRunning() -
getLocalPorts
-
getLocalPort
public int getLocalPort() -
bindServerPorts
-
startedServer
-
registerListener
-