|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.continuum.buildmanager.ParallelBuildsManager
public class ParallelBuildsManager
Parallel builds manager.
| Constructor Summary | |
|---|---|
ParallelBuildsManager()
|
|
| Method Summary | |
|---|---|
void |
addOverallBuildQueue(BuildQueue buildQueue)
Add an overall build queue. |
void |
buildProject(int projectId,
BuildDefinition buildDefinition,
String projectName,
BuildTrigger buildTrigger,
ScmResult scmResult,
int projectGroupId)
Build the project using the specified build definition. |
void |
buildProjects(List<Project> projects,
Map<Integer,BuildDefinition> projectsBuildDefinitionsMap,
BuildTrigger buildTrigger,
Map<Integer,ScmResult> scmResultMap,
int projectGroupId)
Build projects using their corresponding build definitions. |
boolean |
cancelAllBuilds()
Cancels all the builds in all the overall queues. |
boolean |
cancelAllCheckouts()
|
boolean |
cancelAllPrepareBuilds()
Cancels all the prepare builds in all overall queues |
boolean |
cancelBuild(int projectId)
Cancels the specified project's build. |
boolean |
cancelBuildInQueue(int buildQueueId)
Cancels the current build on the specified overall queue. |
boolean |
cancelCheckout(int projectId)
|
boolean |
cancelPrepareBuild(int projectId)
Cancels the specified project prepare build |
boolean |
cancelPrepareBuild(int projectGroupId,
int scmRootId)
Cancels the specified project group prepare build |
void |
checkoutProject(int projectId,
String projectName,
File workingDirectory,
String scmRootUrl,
String scmUsername,
String scmPassword,
BuildDefinition defaultBuildDefinition,
List<Project> subProjects)
Adds the project to the checkout queue of the overall build queue with the least amount of tasks queued. |
void |
contextualize(org.codehaus.plexus.context.Context context)
|
Map<String,BuildProjectTask> |
getCurrentBuilds()
Returns all the build tasks currently being executed. |
Map<String,CheckOutTask> |
getCurrentCheckouts()
Returns all the checkout tasks currently being executed. |
Map<String,PrepareBuildProjectsTask> |
getCurrentProjectInPrepareBuild()
Return currently preparing build project. |
Map<Integer,OverallBuildQueue> |
getOverallBuildQueues()
|
OverallBuildQueue |
getOverallBuildQueueWhereProjectsInGroupAreQueued(int projectGroupId)
|
Map<String,List<BuildProjectTask>> |
getProjectsInBuildQueues()
Returns all the overall build queues together with a list of the build tasks in it's build queue. |
Map<String,List<CheckOutTask>> |
getProjectsInCheckoutQueues()
Returns all the overall build queues together with a list of checkout tasks in it's checkout queue. |
Map<String,List<PrepareBuildProjectsTask>> |
getProjectsInPrepareBuildQueue()
Return all projects in prepare build queue. |
boolean |
isAnyProjectCurrentlyBeingCheckedOut(int[] projectIds)
Checks if at least one of the projects is currently being checked out. |
boolean |
isAnyProjectCurrentlyBuilding(int[] projectIds)
Checks if at least one of the projects is currently building. |
boolean |
isAnyProjectCurrentlyPreparingBuild(int[] projectIds)
Checks if at least one of the projects is currently preparing build |
boolean |
isBuildInProgress()
Checks whether a build is in progress. |
boolean |
isInAnyBuildQueue(int projectId)
Checks whether the project build is queued. |
boolean |
isInAnyBuildQueue(int projectId,
int buildDefinitionId)
Checks whether the project build using the specified build definition is queued. |
boolean |
isInAnyCheckoutQueue(int projectId)
Checks whether the project checkout is already queued. |
boolean |
isInPrepareBuildQueue(int projectId)
Checks whether the project is already in the prepare-build queue. |
boolean |
isInPrepareBuildQueue(int projectGroupId,
int scmRootId)
Checks where the project group is already in the prepare-build queue |
boolean |
isProjectCurrentlyBeingCheckedOut(int projectId)
Checks whether project is currently being checked out. |
boolean |
isProjectCurrentlyPreparingBuild(int projectId)
Checks whether project is currently preparing build |
boolean |
isProjectGroupCurrentlyPreparingBuild(int projectGroupId,
int scmRootId)
Checks whether project group is currently preparing build |
boolean |
isProjectInAnyCurrentBuild(int projectId)
Checks whether the project is currently being built. |
void |
prepareBuildProjects(Map<Integer,Integer> projectsBuildDefinitionsMap,
BuildTrigger buildTrigger,
int projectGroupId,
String projectGroupName,
String scmRootAddress,
int scmRootId)
Adds the projects in the prepare-build-queue. |
void |
removeOverallBuildQueue(int overallBuildQueueId)
Remove an overall build queue. |
void |
removeProjectFromBuildQueue(int projectId)
Removes the project from the build queue. |
void |
removeProjectFromBuildQueue(int projectId,
int buildDefinitionId,
BuildTrigger buildTrigger,
String projectName,
int projectGroupId)
Removes the project built using the specified build definition from the build queue. |
void |
removeProjectFromCheckoutQueue(int projectId)
Removes the project from the checkout queue. |
boolean |
removeProjectFromPrepareBuildQueue(int projectGroupId,
int scmRootId)
Remove a project from a prepare build queue. |
boolean |
removeProjectGroupFromPrepareBuildQueue(int projectGroupId,
String scmRootAddress)
|
void |
removeProjectsFromBuildQueue(int[] projectIds)
Removes the specified projects from their build queues. |
void |
removeProjectsFromBuildQueueWithHashcodes(int[] hashcodes)
Removes a set of projects using the specified hashcodes from the build queues. |
void |
removeProjectsFromCheckoutQueue(int[] projectIds)
Removes the specified projects from their checkout queues. |
void |
removeProjectsFromCheckoutQueueWithHashcodes(int[] hashcodes)
Removes a set of projects using the specified hashcodes from the checkout queues. |
void |
removeProjectsFromPrepareBuildQueueWithHashCodes(int[] hashCodes)
Removes a set of projects using the specified hashcodes from the prepare build queues. |
void |
setBuildDefinitionDao(BuildDefinitionDao buildDefinitionDao)
|
void |
setBuildQueueService(BuildQueueService buildQueueService)
|
void |
setConfigurationService(ConfigurationService configurationService)
|
void |
setContainer(org.codehaus.plexus.PlexusContainer container)
|
void |
setOverallBuildQueues(Map<Integer,OverallBuildQueue> overallBuildQueues)
|
void |
setProjectDao(ProjectDao projectDao)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParallelBuildsManager()
| Method Detail |
|---|
public void buildProject(int projectId,
BuildDefinition buildDefinition,
String projectName,
BuildTrigger buildTrigger,
ScmResult scmResult,
int projectGroupId)
throws BuildManagerException
BuildsManager
buildProject in interface BuildsManagerscmResult - TODO
BuildManagerExceptionBuildsManager.buildProject(int, BuildDefinition, String, BuildTrigger, ScmResult, int)
public void buildProjects(List<Project> projects,
Map<Integer,BuildDefinition> projectsBuildDefinitionsMap,
BuildTrigger buildTrigger,
Map<Integer,ScmResult> scmResultMap,
int projectGroupId)
throws BuildManagerException
BuildsManager
buildProjects in interface BuildsManagerscmResultMap - TODO
BuildManagerExceptionBuildsManager.buildProjects(List, Map, BuildTrigger, Map, int)
public boolean cancelBuildInQueue(int buildQueueId)
throws BuildManagerException
BuildsManager
cancelBuildInQueue in interface BuildsManagerBuildManagerExceptionBuildsManager.cancelBuildInQueue(int)
public boolean cancelAllBuilds()
throws BuildManagerException
BuildsManager
cancelAllBuilds in interface BuildsManagerBuildManagerExceptionBuildsManager.cancelAllBuilds()
public boolean cancelAllCheckouts()
throws BuildManagerException
cancelAllCheckouts in interface BuildsManagerBuildManagerExceptionBuildsManager.cancelAllCheckouts()
public boolean cancelBuild(int projectId)
throws BuildManagerException
BuildsManager
cancelBuild in interface BuildsManagerBuildManagerExceptionBuildsManager.cancelBuild(int)
public boolean cancelCheckout(int projectId)
throws BuildManagerException
cancelCheckout in interface BuildsManagerBuildManagerExceptionBuildsManager.cancelCheckout(int)
public boolean cancelPrepareBuild(int projectGroupId,
int scmRootId)
throws BuildManagerException
BuildsManager
cancelPrepareBuild in interface BuildsManagerBuildManagerException
public boolean cancelPrepareBuild(int projectId)
throws BuildManagerException
BuildsManager
cancelPrepareBuild in interface BuildsManagerBuildManagerException
public void checkoutProject(int projectId,
String projectName,
File workingDirectory,
String scmRootUrl,
String scmUsername,
String scmPassword,
BuildDefinition defaultBuildDefinition,
List<Project> subProjects)
throws BuildManagerException
BuildsManager
checkoutProject in interface BuildsManagerscmRootUrl - TODOsubProjects - TODO
BuildManagerExceptionBuildsManager.checkoutProject(int, String, File, String, String, String, BuildDefinition, List)
public boolean isInAnyBuildQueue(int projectId)
throws BuildManagerException
BuildsManager
isInAnyBuildQueue in interface BuildsManagerBuildManagerExceptionBuildsManager.isInAnyBuildQueue(int)
public boolean isInAnyBuildQueue(int projectId,
int buildDefinitionId)
throws BuildManagerException
BuildsManager
isInAnyBuildQueue in interface BuildsManagerBuildManagerExceptionBuildsManager.isInAnyBuildQueue(int, int)
public boolean isInAnyCheckoutQueue(int projectId)
throws BuildManagerException
BuildsManager
isInAnyCheckoutQueue in interface BuildsManagerBuildManagerExceptionBuildsManager.isInAnyCheckoutQueue(int)
public boolean isAnyProjectCurrentlyBeingCheckedOut(int[] projectIds)
throws BuildManagerException
BuildsManager
isAnyProjectCurrentlyBeingCheckedOut in interface BuildsManagerBuildManagerExceptionBuildsManager.isAnyProjectCurrentlyBeingCheckedOut(int[])
public boolean isInPrepareBuildQueue(int projectId)
throws BuildManagerException
BuildsManager
isInPrepareBuildQueue in interface BuildsManagerBuildManagerExceptionBuildsManager.isInPrepareBuildQueue(int)
public boolean isInPrepareBuildQueue(int projectGroupId,
int scmRootId)
throws BuildManagerException
BuildsManager
isInPrepareBuildQueue in interface BuildsManagerprojectGroupId - scmRootId -
BuildManagerExceptionBuildsManager.isInPrepareBuildQueue(int, int)
public boolean isProjectInAnyCurrentBuild(int projectId)
throws BuildManagerException
BuildsManager
isProjectInAnyCurrentBuild in interface BuildsManagerBuildManagerExceptionBuildsManager.isProjectInAnyCurrentBuild(int)
public void prepareBuildProjects(Map<Integer,Integer> projectsBuildDefinitionsMap,
BuildTrigger buildTrigger,
int projectGroupId,
String projectGroupName,
String scmRootAddress,
int scmRootId)
throws BuildManagerException
BuildsManager
prepareBuildProjects in interface BuildsManagerprojectGroupId - TODOscmRootAddress - TODO
BuildManagerExceptionBuildsManager.prepareBuildProjects(Map, BuildTrigger, int, String, String, int)
public void removeProjectFromBuildQueue(int projectId)
throws BuildManagerException
BuildsManager
removeProjectFromBuildQueue in interface BuildsManagerBuildManagerExceptionBuildsManager.removeProjectFromBuildQueue(int)
public void removeProjectFromBuildQueue(int projectId,
int buildDefinitionId,
BuildTrigger buildTrigger,
String projectName,
int projectGroupId)
throws BuildManagerException
BuildsManager
removeProjectFromBuildQueue in interface BuildsManagerBuildManagerExceptionBuildsManager.removeProjectFromBuildQueue(int, int, BuildTrigger, String, int)
public void removeProjectFromCheckoutQueue(int projectId)
throws BuildManagerException
BuildsManager
removeProjectFromCheckoutQueue in interface BuildsManagerBuildManagerExceptionBuildsManager.removeProjectFromCheckoutQueue(int)public void removeProjectsFromBuildQueue(int[] projectIds)
BuildsManager
removeProjectsFromBuildQueue in interface BuildsManagerBuildsManager.removeProjectsFromBuildQueue(int[])public void removeProjectsFromCheckoutQueue(int[] projectIds)
BuildsManager
removeProjectsFromCheckoutQueue in interface BuildsManagerBuildsManager.removeProjectsFromCheckoutQueue(int[])
public void removeProjectsFromCheckoutQueueWithHashcodes(int[] hashcodes)
throws BuildManagerException
BuildsManager
removeProjectsFromCheckoutQueueWithHashcodes in interface BuildsManagerBuildManagerExceptionBuildsManager.removeProjectsFromCheckoutQueueWithHashcodes(int[])
public void removeProjectsFromBuildQueueWithHashcodes(int[] hashcodes)
throws BuildManagerException
BuildsManager
removeProjectsFromBuildQueueWithHashcodes in interface BuildsManagerBuildManagerExceptionBuildsManager.removeProjectsFromBuildQueueWithHashcodes(int[])
public boolean removeProjectGroupFromPrepareBuildQueue(int projectGroupId,
String scmRootAddress)
throws BuildManagerException
removeProjectGroupFromPrepareBuildQueue in interface BuildsManagerBuildManagerException
public void addOverallBuildQueue(BuildQueue buildQueue)
throws BuildManagerException
BuildsManager
addOverallBuildQueue in interface BuildsManagerBuildManagerException - TODOBuildsManager.addOverallBuildQueue(BuildQueue)
public void removeOverallBuildQueue(int overallBuildQueueId)
throws BuildManagerException
BuildsManager
removeOverallBuildQueue in interface BuildsManagerBuildManagerExceptionBuildsManager.removeOverallBuildQueue(int)public Map<Integer,OverallBuildQueue> getOverallBuildQueues()
public Map<String,BuildProjectTask> getCurrentBuilds()
throws BuildManagerException
BuildsManager
getCurrentBuilds in interface BuildsManagerBuildManagerExceptionBuildsManager.getCurrentBuilds()
public Map<String,CheckOutTask> getCurrentCheckouts()
throws BuildManagerException
BuildsManager
getCurrentCheckouts in interface BuildsManagerBuildManagerExceptionBuildsManager.getCurrentCheckouts()
public Map<String,List<BuildProjectTask>> getProjectsInBuildQueues()
throws BuildManagerException
BuildsManager
getProjectsInBuildQueues in interface BuildsManagerBuildManagerExceptionBuildsManager.getProjectsInBuildQueues()
public Map<String,List<CheckOutTask>> getProjectsInCheckoutQueues()
throws BuildManagerException
BuildsManager
getProjectsInCheckoutQueues in interface BuildsManagerBuildManagerExceptionBuildsManager.getProjectsInCheckoutQueues()
public boolean cancelAllPrepareBuilds()
throws BuildManagerException
BuildsManager
cancelAllPrepareBuilds in interface BuildsManagerBuildManagerExceptionBuildsManager.cancelAllPrepareBuilds()public boolean isBuildInProgress()
BuildsManager
isBuildInProgress in interface BuildsManagerBuildsManager.isBuildInProgress()
public boolean isProjectCurrentlyPreparingBuild(int projectId)
throws BuildManagerException
BuildsManager
isProjectCurrentlyPreparingBuild in interface BuildsManagerBuildManagerException
public boolean isProjectGroupCurrentlyPreparingBuild(int projectGroupId,
int scmRootId)
throws BuildManagerException
BuildsManager
isProjectGroupCurrentlyPreparingBuild in interface BuildsManagerBuildManagerException
public Map<String,PrepareBuildProjectsTask> getCurrentProjectInPrepareBuild()
throws BuildManagerException
BuildsManager
getCurrentProjectInPrepareBuild in interface BuildsManagerBuildManagerException
public Map<String,List<PrepareBuildProjectsTask>> getProjectsInPrepareBuildQueue()
throws BuildManagerException
BuildsManager
getProjectsInPrepareBuildQueue in interface BuildsManagerBuildManagerException
public boolean removeProjectFromPrepareBuildQueue(int projectGroupId,
int scmRootId)
throws BuildManagerException
BuildsManager
removeProjectFromPrepareBuildQueue in interface BuildsManagerBuildManagerException
public void removeProjectsFromPrepareBuildQueueWithHashCodes(int[] hashCodes)
throws BuildManagerException
BuildsManager
removeProjectsFromPrepareBuildQueueWithHashCodes in interface BuildsManagerBuildManagerException
public OverallBuildQueue getOverallBuildQueueWhereProjectsInGroupAreQueued(int projectGroupId)
throws BuildManagerException
BuildManagerException
public boolean isProjectCurrentlyBeingCheckedOut(int projectId)
throws BuildManagerException
BuildsManager
isProjectCurrentlyBeingCheckedOut in interface BuildsManagerBuildManagerException
public boolean isAnyProjectCurrentlyBuilding(int[] projectIds)
throws BuildManagerException
BuildsManager
isAnyProjectCurrentlyBuilding in interface BuildsManagerBuildManagerException
public boolean isAnyProjectCurrentlyPreparingBuild(int[] projectIds)
throws BuildManagerException
BuildsManager
isAnyProjectCurrentlyPreparingBuild in interface BuildsManagerBuildManagerException
public void contextualize(org.codehaus.plexus.context.Context context)
throws org.codehaus.plexus.context.ContextException
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizableorg.codehaus.plexus.context.ContextExceptionpublic void setContainer(org.codehaus.plexus.PlexusContainer container)
public void setOverallBuildQueues(Map<Integer,OverallBuildQueue> overallBuildQueues)
public void setConfigurationService(ConfigurationService configurationService)
public void setBuildQueueService(BuildQueueService buildQueueService)
public void setBuildDefinitionDao(BuildDefinitionDao buildDefinitionDao)
public void setProjectDao(ProjectDao projectDao)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||