public abstract class LifeCycle extends Object implements Stoppable
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.channel.EventLoopGroup |
bossGroup |
protected HttpState |
httpState |
protected MockServerLogger |
mockServerLogger |
protected io.netty.bootstrap.ServerBootstrap |
serverServerBootstrap |
protected io.netty.channel.EventLoopGroup |
workerGroup |
| Modifier | Constructor and Description |
|---|---|
protected |
LifeCycle() |
| Modifier and Type | Method and Description |
|---|---|
List<Integer> |
bindServerPorts(List<Integer> requestedPortBindings) |
void |
close() |
protected io.netty.channel.EventLoopGroup |
getEventLoopGroup() |
int |
getLocalPort() |
List<Integer> |
getLocalPorts() |
Integer |
getPort()
Deprecated.
use getLocalPort instead of getPort
|
Scheduler |
getScheduler() |
boolean |
isRunning() |
LifeCycle |
registerListener(ExpectationsListener expectationsListener) |
protected void |
startedServer(List<Integer> ports) |
void |
stop() |
Future<String> |
stopAsync() |
protected final MockServerLogger mockServerLogger
protected final io.netty.channel.EventLoopGroup bossGroup
protected final io.netty.channel.EventLoopGroup workerGroup
protected final HttpState httpState
protected io.netty.bootstrap.ServerBootstrap serverServerBootstrap
public void close()
close in interface Closeableclose in interface AutoCloseableprotected io.netty.channel.EventLoopGroup getEventLoopGroup()
public Scheduler getScheduler()
public boolean isRunning()
@Deprecated public Integer getPort()
public int getLocalPort()
public LifeCycle registerListener(ExpectationsListener expectationsListener)
Copyright © 2020. All rights reserved.