org.apache.continuum.builder.distributed.manager
Interface DistributedBuildManager

All Known Implementing Classes:
DefaultDistributedBuildManager

public interface DistributedBuildManager


Field Summary
static String ROLE
           
 
Method Summary
 void cancelBuild(int projectId)
           
 void cancelDistributedBuild(String buildAgentUrl)
           
 void cancelGroupBuild(int projectGroupId)
           
 String generateWorkingCopyContent(int projectId, String directory, String baseUrl, String imagesBaseUrl)
           
 List<Installation> getAvailableInstallations(String buildAgentUrl)
           
 String getBuildAgentPlatform(String buildAgentUrl)
           
 String getBuildAgentUrl(int projectId, int buildDefinitionId)
           
 Map<String,Object> getBuildResult(int projectId)
           
 List<ProjectRunSummary> getCurrentRuns()
           
 Map<String,Object> 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()
           
 boolean isAgentAvailable(String buildAgentUrl)
           
 boolean isBuildAgentBusy(String buildAgentUrl)
           
 boolean isProjectCurrentlyBuilding(int projectId, int buildDefinitionId)
           
 boolean isProjectCurrentlyPreparingBuild(int projectId, int buildDefinitionId)
           
 boolean isProjectInAnyBuildQueue(int projectId, int buildDefinitionId)
           
 boolean isProjectInAnyPrepareBuildQueue(int projectId, int buildDefinitionId)
           
 boolean pingBuildAgent(String buildAgentUrl)
           
 void prepareBuildProjects(Map<Integer,Integer> projectsBuildDefinitionsMap, BuildTrigger buildTrigger, int projectGroupId, String projectGroupName, String scmRootAddress, int scmRootId, List<ProjectScmRoot> scmRoots)
           
 void reload()
           
 void removeCurrentRun(int projectId, int buildDefinitionId)
           
 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 buildAgnetUrl, int projectGroupId, int scmRootId)
           
 void update(BuildAgentConfiguration buildAgent)
           
 

Field Detail

ROLE

static final String ROLE
Method Detail

cancelDistributedBuild

void cancelDistributedBuild(String buildAgentUrl)
                            throws ContinuumException
Throws:
ContinuumException

reload

void reload()
            throws ContinuumException
Throws:
ContinuumException

update

void update(BuildAgentConfiguration buildAgent)
            throws ContinuumException
Throws:
ContinuumException

removeDistributedBuildQueueOfAgent

void removeDistributedBuildQueueOfAgent(String buildAgentUrl)
                                        throws ContinuumException
Throws:
ContinuumException

isBuildAgentBusy

boolean isBuildAgentBusy(String buildAgentUrl)

getAvailableInstallations

List<Installation> getAvailableInstallations(String buildAgentUrl)
                                             throws ContinuumException
Throws:
ContinuumException

getBuildAgentPlatform

String getBuildAgentPlatform(String buildAgentUrl)
                             throws ContinuumException
Throws:
ContinuumException

getProjectsInPrepareBuildQueue

Map<String,List<PrepareBuildProjectsTask>> getProjectsInPrepareBuildQueue()
                                                                          throws ContinuumException
Throws:
ContinuumException

getProjectsInBuildQueue

Map<String,List<BuildProjectTask>> getProjectsInBuildQueue()
                                                           throws ContinuumException
Throws:
ContinuumException

getBuildResult

Map<String,Object> getBuildResult(int projectId)
                                  throws ContinuumException
Throws:
ContinuumException

generateWorkingCopyContent

String generateWorkingCopyContent(int projectId,
                                  String directory,
                                  String baseUrl,
                                  String imagesBaseUrl)
                                  throws ContinuumException
Throws:
ContinuumException

getFileContent

Map<String,Object> getFileContent(int projectId,
                                  String directory,
                                  String filename)
                                  throws ContinuumException
Throws:
ContinuumException

prepareBuildProjects

void prepareBuildProjects(Map<Integer,Integer> projectsBuildDefinitionsMap,
                          BuildTrigger buildTrigger,
                          int projectGroupId,
                          String projectGroupName,
                          String scmRootAddress,
                          int scmRootId,
                          List<ProjectScmRoot> scmRoots)
                          throws ContinuumException,
                                 NoBuildAgentException,
                                 NoBuildAgentInGroupException
Throws:
ContinuumException
NoBuildAgentException
NoBuildAgentInGroupException

getProjectsCurrentlyPreparingBuild

Map<String,PrepareBuildProjectsTask> getProjectsCurrentlyPreparingBuild()
                                                                        throws ContinuumException
Throws:
ContinuumException

getProjectsCurrentlyBuilding

Map<String,BuildProjectTask> getProjectsCurrentlyBuilding()
                                                          throws ContinuumException
Throws:
ContinuumException

removeFromPrepareBuildQueue

void removeFromPrepareBuildQueue(String buildAgnetUrl,
                                 int projectGroupId,
                                 int scmRootId)
                                 throws ContinuumException
Throws:
ContinuumException

removeFromPrepareBuildQueue

void removeFromPrepareBuildQueue(List<String> hashCodes)
                                 throws ContinuumException
Throws:
ContinuumException

removeFromBuildQueue

void removeFromBuildQueue(String buildAgentUrl,
                          int projectId,
                          int buildDefinitionId)
                          throws ContinuumException
Throws:
ContinuumException

removeFromBuildQueue

void removeFromBuildQueue(List<String> hashCodes)
                          throws ContinuumException
Throws:
ContinuumException

isAgentAvailable

boolean isAgentAvailable(String buildAgentUrl)
                         throws ContinuumException
Throws:
ContinuumException

pingBuildAgent

boolean pingBuildAgent(String buildAgentUrl)
                       throws ContinuumException
Throws:
ContinuumException

isProjectInAnyPrepareBuildQueue

boolean isProjectInAnyPrepareBuildQueue(int projectId,
                                        int buildDefinitionId)
                                        throws ContinuumException
Throws:
ContinuumException

isProjectInAnyBuildQueue

boolean isProjectInAnyBuildQueue(int projectId,
                                 int buildDefinitionId)
                                 throws ContinuumException
Throws:
ContinuumException

isProjectCurrentlyPreparingBuild

boolean isProjectCurrentlyPreparingBuild(int projectId,
                                         int buildDefinitionId)
                                         throws ContinuumException
Throws:
ContinuumException

isProjectCurrentlyBuilding

boolean isProjectCurrentlyBuilding(int projectId,
                                   int buildDefinitionId)
                                   throws ContinuumException
Throws:
ContinuumException

getBuildAgentUrl

String getBuildAgentUrl(int projectId,
                        int buildDefinitionId)
                        throws ContinuumException
Throws:
ContinuumException

getCurrentRuns

List<ProjectRunSummary> getCurrentRuns()

removeCurrentRun

void removeCurrentRun(int projectId,
                      int buildDefinitionId)

cancelBuild

void cancelBuild(int projectId)
                 throws ContinuumException
Throws:
ContinuumException

cancelGroupBuild

void cancelGroupBuild(int projectGroupId)
                      throws ContinuumException
Throws:
ContinuumException


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