org.apache.continuum.distributed.transport.slave
Interface SlaveBuildAgentTransportService

All Known Implementing Classes:
SlaveBuildAgentTransportClient, SlaveBuildAgentTransportServer

public interface SlaveBuildAgentTransportService

SlaveBuildAgentTransportService


Method Summary
 Boolean buildProjects(List<Map<String,Object>> projectsBuildContext)
           
 Boolean cancelBuild()
           
 void executeDirectoryPurge(String directoryType, int daysOlder, int retentionCount, boolean deleteAll)
          Execute a directory purge on the build agent
 String generateWorkingCopyContent(int projectId, String directory, String baseUrl, String imagesBaseUrl)
           
 List<Map<String,String>> getAvailableInstallations()
           
 String getBuildAgentPlatform()
          Get build agent's platform.
 Map<String,Object> getBuildResult(int projectId)
           
 Integer getBuildSizeOfAgent()
           
 Map<String,Object> getListener(String releaseId)
           
 String getPreparedReleaseName(String releaseId)
           
 Map<String,Object> getProjectCurrentlyBuilding()
           
 Map<String,Object> getProjectCurrentlyPreparingBuild()
           
 Map<String,Object> getProjectFile(int projectId, String directory, String filename)
           
 List<Map<String,Object>> getProjectsAndBuildDefinitionsCurrentlyPreparingBuild()
           
 List<Map<String,Object>> getProjectsAndBuildDefinitionsInPrepareBuildQueue()
           
 List<Map<String,Object>> getProjectsInBuildQueue()
           
 List<Map<String,Object>> getProjectsInPrepareBuildQueue()
           
 Map getReleasePluginParameters(int projectId, String pomFilename)
           
 Map<String,Object> getReleaseResult(String releaseId)
           
 Boolean isProjectCurrentlyBuilding(int projectId, int buildDefinitionId)
           
 Boolean isProjectCurrentlyPreparingBuild(int projectId, int buildDefinitionId)
           
 Boolean isProjectGroupCurrentlyPreparingBuild(int projectGroupId)
           
 Boolean isProjectGroupInPrepareBuildQueue(int projectGroupId)
           
 Boolean isProjectGroupInQueue(int projectGroupId)
           
 Boolean isProjectInBuildQueue(int projectId, int buildDefinitionId)
           
 Boolean isProjectInPrepareBuildQueue(int projectId, int buildDefinitionId)
           
 Boolean isProjectScmRootInQueue(int projectScmRootId, List<Integer> projectIds)
           
 Boolean ping()
           
 List<Map<String,String>> processProject(int projectId, String pomFilename, boolean autoVersionSubmodules)
           
 String releaseCleanup(String releaseId)
           
 Boolean releasePerform(String releaseId, String goals, String arguments, boolean useReleaseProfile, Map repository, String username)
           
 String releasePerformFromScm(String goals, String arguments, boolean useReleaseProfile, Map repository, String scmUrl, String scmUsername, String scmPassword, String scmTag, String scmTagBase, Map environments, String username)
           
 String releasePrepare(Map project, Properties properties, Map releaseVersion, Map developmentVersion, Map environments, String username)
           
 Boolean releaseRollback(String releaseId, int projectId)
           
 Boolean removeFromBuildQueue(int projectId, int buildDefinitionId)
           
 Boolean removeFromBuildQueue(List<String> hashCodes)
           
 Boolean removeFromPrepareBuildQueue(int projectGroupId, int scmRootId)
           
 Boolean removeFromPrepareBuildQueue(List<String> hashCodes)
           
 Boolean removeListener(String releaseId)
           
 

Method Detail

buildProjects

Boolean buildProjects(List<Map<String,Object>> projectsBuildContext)
                      throws Exception
Throws:
Exception

getBuildResult

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

getProjectCurrentlyBuilding

Map<String,Object> getProjectCurrentlyBuilding()
                                               throws Exception
Throws:
Exception

getAvailableInstallations

List<Map<String,String>> getAvailableInstallations()
                                                   throws Exception
Throws:
Exception

ping

Boolean ping()
             throws Exception
Throws:
Exception

cancelBuild

Boolean cancelBuild()
                    throws Exception
Throws:
Exception

generateWorkingCopyContent

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

getProjectFile

Map<String,Object> getProjectFile(int projectId,
                                  String directory,
                                  String filename)
                                  throws Exception
Throws:
Exception

getReleasePluginParameters

Map getReleasePluginParameters(int projectId,
                               String pomFilename)
                               throws Exception
Throws:
Exception

processProject

List<Map<String,String>> processProject(int projectId,
                                        String pomFilename,
                                        boolean autoVersionSubmodules)
                                        throws Exception
Throws:
Exception

releasePrepare

String releasePrepare(Map project,
                      Properties properties,
                      Map releaseVersion,
                      Map developmentVersion,
                      Map environments,
                      String username)
                      throws Exception
Throws:
Exception

getReleaseResult

Map<String,Object> getReleaseResult(String releaseId)
                                    throws Exception
Throws:
Exception

getListener

Map<String,Object> getListener(String releaseId)
                               throws Exception
Throws:
Exception

removeListener

Boolean removeListener(String releaseId)
                       throws Exception
Throws:
Exception

getPreparedReleaseName

String getPreparedReleaseName(String releaseId)
                              throws Exception
Throws:
Exception

releasePerform

Boolean releasePerform(String releaseId,
                       String goals,
                       String arguments,
                       boolean useReleaseProfile,
                       Map repository,
                       String username)
                       throws Exception
Throws:
Exception

releasePerformFromScm

String releasePerformFromScm(String goals,
                             String arguments,
                             boolean useReleaseProfile,
                             Map repository,
                             String scmUrl,
                             String scmUsername,
                             String scmPassword,
                             String scmTag,
                             String scmTagBase,
                             Map environments,
                             String username)
                             throws Exception
Throws:
Exception

releaseCleanup

String releaseCleanup(String releaseId)
                      throws Exception
Throws:
Exception

releaseRollback

Boolean releaseRollback(String releaseId,
                        int projectId)
                        throws Exception
Throws:
Exception

getBuildSizeOfAgent

Integer getBuildSizeOfAgent()
                            throws Exception
Throws:
Exception

getProjectsInPrepareBuildQueue

List<Map<String,Object>> getProjectsInPrepareBuildQueue()
                                                        throws Exception
Throws:
Exception

getProjectsAndBuildDefinitionsInPrepareBuildQueue

List<Map<String,Object>> getProjectsAndBuildDefinitionsInPrepareBuildQueue()
                                                                           throws Exception
Throws:
Exception

getProjectsInBuildQueue

List<Map<String,Object>> getProjectsInBuildQueue()
                                                 throws Exception
Throws:
Exception

getProjectCurrentlyPreparingBuild

Map<String,Object> getProjectCurrentlyPreparingBuild()
                                                     throws Exception
Throws:
Exception

getProjectsAndBuildDefinitionsCurrentlyPreparingBuild

List<Map<String,Object>> getProjectsAndBuildDefinitionsCurrentlyPreparingBuild()
                                                                               throws Exception
Throws:
Exception

isProjectGroupInQueue

Boolean isProjectGroupInQueue(int projectGroupId)
                              throws Exception
Throws:
Exception

isProjectScmRootInQueue

Boolean isProjectScmRootInQueue(int projectScmRootId,
                                List<Integer> projectIds)
                                throws Exception
Throws:
Exception

isProjectCurrentlyBuilding

Boolean isProjectCurrentlyBuilding(int projectId,
                                   int buildDefinitionId)
                                   throws Exception
Throws:
Exception

isProjectInBuildQueue

Boolean isProjectInBuildQueue(int projectId,
                              int buildDefinitionId)
                              throws Exception
Throws:
Exception

isProjectCurrentlyPreparingBuild

Boolean isProjectCurrentlyPreparingBuild(int projectId,
                                         int buildDefinitionId)
                                         throws Exception
Throws:
Exception

isProjectInPrepareBuildQueue

Boolean isProjectInPrepareBuildQueue(int projectId,
                                     int buildDefinitionId)
                                     throws Exception
Throws:
Exception

isProjectGroupInPrepareBuildQueue

Boolean isProjectGroupInPrepareBuildQueue(int projectGroupId)
                                          throws Exception
Throws:
Exception

isProjectGroupCurrentlyPreparingBuild

Boolean isProjectGroupCurrentlyPreparingBuild(int projectGroupId)
                                              throws Exception
Throws:
Exception

removeFromPrepareBuildQueue

Boolean removeFromPrepareBuildQueue(int projectGroupId,
                                    int scmRootId)
                                    throws Exception
Throws:
Exception

removeFromPrepareBuildQueue

Boolean removeFromPrepareBuildQueue(List<String> hashCodes)
                                    throws Exception
Throws:
Exception

removeFromBuildQueue

Boolean removeFromBuildQueue(int projectId,
                             int buildDefinitionId)
                             throws Exception
Throws:
Exception

removeFromBuildQueue

Boolean removeFromBuildQueue(List<String> hashCodes)
                             throws Exception
Throws:
Exception

getBuildAgentPlatform

String getBuildAgentPlatform()
                             throws Exception
Get build agent's platform.

Returns:
The operating system name of the build agent
Throws:
Exception

executeDirectoryPurge

void executeDirectoryPurge(String directoryType,
                           int daysOlder,
                           int retentionCount,
                           boolean deleteAll)
                           throws Exception
Execute a directory purge on the build agent

Parameters:
directoryType - valid types are working and releases
daysOlder - days older
retentionCount - retention count
deleteAll - delete all flag
Throws:
Exception - error that will occur during the purge


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