Class ForkStarter


  • public class ForkStarter
    extends java.lang.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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void killOrphanForks()  
      org.apache.maven.surefire.api.suite.RunResult run​(SurefireProperties effectiveSystemProperties, org.apache.maven.surefire.api.util.DefaultScanResult scanResult)  
      • Methods inherited from class java.lang.Object

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

      • 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 Detail

      • run

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

        public void killOrphanForks()