public class DefaultReleaseManager extends Object implements ReleaseManager
Modifier and Type | Field and Description |
---|---|
static String |
SPRING_CLOUD_DEPLOYER_COUNT |
Constructor and Description |
---|
DefaultReleaseManager(ReleaseRepository releaseRepository,
AppDeployerDataRepository appDeployerDataRepository,
DeployerRepository deployerRepository,
ReleaseAnalyzer releaseAnalyzer,
AppDeploymentRequestFactory appDeploymentRequestFactory,
SpringCloudDeployerApplicationManifestReader applicationManifestReader) |
Modifier and Type | Method and Description |
---|---|
ReleaseAnalysisReport |
createReport(Release existingRelease,
Release replacingRelease,
boolean initial,
boolean isForceUpdate,
List<String> appNamesToUpgrade)
Create a report of what apps should be updated and deleted upon upgrade.
|
Release |
delete(Release release)
Delete the release
|
Collection<String> |
getSupportedKinds()
Return a supported application kinds.
|
Release |
install(Release newRelease)
Install the requested release.
|
Release |
status(Release release)
Get the status of the release, by querying the database.
|
public static final String SPRING_CLOUD_DEPLOYER_COUNT
public DefaultReleaseManager(ReleaseRepository releaseRepository, AppDeployerDataRepository appDeployerDataRepository, DeployerRepository deployerRepository, ReleaseAnalyzer releaseAnalyzer, AppDeploymentRequestFactory appDeploymentRequestFactory, SpringCloudDeployerApplicationManifestReader applicationManifestReader)
public Collection<String> getSupportedKinds()
ReleaseManager
getSupportedKinds
in interface ReleaseManager
public Release install(Release newRelease)
ReleaseManager
install
in interface ReleaseManager
newRelease
- the requested releasepublic ReleaseAnalysisReport createReport(Release existingRelease, Release replacingRelease, boolean initial, boolean isForceUpdate, List<String> appNamesToUpgrade)
ReleaseManager
createReport
in interface ReleaseManager
existingRelease
- the existing release that is deployedreplacingRelease
- the release that is to be deployed in place of the existing
releaseinitial
- the flag indicating this is initial report creationisForceUpdate
- the flag indicating the upgrade is by forceappNamesToUpgrade
- the application names to force upgradepublic Release status(Release release)
ReleaseManager
ReleaseStateUpdateService
is
scheduled ot update the state in the database periodically.status
in interface ReleaseManager
release
- the release to update state forpublic Release delete(Release release)
ReleaseManager
delete
in interface ReleaseManager
release
- the release to deleteCopyright © 2018 Pivotal Software, Inc.. All rights reserved.