org.apache.maven.lifecycle.internal
Class ConcurrencyDependencyGraph

java.lang.Object
  extended by org.apache.maven.lifecycle.internal.ConcurrencyDependencyGraph

public class ConcurrencyDependencyGraph
extends Object

Presents a view of the Dependency Graph that is suited for concurrent building.

Since:
3.0
Author:
Kristian Rosenvold

NOTE: This class is not part of any public api and can be changed or deleted without prior notice.


Constructor Summary
ConcurrencyDependencyGraph(ProjectBuildList projectBuilds, ProjectDependencyGraph projectDependencyGraph)
           
 
Method Summary
 int getNumberOfBuilds()
           
 ProjectBuildList getProjectBuilds()
           
 List<MavenProject> getRootSchedulableBuilds()
          Gets all the builds that have no reactor-dependencies
 List<MavenProject> markAsFinished(MavenProject mavenProject)
          Marks the provided project as finished.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcurrencyDependencyGraph

public ConcurrencyDependencyGraph(ProjectBuildList projectBuilds,
                                  ProjectDependencyGraph projectDependencyGraph)
Method Detail

getNumberOfBuilds

public int getNumberOfBuilds()

getRootSchedulableBuilds

public List<MavenProject> getRootSchedulableBuilds()
Gets all the builds that have no reactor-dependencies

Returns:
A list of all the initial builds

markAsFinished

public List<MavenProject> markAsFinished(MavenProject mavenProject)
Marks the provided project as finished. Returns a list of

Parameters:
mavenProject - The project
Returns:
The list of builds that are eligible for starting now that the provided project is done

getProjectBuilds

public ProjectBuildList getProjectBuilds()


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.