org.apache.continuum.distributed.transport.slave
Class SlaveBuildAgentTransportServer
java.lang.Object
org.apache.continuum.distributed.transport.slave.SlaveBuildAgentTransportServer
- All Implemented Interfaces:
- SlaveBuildAgentTransportService
public class SlaveBuildAgentTransportServer
- extends Object
- implements SlaveBuildAgentTransportService
ProxyMasterBuildAgentTransportService
Method Summary |
Boolean |
buildProjects(List<Map<String,Object>> projectsBuildContext)
|
Boolean |
cancelBuild()
|
String |
generateWorkingCopyContent(int projectId,
String directory,
String baseUrl,
String imagesBaseUrl)
|
List<Map<String,String>> |
getAvailableInstallations()
|
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()
|
String |
getProjectFileContent(int projectId,
String directory,
String filename)
|
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)
|
Boolean |
isProjectGroupInQueue(int projectGroupId)
|
Boolean |
isProjectInBuildQueue(int projectId)
|
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 |
releasePerformFromScm(String goals,
String arguments,
boolean useReleaseProfile,
Map repository,
String scmUrl,
String scmUsername,
String scmPassword,
String scmTag,
String scmTagBase,
Map environments)
|
String |
releasePrepare(Map project,
Map properties,
Map releaseVersion,
Map developmentVersion,
Map environments)
|
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SlaveBuildAgentTransportServer
public SlaveBuildAgentTransportServer(ContinuumBuildAgentService continuumBuildAgentService)
buildProjects
public Boolean buildProjects(List<Map<String,Object>> projectsBuildContext)
throws Exception
- Specified by:
buildProjects
in interface SlaveBuildAgentTransportService
- Throws:
Exception
getAvailableInstallations
public List<Map<String,String>> getAvailableInstallations()
throws Exception
- Specified by:
getAvailableInstallations
in interface SlaveBuildAgentTransportService
- Throws:
Exception
getBuildResult
public Map<String,Object> getBuildResult(int projectId)
throws Exception
- Specified by:
getBuildResult
in interface SlaveBuildAgentTransportService
- Throws:
Exception
getProjectCurrentlyBuilding
public Map<String,Object> getProjectCurrentlyBuilding()
throws Exception
- Specified by:
getProjectCurrentlyBuilding
in interface SlaveBuildAgentTransportService
- Throws:
Exception
ping
public Boolean ping()
throws Exception
- Specified by:
ping
in interface SlaveBuildAgentTransportService
- Throws:
Exception
cancelBuild
public Boolean cancelBuild()
throws Exception
- Specified by:
cancelBuild
in interface SlaveBuildAgentTransportService
- Throws:
Exception
generateWorkingCopyContent
public String generateWorkingCopyContent(int projectId,
String directory,
String baseUrl,
String imagesBaseUrl)
throws Exception
- Specified by:
generateWorkingCopyContent
in interface SlaveBuildAgentTransportService
- Throws:
Exception
getProjectFileContent
public String getProjectFileContent(int projectId,
String directory,
String filename)
throws Exception
- Specified by:
getProjectFileContent
in interface SlaveBuildAgentTransportService
- Throws:
Exception
getReleasePluginParameters
public Map getReleasePluginParameters(int projectId,
String pomFilename)
throws Exception
- Specified by:
getReleasePluginParameters
in interface SlaveBuildAgentTransportService
- Throws:
Exception
processProject
public List<Map<String,String>> processProject(int projectId,
String pomFilename,
boolean autoVersionSubmodules)
throws Exception
- Specified by:
processProject
in interface SlaveBuildAgentTransportService
- Throws:
Exception
releasePrepare
public String releasePrepare(Map project,
Map properties,
Map releaseVersion,
Map developmentVersion,
Map environments)
throws Exception
- Specified by:
releasePrepare
in interface SlaveBuildAgentTransportService
- Throws:
Exception
getListener
public Map<String,Object> getListener(String releaseId)
throws Exception
- Specified by:
getListener
in interface SlaveBuildAgentTransportService
- Throws:
Exception
getReleaseResult
public Map<String,Object> getReleaseResult(String releaseId)
throws Exception
- Specified by:
getReleaseResult
in interface SlaveBuildAgentTransportService
- Throws:
Exception
removeListener
public Boolean removeListener(String releaseId)
throws Exception
- Specified by:
removeListener
in interface SlaveBuildAgentTransportService
- Throws:
Exception
getPreparedReleaseName
public String getPreparedReleaseName(String releaseId)
throws Exception
- Specified by:
getPreparedReleaseName
in interface SlaveBuildAgentTransportService
- Throws:
Exception
releasePerform
public Boolean releasePerform(String releaseId,
String goals,
String arguments,
boolean useReleaseProfile,
Map repository)
throws Exception
- Specified by:
releasePerform
in interface SlaveBuildAgentTransportService
- Throws:
Exception
releasePerformFromScm
public String releasePerformFromScm(String goals,
String arguments,
boolean useReleaseProfile,
Map repository,
String scmUrl,
String scmUsername,
String scmPassword,
String scmTag,
String scmTagBase,
Map environments)
throws Exception
- Specified by:
releasePerformFromScm
in interface SlaveBuildAgentTransportService
- Throws:
Exception
releaseCleanup
public String releaseCleanup(String releaseId)
throws Exception
- Specified by:
releaseCleanup
in interface SlaveBuildAgentTransportService
- Throws:
Exception
releaseRollback
public Boolean releaseRollback(String releaseId,
int projectId)
throws Exception
- Specified by:
releaseRollback
in interface SlaveBuildAgentTransportService
- Throws:
Exception
getBuildSizeOfAgent
public Integer getBuildSizeOfAgent()
throws Exception
- Specified by:
getBuildSizeOfAgent
in interface SlaveBuildAgentTransportService
- Throws:
Exception
getProjectCurrentlyPreparingBuild
public Map<String,Object> getProjectCurrentlyPreparingBuild()
throws Exception
- Specified by:
getProjectCurrentlyPreparingBuild
in interface SlaveBuildAgentTransportService
- Throws:
Exception
getProjectsInBuildQueue
public List<Map<String,Object>> getProjectsInBuildQueue()
throws Exception
- Specified by:
getProjectsInBuildQueue
in interface SlaveBuildAgentTransportService
- Throws:
Exception
getProjectsInPrepareBuildQueue
public List<Map<String,Object>> getProjectsInPrepareBuildQueue()
throws Exception
- Specified by:
getProjectsInPrepareBuildQueue
in interface SlaveBuildAgentTransportService
- Throws:
Exception
isProjectGroupInQueue
public Boolean isProjectGroupInQueue(int projectGroupId)
throws Exception
- Specified by:
isProjectGroupInQueue
in interface SlaveBuildAgentTransportService
- Throws:
Exception
isProjectCurrentlyBuilding
public Boolean isProjectCurrentlyBuilding(int projectId)
throws Exception
- Specified by:
isProjectCurrentlyBuilding
in interface SlaveBuildAgentTransportService
- Throws:
Exception
isProjectInBuildQueue
public Boolean isProjectInBuildQueue(int projectId)
throws Exception
- Specified by:
isProjectInBuildQueue
in interface SlaveBuildAgentTransportService
- Throws:
Exception
removeFromPrepareBuildQueue
public Boolean removeFromPrepareBuildQueue(int projectGroupId,
int scmRootId)
throws Exception
- Specified by:
removeFromPrepareBuildQueue
in interface SlaveBuildAgentTransportService
- Throws:
Exception
removeFromPrepareBuildQueue
public Boolean removeFromPrepareBuildQueue(List<String> hashCodes)
throws Exception
- Specified by:
removeFromPrepareBuildQueue
in interface SlaveBuildAgentTransportService
- Throws:
Exception
removeFromBuildQueue
public Boolean removeFromBuildQueue(int projectId,
int buildDefinitionId)
throws Exception
- Specified by:
removeFromBuildQueue
in interface SlaveBuildAgentTransportService
- Throws:
Exception
removeFromBuildQueue
public Boolean removeFromBuildQueue(List<String> hashCodes)
throws Exception
- Specified by:
removeFromBuildQueue
in interface SlaveBuildAgentTransportService
- Throws:
Exception
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.