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
Nested Classes Modifier and Type Class Description static class
ProcessCache.NewProcess
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_AGE
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProcessCache(int maxProcess)
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
get
public hudson.maven.ProcessCache.MavenProcess get(hudson.remoting.VirtualChannel owner, BuildListener listener, hudson.maven.ProcessCache.Factory factory) throws InterruptedException, IOException
Gets or creates a new maven process for launch.- Throws:
InterruptedException
IOException
-
-