|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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,
int trigger,
ScmResult scmResult,
int projectGroupId)
Build the project using the specified build definition. |
void |
buildProjects(List<Project> projects,
Map<Integer,BuildDefinition> projectsBuildDefinitionsMap,
int trigger,
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()
|
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)
|
void |
checkoutProject(int projectId,
String projectName,
File workingDirectory,
String scmUsername,
String scmPassword,
BuildDefinition defaultBuildDefinition)
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. |
PrepareBuildProjectsTask |
getCurrentProjectInPrepareBuild()
Return currently preparing build project. |
Map<Integer,OverallBuildQueue> |
getOverallBuildQueues()
|
OverallBuildQueue |
getOverallBuildQueueWhereProjectsInGroupAreQueued(int projectGroupId)
|
org.codehaus.plexus.taskqueue.TaskQueue |
getPrepareBuildQueue()
|
org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor |
getPrepareBuildTaskQueueExecutor()
|
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. |
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 |
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 |
isProjectCurrentlyBeingCheckedOut(int projectId)
Checks whether project is currently being checked out. |
boolean |
isProjectCurrentlyPreparingBuild(int projectId)
Checks whether project is currently preparing build |
boolean |
isProjectInAnyCurrentBuild(int projectId)
Checks whether the project is currently being built. |
void |
prepareBuildProjects(Map<Integer,Integer> projectsBuildDefinitionsMap,
int trigger,
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,
int trigger,
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 |
setPrepareBuildQueue(org.codehaus.plexus.taskqueue.TaskQueue prepareBuildQueue)
|
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, int trigger, ScmResult scmResult, int projectGroupId) throws BuildManagerException
BuildsManager
buildProject
in interface BuildsManager
scmResult
- TODO
BuildManagerException
BuildsManager.buildProject(int, BuildDefinition, String, int, ScmResult, int)
public void buildProjects(List<Project> projects, Map<Integer,BuildDefinition> projectsBuildDefinitionsMap, int trigger, Map<Integer,ScmResult> scmResultMap, int projectGroupId) throws BuildManagerException
BuildsManager
buildProjects
in interface BuildsManager
scmResultMap
- TODO
BuildManagerException
BuildsManager.buildProjects(List, Map, int, Map, int)
public boolean cancelBuildInQueue(int buildQueueId) throws BuildManagerException
BuildsManager
cancelBuildInQueue
in interface BuildsManager
BuildManagerException
BuildsManager.cancelBuildInQueue(int)
public boolean cancelAllBuilds() throws BuildManagerException
BuildsManager
cancelAllBuilds
in interface BuildsManager
BuildManagerException
BuildsManager.cancelAllBuilds()
public boolean cancelAllCheckouts() throws BuildManagerException
cancelAllCheckouts
in interface BuildsManager
BuildManagerException
BuildsManager.cancelAllCheckouts()
public boolean cancelBuild(int projectId) throws BuildManagerException
BuildsManager
cancelBuild
in interface BuildsManager
BuildManagerException
BuildsManager.cancelBuild(int)
public boolean cancelCheckout(int projectId) throws BuildManagerException
cancelCheckout
in interface BuildsManager
BuildManagerException
BuildsManager.cancelCheckout(int)
public void checkoutProject(int projectId, String projectName, File workingDirectory, String scmUsername, String scmPassword, BuildDefinition defaultBuildDefinition) throws BuildManagerException
BuildsManager
checkoutProject
in interface BuildsManager
BuildManagerException
BuildsManager.checkoutProject(int, String, File, String, String, BuildDefinition)
public boolean isInAnyBuildQueue(int projectId) throws BuildManagerException
BuildsManager
isInAnyBuildQueue
in interface BuildsManager
BuildManagerException
BuildsManager.isInAnyBuildQueue(int)
public boolean isInAnyBuildQueue(int projectId, int buildDefinitionId) throws BuildManagerException
BuildsManager
isInAnyBuildQueue
in interface BuildsManager
BuildManagerException
BuildsManager.isInAnyBuildQueue(int, int)
public boolean isInAnyCheckoutQueue(int projectId) throws BuildManagerException
BuildsManager
isInAnyCheckoutQueue
in interface BuildsManager
BuildManagerException
BuildsManager.isInAnyCheckoutQueue(int)
public boolean isAnyProjectCurrentlyBeingCheckedOut(int[] projectIds) throws BuildManagerException
BuildsManager
isAnyProjectCurrentlyBeingCheckedOut
in interface BuildsManager
BuildManagerException
BuildsManager.isAnyProjectCurrentlyBeingCheckedOut(int[])
public boolean isInPrepareBuildQueue(int projectId) throws BuildManagerException
BuildsManager
isInPrepareBuildQueue
in interface BuildsManager
BuildManagerException
BuildsManager.isInPrepareBuildQueue(int)
public boolean isProjectInAnyCurrentBuild(int projectId) throws BuildManagerException
BuildsManager
isProjectInAnyCurrentBuild
in interface BuildsManager
BuildManagerException
BuildsManager.isProjectInAnyCurrentBuild(int)
public void prepareBuildProjects(Map<Integer,Integer> projectsBuildDefinitionsMap, int trigger, int projectGroupId, String projectGroupName, String scmRootAddress, int scmRootId) throws BuildManagerException
BuildsManager
prepareBuildProjects
in interface BuildsManager
projectGroupId
- TODOscmRootAddress
- TODO
BuildManagerException
BuildsManager.prepareBuildProjects(Map, int, int, String, String, int)
public void removeProjectFromBuildQueue(int projectId) throws BuildManagerException
BuildsManager
removeProjectFromBuildQueue
in interface BuildsManager
BuildManagerException
BuildsManager.removeProjectFromBuildQueue(int)
public void removeProjectFromBuildQueue(int projectId, int buildDefinitionId, int trigger, String projectName, int projectGroupId) throws BuildManagerException
BuildsManager
removeProjectFromBuildQueue
in interface BuildsManager
BuildManagerException
BuildsManager#removeProjectFromBuildQueue(int, int, int, String)
public void removeProjectFromCheckoutQueue(int projectId) throws BuildManagerException
BuildsManager
removeProjectFromCheckoutQueue
in interface BuildsManager
BuildManagerException
BuildsManager.removeProjectFromCheckoutQueue(int)
public void removeProjectsFromBuildQueue(int[] projectIds)
BuildsManager
removeProjectsFromBuildQueue
in interface BuildsManager
BuildsManager.removeProjectsFromBuildQueue(int[])
public void removeProjectsFromCheckoutQueue(int[] projectIds)
BuildsManager
removeProjectsFromCheckoutQueue
in interface BuildsManager
BuildsManager.removeProjectsFromCheckoutQueue(int[])
public void removeProjectsFromCheckoutQueueWithHashcodes(int[] hashcodes) throws BuildManagerException
BuildsManager
removeProjectsFromCheckoutQueueWithHashcodes
in interface BuildsManager
BuildManagerException
BuildsManager.removeProjectsFromCheckoutQueueWithHashcodes(int[])
public void removeProjectsFromBuildQueueWithHashcodes(int[] hashcodes) throws BuildManagerException
BuildsManager
removeProjectsFromBuildQueueWithHashcodes
in interface BuildsManager
BuildManagerException
BuildsManager.removeProjectsFromBuildQueueWithHashcodes(int[])
public boolean removeProjectGroupFromPrepareBuildQueue(int projectGroupId, String scmRootAddress) throws BuildManagerException
removeProjectGroupFromPrepareBuildQueue
in interface BuildsManager
BuildManagerException
public void addOverallBuildQueue(BuildQueue buildQueue) throws BuildManagerException
BuildsManager
addOverallBuildQueue
in interface BuildsManager
BuildManagerException
- TODOBuildsManager.addOverallBuildQueue(BuildQueue)
public void removeOverallBuildQueue(int overallBuildQueueId) throws BuildManagerException
BuildsManager
removeOverallBuildQueue
in interface BuildsManager
BuildManagerException
BuildsManager.removeOverallBuildQueue(int)
public Map<Integer,OverallBuildQueue> getOverallBuildQueues()
public Map<String,BuildProjectTask> getCurrentBuilds() throws BuildManagerException
BuildsManager
getCurrentBuilds
in interface BuildsManager
BuildManagerException
BuildsManager.getCurrentBuilds()
public Map<String,CheckOutTask> getCurrentCheckouts() throws BuildManagerException
BuildsManager
getCurrentCheckouts
in interface BuildsManager
BuildManagerException
BuildsManager.getCurrentCheckouts()
public Map<String,List<BuildProjectTask>> getProjectsInBuildQueues() throws BuildManagerException
BuildsManager
getProjectsInBuildQueues
in interface BuildsManager
BuildManagerException
BuildsManager.getProjectsInBuildQueues()
public Map<String,List<CheckOutTask>> getProjectsInCheckoutQueues() throws BuildManagerException
BuildsManager
getProjectsInCheckoutQueues
in interface BuildsManager
BuildManagerException
BuildsManager.getProjectsInCheckoutQueues()
public boolean cancelAllPrepareBuilds() throws BuildManagerException
cancelAllPrepareBuilds
in interface BuildsManager
BuildManagerException
BuildsManager.cancelAllPrepareBuilds()
public boolean isBuildInProgress()
BuildsManager
isBuildInProgress
in interface BuildsManager
BuildsManager.isBuildInProgress()
public boolean isProjectCurrentlyPreparingBuild(int projectId) throws BuildManagerException
BuildsManager
isProjectCurrentlyPreparingBuild
in interface BuildsManager
BuildManagerException
public PrepareBuildProjectsTask getCurrentProjectInPrepareBuild() throws BuildManagerException
BuildsManager
getCurrentProjectInPrepareBuild
in interface BuildsManager
BuildManagerException
public List<PrepareBuildProjectsTask> getProjectsInPrepareBuildQueue() throws BuildManagerException
BuildsManager
getProjectsInPrepareBuildQueue
in interface BuildsManager
BuildManagerException
public boolean removeProjectFromPrepareBuildQueue(int projectGroupId, int scmRootId) throws BuildManagerException
BuildsManager
removeProjectFromPrepareBuildQueue
in interface BuildsManager
BuildManagerException
public void removeProjectsFromPrepareBuildQueueWithHashCodes(int[] hashCodes) throws BuildManagerException
BuildsManager
removeProjectsFromPrepareBuildQueueWithHashCodes
in interface BuildsManager
BuildManagerException
public OverallBuildQueue getOverallBuildQueueWhereProjectsInGroupAreQueued(int projectGroupId) throws BuildManagerException
BuildManagerException
public org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor getPrepareBuildTaskQueueExecutor() throws BuildManagerException
BuildManagerException
public boolean isProjectCurrentlyBeingCheckedOut(int projectId) throws BuildManagerException
BuildsManager
isProjectCurrentlyBeingCheckedOut
in interface BuildsManager
BuildManagerException
public boolean isAnyProjectCurrentlyBuilding(int[] projectIds) throws BuildManagerException
BuildsManager
isAnyProjectCurrentlyBuilding
in interface BuildsManager
BuildManagerException
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.Contextualizable
org.codehaus.plexus.context.ContextException
public void setContainer(org.codehaus.plexus.PlexusContainer container)
public org.codehaus.plexus.taskqueue.TaskQueue getPrepareBuildQueue()
public void setPrepareBuildQueue(org.codehaus.plexus.taskqueue.TaskQueue prepareBuildQueue)
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 |