java.lang.Object
de.gematik.test.tiger.mockserver.lifecycle.LifeCycle
Direct Known Subclasses:
MockServer

public abstract class LifeCycle extends Object
  • Field Details

    • bossGroup

      protected final io.netty.channel.EventLoopGroup bossGroup
    • workerGroup

      protected final io.netty.channel.EventLoopGroup workerGroup
    • httpState

      protected final HttpState httpState
    • serverServerBootstrap

      protected io.netty.bootstrap.ServerBootstrap serverServerBootstrap
  • Constructor Details

  • Method Details

    • stopAsync

      public CompletableFuture<String> stopAsync()
    • stop

      public void stop()
    • close

      public void close()
    • getEventLoopGroup

      protected io.netty.channel.EventLoopGroup getEventLoopGroup()
    • getScheduler

      public Scheduler getScheduler()
    • isRunning

      public boolean isRunning()
    • getLocalPorts

      public List<Integer> getLocalPorts()
    • getPort

      @Deprecated public Integer getPort()
      Deprecated.
      use getLocalPort instead of getPort
    • getLocalPort

      public int getLocalPort()
    • bindServerPorts

      public List<Integer> bindServerPorts(List<Integer> requestedPortBindings)
    • startedServer

      protected void startedServer(List<Integer> ports)
    • getBossGroup

      public io.netty.channel.EventLoopGroup getBossGroup()
    • getWorkerGroup

      public io.netty.channel.EventLoopGroup getWorkerGroup()
    • getHttpState

      public HttpState getHttpState()
    • getConfiguration

      public MockServerConfiguration getConfiguration()
    • getServerServerBootstrap

      public io.netty.bootstrap.ServerBootstrap getServerServerBootstrap()
    • getServerChannelFutures

      public List<Future<io.netty.channel.Channel>> getServerChannelFutures()
    • getStopFuture

      public CompletableFuture<String> getStopFuture()
    • getStopping

      public AtomicBoolean getStopping()