hudson.maven
Class ProcessCache

java.lang.Object
  extended by 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
static class ProcessCache.NewProcess
           
 
Field Summary
static int MAX_AGE
           
 
Constructor Summary
protected ProcessCache(int maxProcess)
           
 
Method Summary
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_AGE

public static int MAX_AGE
Constructor Detail

ProcessCache

protected ProcessCache(int maxProcess)
Parameters:
maxProcess - Number of maximum processes to cache.
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


Copyright © 2004-2013. All Rights Reserved.