Package hudson.maven

Class ProcessCache

java.lang.Object
hudson.maven.ProcessCache

public final class ProcessCache extends Object
Hold on to launched Maven processes so that multiple builds can reuse the same Maven JVM, which leads to improved performance.
Author:
Kohsuke Kawaguchi
  • Nested Class Summary Link icon

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    static int
     
  • Constructor Summary Link icon

    Constructors
    Modifier
    Constructor
    Description
    protected
    ProcessCache(int maxProcess)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    hudson.maven.ProcessCache.MavenProcess
    get(hudson.remoting.VirtualChannel owner, BuildListener listener, hudson.maven.ProcessCache.Factory factory)
    Gets or creates a new maven process for launch.

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details Link icon

    • MAX_AGE Link icon

      public static int MAX_AGE
  • Constructor Details Link icon

    • ProcessCache Link icon

      protected ProcessCache(int maxProcess)
      Parameters:
      maxProcess - Number of maximum processes to cache.
  • Method Details Link icon