Package org.mockserver.lifecycle
Class LifeCycle
- java.lang.Object
-
- org.mockserver.lifecycle.LifeCycle
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Stoppable
- Direct Known Subclasses:
MockServer
public abstract class LifeCycle extends Object implements Stoppable
- Author:
- jamesdbloom
-
-
Field Summary
Fields Modifier and Type Field Description protected io.netty.channel.EventLoopGroup
bossGroup
protected HttpStateHandler
httpStateHandler
protected MockServerLogger
mockServerLogger
protected io.netty.bootstrap.ServerBootstrap
serverServerBootstrap
protected io.netty.channel.EventLoopGroup
workerGroup
-
Constructor Summary
Constructors Modifier Constructor Description protected
LifeCycle()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<Integer>
bindServerPorts(List<Integer> requestedPortBindings)
void
close()
io.netty.channel.EventLoopGroup
getEventLoopGroup()
int
getLocalPort()
List<Integer>
getLocalPorts()
Integer
getPort()
Deprecated.use getLocalPort instead of getPortScheduler
getScheduler()
boolean
isRunning()
protected void
startedServer(List<Integer> ports)
void
stop()
-
-
-
Field Detail
-
mockServerLogger
protected final MockServerLogger mockServerLogger
-
bossGroup
protected io.netty.channel.EventLoopGroup bossGroup
-
workerGroup
protected io.netty.channel.EventLoopGroup workerGroup
-
httpStateHandler
protected HttpStateHandler httpStateHandler
-
serverServerBootstrap
protected io.netty.bootstrap.ServerBootstrap serverServerBootstrap
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getEventLoopGroup
public io.netty.channel.EventLoopGroup getEventLoopGroup()
-
getScheduler
public Scheduler getScheduler()
-
isRunning
public boolean isRunning()
-
getPort
@Deprecated public Integer getPort()
Deprecated.use getLocalPort instead of getPort
-
getLocalPort
public int getLocalPort()
-
-