org.apache.continuum.distributed.transport.slave
Class SlaveBuildAgentTransportClient

Package class diagram package SlaveBuildAgentTransportClient
java.lang.Object
  extended by org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportClient
All Implemented Interfaces:
org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService

public class SlaveBuildAgentTransportClient
extends java.lang.Object
implements org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService

SlaveBuildAgentTransportClient


Constructor Summary
SlaveBuildAgentTransportClient(java.net.URL serviceUrl)
           
SlaveBuildAgentTransportClient(java.net.URL serviceUrl, java.lang.String login, java.lang.String password)
           
 
Method Summary
 java.lang.Boolean buildProjects(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> projectsBuildContext)
           
 java.lang.Boolean cancelBuild()
           
 java.lang.String generateWorkingCopyContent(int projectId, java.lang.String directory, java.lang.String baseUrl, java.lang.String imagesBaseUrl)
           
 java.util.List<java.util.Map<java.lang.String,java.lang.String>> getAvailableInstallations()
           
 java.util.Map<java.lang.String,java.lang.Object> getBuildResult(int projectId)
           
 java.lang.Integer getBuildSizeOfAgent()
           
 java.util.Map getListener(java.lang.String releaseId)
           
 java.lang.String getPreparedReleaseName(java.lang.String releaseId)
           
 java.util.Map<java.lang.String,java.lang.Object> getProjectCurrentlyBuilding()
           
 java.util.Map<java.lang.String,java.lang.Object> getProjectCurrentlyPreparingBuild()
           
 java.lang.String getProjectFileContent(int projectId, java.lang.String directory, java.lang.String filename)
           
 java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getProjectsInBuildQueue()
           
 java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getProjectsInPrepareBuildQueue()
           
 java.util.Map getReleasePluginParameters(int projectId, java.lang.String pomFilename)
           
 java.util.Map<java.lang.String,java.lang.Object> getReleaseResult(java.lang.String releaseId)
           
 java.lang.Boolean isProjectCurrentlyBuilding(int projectId)
           
 java.lang.Boolean isProjectGroupInQueue(int projectGroupId)
           
 java.lang.Boolean isProjectInBuildQueue(int projectId)
           
 java.lang.Boolean ping()
           
 java.util.List<java.util.Map<java.lang.String,java.lang.String>> processProject(int projectId, java.lang.String pomFilename, boolean autoVersionSubmodules)
           
 java.lang.String releaseCleanup(java.lang.String releaseId)
           
 java.lang.Boolean releasePerform(java.lang.String releaseId, java.lang.String goals, java.lang.String arguments, boolean useReleaseProfile, java.util.Map repository)
           
 java.lang.String releasePerformFromScm(java.lang.String goals, java.lang.String arguments, boolean useReleaseProfile, java.util.Map repository, java.lang.String scmUrl, java.lang.String scmUsername, java.lang.String scmPassword, java.lang.String scmTag, java.lang.String scmTagBase, java.util.Map environments)
           
 java.lang.String releasePrepare(java.util.Map project, java.util.Map properties, java.util.Map releaseVersion, java.util.Map developmentVersion, java.util.Map environments)
           
 java.lang.Boolean releaseRollback(java.lang.String releaseId, int projectId)
           
 java.lang.Boolean removeFromBuildQueue(int projectId, int buildDefinitionId)
           
 java.lang.Boolean removeFromBuildQueue(java.util.List<java.lang.String> hashCodes)
           
 java.lang.Boolean removeFromPrepareBuildQueue(int projectGroupId, int scmRootId)
           
 java.lang.Boolean removeFromPrepareBuildQueue(java.util.List<java.lang.String> hashCodes)
           
 java.lang.Boolean removeListener(java.lang.String releaseId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlaveBuildAgentTransportClient

public SlaveBuildAgentTransportClient(java.net.URL serviceUrl)
                               throws java.lang.Exception
Throws:
java.lang.Exception

SlaveBuildAgentTransportClient

public SlaveBuildAgentTransportClient(java.net.URL serviceUrl,
                                      java.lang.String login,
                                      java.lang.String password)
                               throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

buildProjects

public java.lang.Boolean buildProjects(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> projectsBuildContext)
                                throws java.lang.Exception
Specified by:
buildProjects in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

getAvailableInstallations

public java.util.List<java.util.Map<java.lang.String,java.lang.String>> getAvailableInstallations()
                                                                                           throws java.lang.Exception
Specified by:
getAvailableInstallations in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

getBuildResult

public java.util.Map<java.lang.String,java.lang.Object> getBuildResult(int projectId)
                                                                throws java.lang.Exception
Specified by:
getBuildResult in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

getProjectCurrentlyBuilding

public java.util.Map<java.lang.String,java.lang.Object> getProjectCurrentlyBuilding()
                                                                             throws java.lang.Exception
Specified by:
getProjectCurrentlyBuilding in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

ping

public java.lang.Boolean ping()
                       throws java.lang.Exception
Specified by:
ping in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

cancelBuild

public java.lang.Boolean cancelBuild()
                              throws java.lang.Exception
Specified by:
cancelBuild in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

generateWorkingCopyContent

public java.lang.String generateWorkingCopyContent(int projectId,
                                                   java.lang.String directory,
                                                   java.lang.String baseUrl,
                                                   java.lang.String imagesBaseUrl)
                                            throws java.lang.Exception
Specified by:
generateWorkingCopyContent in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

getProjectFileContent

public java.lang.String getProjectFileContent(int projectId,
                                              java.lang.String directory,
                                              java.lang.String filename)
                                       throws java.lang.Exception
Specified by:
getProjectFileContent in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

getReleasePluginParameters

public java.util.Map getReleasePluginParameters(int projectId,
                                                java.lang.String pomFilename)
                                         throws java.lang.Exception
Specified by:
getReleasePluginParameters in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

processProject

public java.util.List<java.util.Map<java.lang.String,java.lang.String>> processProject(int projectId,
                                                                                       java.lang.String pomFilename,
                                                                                       boolean autoVersionSubmodules)
                                                                                throws java.lang.Exception
Specified by:
processProject in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

releasePrepare

public java.lang.String releasePrepare(java.util.Map project,
                                       java.util.Map properties,
                                       java.util.Map releaseVersion,
                                       java.util.Map developmentVersion,
                                       java.util.Map environments)
                                throws java.lang.Exception
Specified by:
releasePrepare in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

getReleaseResult

public java.util.Map<java.lang.String,java.lang.Object> getReleaseResult(java.lang.String releaseId)
                                                                  throws java.lang.Exception
Specified by:
getReleaseResult in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

getListener

public java.util.Map getListener(java.lang.String releaseId)
                          throws java.lang.Exception
Specified by:
getListener in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

removeListener

public java.lang.Boolean removeListener(java.lang.String releaseId)
                                 throws java.lang.Exception
Specified by:
removeListener in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

getPreparedReleaseName

public java.lang.String getPreparedReleaseName(java.lang.String releaseId)
                                        throws java.lang.Exception
Specified by:
getPreparedReleaseName in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

releasePerform

public java.lang.Boolean releasePerform(java.lang.String releaseId,
                                        java.lang.String goals,
                                        java.lang.String arguments,
                                        boolean useReleaseProfile,
                                        java.util.Map repository)
                                 throws java.lang.Exception
Specified by:
releasePerform in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

releasePerformFromScm

public java.lang.String releasePerformFromScm(java.lang.String goals,
                                              java.lang.String arguments,
                                              boolean useReleaseProfile,
                                              java.util.Map repository,
                                              java.lang.String scmUrl,
                                              java.lang.String scmUsername,
                                              java.lang.String scmPassword,
                                              java.lang.String scmTag,
                                              java.lang.String scmTagBase,
                                              java.util.Map environments)
                                       throws java.lang.Exception
Specified by:
releasePerformFromScm in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

releaseCleanup

public java.lang.String releaseCleanup(java.lang.String releaseId)
                                throws java.lang.Exception
Specified by:
releaseCleanup in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

releaseRollback

public java.lang.Boolean releaseRollback(java.lang.String releaseId,
                                         int projectId)
                                  throws java.lang.Exception
Specified by:
releaseRollback in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

getBuildSizeOfAgent

public java.lang.Integer getBuildSizeOfAgent()
                                      throws java.lang.Exception
Specified by:
getBuildSizeOfAgent in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

getProjectCurrentlyPreparingBuild

public java.util.Map<java.lang.String,java.lang.Object> getProjectCurrentlyPreparingBuild()
                                                                                   throws java.lang.Exception
Specified by:
getProjectCurrentlyPreparingBuild in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

getProjectsInBuildQueue

public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getProjectsInBuildQueue()
                                                                                         throws java.lang.Exception
Specified by:
getProjectsInBuildQueue in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

getProjectsInPrepareBuildQueue

public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getProjectsInPrepareBuildQueue()
                                                                                                throws java.lang.Exception
Specified by:
getProjectsInPrepareBuildQueue in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

isProjectGroupInQueue

public java.lang.Boolean isProjectGroupInQueue(int projectGroupId)
                                        throws java.lang.Exception
Specified by:
isProjectGroupInQueue in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

isProjectCurrentlyBuilding

public java.lang.Boolean isProjectCurrentlyBuilding(int projectId)
                                             throws java.lang.Exception
Specified by:
isProjectCurrentlyBuilding in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

isProjectInBuildQueue

public java.lang.Boolean isProjectInBuildQueue(int projectId)
                                        throws java.lang.Exception
Specified by:
isProjectInBuildQueue in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

removeFromPrepareBuildQueue

public java.lang.Boolean removeFromPrepareBuildQueue(int projectGroupId,
                                                     int scmRootId)
                                              throws java.lang.Exception
Specified by:
removeFromPrepareBuildQueue in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

removeFromPrepareBuildQueue

public java.lang.Boolean removeFromPrepareBuildQueue(java.util.List<java.lang.String> hashCodes)
                                              throws java.lang.Exception
Specified by:
removeFromPrepareBuildQueue in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

removeFromBuildQueue

public java.lang.Boolean removeFromBuildQueue(int projectId,
                                              int buildDefinitionId)
                                       throws java.lang.Exception
Specified by:
removeFromBuildQueue in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception

removeFromBuildQueue

public java.lang.Boolean removeFromBuildQueue(java.util.List<java.lang.String> hashCodes)
                                       throws java.lang.Exception
Specified by:
removeFromBuildQueue in interface org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportService
Throws:
java.lang.Exception