java.lang.Object
org.apache.maven.plugin.surefire.booterclient.ForkStarter

public class ForkStarter extends Object
Starts the fork or runs in-process.
Lives only on the plugin-side (not present in remote vms)
Knows how to fork new vms and also how to delegate non-forking invocation to SurefireStarter directly
Author:
Jason van Zyl, Emmanuel Venisse, Brett Porter, Dan Fabulich, Carlos Sanchez, Kristian Rosenvold
  • Constructor Summary

    Constructors
    Constructor
    Description
    ForkStarter(org.apache.maven.surefire.booter.ProviderConfiguration providerConfiguration, org.apache.maven.surefire.booter.StartupConfiguration startupConfiguration, ForkConfiguration forkConfiguration, int forkedProcessTimeoutInSeconds, StartupReportConfiguration startupReportConfiguration, org.apache.maven.plugin.surefire.log.api.ConsoleLogger log)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.apache.maven.surefire.suite.RunResult
    run(SurefireProperties effectiveSystemProperties, org.apache.maven.surefire.util.DefaultScanResult scanResult)
     

    Methods inherited from class java.lang.Object

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

    • ForkStarter

      public ForkStarter(org.apache.maven.surefire.booter.ProviderConfiguration providerConfiguration, org.apache.maven.surefire.booter.StartupConfiguration startupConfiguration, ForkConfiguration forkConfiguration, int forkedProcessTimeoutInSeconds, StartupReportConfiguration startupReportConfiguration, org.apache.maven.plugin.surefire.log.api.ConsoleLogger log)
  • Method Details

    • run

      public org.apache.maven.surefire.suite.RunResult run(@Nonnull SurefireProperties effectiveSystemProperties, @Nonnull org.apache.maven.surefire.util.DefaultScanResult scanResult) throws org.apache.maven.surefire.booter.SurefireBooterForkException, org.apache.maven.surefire.booter.SurefireExecutionException
      Throws:
      org.apache.maven.surefire.booter.SurefireBooterForkException
      org.apache.maven.surefire.booter.SurefireExecutionException
    • killOrphanForks

      public void killOrphanForks()