org.apache.continuum.release.distributed.manager
Class DefaultDistributedReleaseManager
java.lang.Object
org.apache.continuum.release.distributed.manager.DefaultDistributedReleaseManager
- All Implemented Interfaces:
- DistributedReleaseManager
public class DefaultDistributedReleaseManager
- extends Object
- implements DistributedReleaseManager
Method Summary |
SlaveBuildAgentTransportService |
createSlaveBuildAgentTransportClientConnection(String buildAgentUrl)
|
List<Map<String,Object>> |
getAllReleasesInProgress()
|
String |
getDefaultBuildagent(int projectId)
|
Map<String,Object> |
getListener(String releaseId)
|
PreparedRelease |
getPreparedRelease(String releaseId,
String releaseType)
|
String |
getPreparedReleaseName(String releaseId)
|
Map<String,String> |
getPreparedReleases(String groupId,
String artifactId)
|
Map |
getReleasePluginParameters(int projectId,
String pomFilename)
|
org.apache.maven.shared.release.ReleaseResult |
getReleaseResult(String releaseId)
|
List<Map<String,String>> |
processProject(int projectId,
String pomFilename,
boolean autoVersionSubmodules)
|
String |
releaseCleanup(String releaseId)
|
void |
releasePerform(int projectId,
String releaseId,
String goals,
String arguments,
boolean useReleaseProfile,
LocalRepository repository,
String username)
|
String |
releasePerformFromScm(int projectId,
String goals,
String arguments,
boolean useReleaseProfile,
LocalRepository repository,
String scmUrl,
String scmUsername,
String scmPassword,
String scmTag,
String scmTagBase,
Map environments,
String username)
|
String |
releasePrepare(Project project,
Properties releaseProperties,
Map<String,String> releaseVersion,
Map<String,String> developmentVersion,
Map<String,String> environments,
String username)
|
void |
releaseRollback(String releaseId,
int projectId)
|
void |
removeListener(String releaseId)
|
void |
setBuildResultDao(BuildResultDao buildResultDao)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREPARED_RELEASES_FILENAME
public final String PREPARED_RELEASES_FILENAME
- See Also:
- Constant Field Values
DefaultDistributedReleaseManager
public DefaultDistributedReleaseManager()
getReleasePluginParameters
public Map getReleasePluginParameters(int projectId,
String pomFilename)
throws ContinuumReleaseException,
BuildAgentConfigurationException
- Specified by:
getReleasePluginParameters
in interface DistributedReleaseManager
- Throws:
ContinuumReleaseException
BuildAgentConfigurationException
processProject
public List<Map<String,String>> processProject(int projectId,
String pomFilename,
boolean autoVersionSubmodules)
throws ContinuumReleaseException,
BuildAgentConfigurationException
- Specified by:
processProject
in interface DistributedReleaseManager
- Throws:
ContinuumReleaseException
BuildAgentConfigurationException
releasePrepare
public String releasePrepare(Project project,
Properties releaseProperties,
Map<String,String> releaseVersion,
Map<String,String> developmentVersion,
Map<String,String> environments,
String username)
throws ContinuumReleaseException,
BuildAgentConfigurationException
- Specified by:
releasePrepare
in interface DistributedReleaseManager
- Throws:
ContinuumReleaseException
BuildAgentConfigurationException
getReleaseResult
public org.apache.maven.shared.release.ReleaseResult getReleaseResult(String releaseId)
throws ContinuumReleaseException,
BuildAgentConfigurationException
- Specified by:
getReleaseResult
in interface DistributedReleaseManager
- Throws:
ContinuumReleaseException
BuildAgentConfigurationException
getListener
public Map<String,Object> getListener(String releaseId)
throws ContinuumReleaseException,
BuildAgentConfigurationException
- Specified by:
getListener
in interface DistributedReleaseManager
- Throws:
ContinuumReleaseException
BuildAgentConfigurationException
removeListener
public void removeListener(String releaseId)
throws ContinuumReleaseException,
BuildAgentConfigurationException
- Specified by:
removeListener
in interface DistributedReleaseManager
- Throws:
ContinuumReleaseException
BuildAgentConfigurationException
getPreparedReleaseName
public String getPreparedReleaseName(String releaseId)
throws ContinuumReleaseException
- Specified by:
getPreparedReleaseName
in interface DistributedReleaseManager
- Throws:
ContinuumReleaseException
getPreparedReleases
public Map<String,String> getPreparedReleases(String groupId,
String artifactId)
throws ContinuumReleaseException
- Specified by:
getPreparedReleases
in interface DistributedReleaseManager
- Throws:
ContinuumReleaseException
releasePerform
public void releasePerform(int projectId,
String releaseId,
String goals,
String arguments,
boolean useReleaseProfile,
LocalRepository repository,
String username)
throws ContinuumReleaseException,
BuildAgentConfigurationException
- Specified by:
releasePerform
in interface DistributedReleaseManager
- Throws:
ContinuumReleaseException
BuildAgentConfigurationException
releasePerformFromScm
public String releasePerformFromScm(int projectId,
String goals,
String arguments,
boolean useReleaseProfile,
LocalRepository repository,
String scmUrl,
String scmUsername,
String scmPassword,
String scmTag,
String scmTagBase,
Map environments,
String username)
throws ContinuumReleaseException,
BuildAgentConfigurationException
- Specified by:
releasePerformFromScm
in interface DistributedReleaseManager
- Throws:
ContinuumReleaseException
BuildAgentConfigurationException
releaseRollback
public void releaseRollback(String releaseId,
int projectId)
throws ContinuumReleaseException,
BuildAgentConfigurationException
- Specified by:
releaseRollback
in interface DistributedReleaseManager
- Throws:
ContinuumReleaseException
BuildAgentConfigurationException
releaseCleanup
public String releaseCleanup(String releaseId)
throws ContinuumReleaseException,
BuildAgentConfigurationException
- Specified by:
releaseCleanup
in interface DistributedReleaseManager
- Throws:
ContinuumReleaseException
BuildAgentConfigurationException
getAllReleasesInProgress
public List<Map<String,Object>> getAllReleasesInProgress()
throws ContinuumReleaseException,
BuildAgentConfigurationException
- Specified by:
getAllReleasesInProgress
in interface DistributedReleaseManager
- Throws:
ContinuumReleaseException
BuildAgentConfigurationException
getDefaultBuildagent
public String getDefaultBuildagent(int projectId)
- Specified by:
getDefaultBuildagent
in interface DistributedReleaseManager
getPreparedRelease
public PreparedRelease getPreparedRelease(String releaseId,
String releaseType)
throws ContinuumReleaseException
- Specified by:
getPreparedRelease
in interface DistributedReleaseManager
- Throws:
ContinuumReleaseException
createSlaveBuildAgentTransportClientConnection
public SlaveBuildAgentTransportService createSlaveBuildAgentTransportClientConnection(String buildAgentUrl)
throws MalformedURLException,
Exception
- Throws:
MalformedURLException
Exception
setBuildResultDao
public void setBuildResultDao(BuildResultDao buildResultDao)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.