org.apache.continuum.builder.distributed.manager
Class DefaultDistributedBuildManager

Package class diagram package DefaultDistributedBuildManager
java.lang.Object
  extended by org.apache.continuum.builder.distributed.manager.DefaultDistributedBuildManager
All Implemented Interfaces:
DistributedBuildManager, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

public class DefaultDistributedBuildManager
extends Object
implements DistributedBuildManager, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

Author:
Maria Catherine Tan

Field Summary
 
Fields inherited from interface org.apache.continuum.builder.distributed.manager.DistributedBuildManager
ROLE
 
Constructor Summary
DefaultDistributedBuildManager()
           
 
Method Summary
 void cancelDistributedBuild(String buildAgentUrl)
           
 void contextualize(org.codehaus.plexus.context.Context context)
           
 String generateWorkingCopyContent(int projectId, String directory, String baseUrl, String imageBaseUrl)
           
 List<Installation> getAvailableInstallations(String buildAgentUrl)
           
 Map<String,Object> getBuildResult(int projectId)
           
 String getFileContent(int projectId, String directory, String filename)
           
 Map<String,BuildProjectTask> getProjectsCurrentlyBuilding()
           
 Map<String,PrepareBuildProjectsTask> getProjectsCurrentlyPreparingBuild()
           
 Map<String,List<BuildProjectTask>> getProjectsInBuildQueue()
           
 Map<String,List<PrepareBuildProjectsTask>> getProjectsInPrepareBuildQueue()
           
 void initialize()
           
 boolean isBuildAgentBusy(String buildAgentUrl)
           
 void prepareBuildProjects(Map<Integer,Integer> projectsBuildDefinitionsMap, int trigger, int projectGroupId, String projectGroupName, String scmRootAddress, int scmRootId)
           
 void reload()
           
 void removeDistributedBuildQueueOfAgent(String buildAgentUrl)
           
 void removeFromBuildQueue(List<String> hashCodes)
           
 void removeFromBuildQueue(String buildAgentUrl, int projectId, int buildDefinitionId)
           
 void removeFromPrepareBuildQueue(List<String> hashCodes)
           
 void removeFromPrepareBuildQueue(String buildAgentUrl, int projectGroupId, int scmRootId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDistributedBuildManager

public DefaultDistributedBuildManager()
Method Detail

contextualize

public void contextualize(org.codehaus.plexus.context.Context context)
                   throws org.codehaus.plexus.context.ContextException
Specified by:
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Throws:
org.codehaus.plexus.context.ContextException

initialize

public void initialize()
                throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

reload

public void reload()
            throws ContinuumException
Specified by:
reload in interface DistributedBuildManager
Throws:
ContinuumException

prepareBuildProjects

public void prepareBuildProjects(Map<Integer,Integer> projectsBuildDefinitionsMap,
                                 int trigger,
                                 int projectGroupId,
                                 String projectGroupName,
                                 String scmRootAddress,
                                 int scmRootId)
                          throws ContinuumException
Specified by:
prepareBuildProjects in interface DistributedBuildManager
Throws:
ContinuumException

removeDistributedBuildQueueOfAgent

public void removeDistributedBuildQueueOfAgent(String buildAgentUrl)
                                        throws ContinuumException
Specified by:
removeDistributedBuildQueueOfAgent in interface DistributedBuildManager
Throws:
ContinuumException

getProjectsInPrepareBuildQueue

public Map<String,List<PrepareBuildProjectsTask>> getProjectsInPrepareBuildQueue()
                                                                          throws ContinuumException
Specified by:
getProjectsInPrepareBuildQueue in interface DistributedBuildManager
Throws:
ContinuumException

getProjectsCurrentlyPreparingBuild

public Map<String,PrepareBuildProjectsTask> getProjectsCurrentlyPreparingBuild()
                                                                        throws ContinuumException
Specified by:
getProjectsCurrentlyPreparingBuild in interface DistributedBuildManager
Throws:
ContinuumException

getProjectsCurrentlyBuilding

public Map<String,BuildProjectTask> getProjectsCurrentlyBuilding()
                                                          throws ContinuumException
Specified by:
getProjectsCurrentlyBuilding in interface DistributedBuildManager
Throws:
ContinuumException

getProjectsInBuildQueue

public Map<String,List<BuildProjectTask>> getProjectsInBuildQueue()
                                                           throws ContinuumException
Specified by:
getProjectsInBuildQueue in interface DistributedBuildManager
Throws:
ContinuumException

isBuildAgentBusy

public boolean isBuildAgentBusy(String buildAgentUrl)
Specified by:
isBuildAgentBusy in interface DistributedBuildManager

cancelDistributedBuild

public void cancelDistributedBuild(String buildAgentUrl)
                            throws ContinuumException
Specified by:
cancelDistributedBuild in interface DistributedBuildManager
Throws:
ContinuumException

getBuildResult

public Map<String,Object> getBuildResult(int projectId)
                                  throws ContinuumException
Specified by:
getBuildResult in interface DistributedBuildManager
Throws:
ContinuumException

getAvailableInstallations

public List<Installation> getAvailableInstallations(String buildAgentUrl)
                                             throws ContinuumException
Specified by:
getAvailableInstallations in interface DistributedBuildManager
Throws:
ContinuumException

generateWorkingCopyContent

public String generateWorkingCopyContent(int projectId,
                                         String directory,
                                         String baseUrl,
                                         String imageBaseUrl)
                                  throws ContinuumException
Specified by:
generateWorkingCopyContent in interface DistributedBuildManager
Throws:
ContinuumException

getFileContent

public String getFileContent(int projectId,
                             String directory,
                             String filename)
                      throws ContinuumException
Specified by:
getFileContent in interface DistributedBuildManager
Throws:
ContinuumException

removeFromPrepareBuildQueue

public void removeFromPrepareBuildQueue(String buildAgentUrl,
                                        int projectGroupId,
                                        int scmRootId)
                                 throws ContinuumException
Specified by:
removeFromPrepareBuildQueue in interface DistributedBuildManager
Throws:
ContinuumException

removeFromBuildQueue

public void removeFromBuildQueue(String buildAgentUrl,
                                 int projectId,
                                 int buildDefinitionId)
                          throws ContinuumException
Specified by:
removeFromBuildQueue in interface DistributedBuildManager
Throws:
ContinuumException

removeFromPrepareBuildQueue

public void removeFromPrepareBuildQueue(List<String> hashCodes)
                                 throws ContinuumException
Specified by:
removeFromPrepareBuildQueue in interface DistributedBuildManager
Throws:
ContinuumException

removeFromBuildQueue

public void removeFromBuildQueue(List<String> hashCodes)
                          throws ContinuumException
Specified by:
removeFromBuildQueue in interface DistributedBuildManager
Throws:
ContinuumException


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.