public abstract class LifeCycle extends Object implements Stoppable
Modifier and Type | Field and 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 |
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() |
protected void |
startedServer(List<Integer> ports) |
void |
stop() |
Future<String> |
stopAsync() |
protected final MockServerLogger mockServerLogger
protected io.netty.channel.EventLoopGroup bossGroup
protected io.netty.channel.EventLoopGroup workerGroup
protected HttpStateHandler httpStateHandler
protected io.netty.bootstrap.ServerBootstrap serverServerBootstrap
public void close()
close
in interface Closeable
close
in interface AutoCloseable
protected io.netty.channel.EventLoopGroup getEventLoopGroup()
public Scheduler getScheduler()
public boolean isRunning()
@Deprecated public Integer getPort()
public int getLocalPort()
Copyright © 2020. All rights reserved.