Class DefaultServerFactory

java.lang.Object
io.micronaut.maven.testresources.DefaultServerFactory
All Implemented Interfaces:
io.micronaut.testresources.buildtools.ServerFactory

public class DefaultServerFactory extends Object implements io.micronaut.testresources.buildtools.ServerFactory
Default implementation for ServerFactory.
Since:
4.0.0
Author:
Álvaro Sánchez-Mariscal
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultServerFactory(org.apache.maven.plugin.logging.Log log, org.apache.maven.toolchain.ToolchainManager toolchainManager, org.apache.maven.execution.MavenSession mavenSession, AtomicBoolean serverStarted, String testResourcesVersion, boolean debugServer, boolean foreground)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    startServer(io.micronaut.testresources.buildtools.ServerUtils.ProcessParameters processParameters)
     
    void
    waitFor(Duration duration)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultServerFactory

      public DefaultServerFactory(org.apache.maven.plugin.logging.Log log, org.apache.maven.toolchain.ToolchainManager toolchainManager, org.apache.maven.execution.MavenSession mavenSession, AtomicBoolean serverStarted, String testResourcesVersion, boolean debugServer, boolean foreground)
  • Method Details

    • startServer

      public void startServer(io.micronaut.testresources.buildtools.ServerUtils.ProcessParameters processParameters)
      Specified by:
      startServer in interface io.micronaut.testresources.buildtools.ServerFactory
    • waitFor

      public void waitFor(Duration duration) throws InterruptedException
      Specified by:
      waitFor in interface io.micronaut.testresources.buildtools.ServerFactory
      Throws:
      InterruptedException