public class AppDeployerReleaseManager extends Object implements ReleaseManager
Modifier and Type | Field and Description |
---|---|
static String |
SPRING_CLOUD_DEPLOYER_COUNT |
Constructor and Description |
---|
AppDeployerReleaseManager(ReleaseRepository releaseRepository,
AppDeployerDataRepository appDeployerDataRepository,
DeployerRepository deployerRepository,
ReleaseAnalyzer releaseAnalyzer,
AppDeploymentRequestFactory appDeploymentRequestFactory,
org.springframework.cloud.skipper.domain.SpringCloudDeployerApplicationManifestReader applicationManifestReader) |
Modifier and Type | Method and Description |
---|---|
ReleaseAnalysisReport |
createReport(org.springframework.cloud.skipper.domain.Release existingRelease,
org.springframework.cloud.skipper.domain.Release replacingRelease,
boolean initial)
Create a report of what apps should be updated and deleted upon upgrade.
|
org.springframework.cloud.skipper.domain.Release |
delete(org.springframework.cloud.skipper.domain.Release release)
Delete the release
|
org.springframework.cloud.skipper.domain.Release |
install(org.springframework.cloud.skipper.domain.Release releaseInput)
Install the requested release.
|
org.springframework.cloud.skipper.domain.Release |
status(org.springframework.cloud.skipper.domain.Release release)
Get the status of the release, by querying the database.
|
public static final String SPRING_CLOUD_DEPLOYER_COUNT
public AppDeployerReleaseManager(ReleaseRepository releaseRepository, AppDeployerDataRepository appDeployerDataRepository, DeployerRepository deployerRepository, ReleaseAnalyzer releaseAnalyzer, AppDeploymentRequestFactory appDeploymentRequestFactory, org.springframework.cloud.skipper.domain.SpringCloudDeployerApplicationManifestReader applicationManifestReader)
public org.springframework.cloud.skipper.domain.Release install(org.springframework.cloud.skipper.domain.Release releaseInput)
ReleaseManager
install
in interface ReleaseManager
releaseInput
- the requested releasepublic ReleaseAnalysisReport createReport(org.springframework.cloud.skipper.domain.Release existingRelease, org.springframework.cloud.skipper.domain.Release replacingRelease, boolean initial)
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 creationpublic org.springframework.cloud.skipper.domain.Release status(org.springframework.cloud.skipper.domain.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 org.springframework.cloud.skipper.domain.Release delete(org.springframework.cloud.skipper.domain.Release release)
ReleaseManager
delete
in interface ReleaseManager
release
- the release to deleteCopyright © 2018 Pivotal Software, Inc.. All rights reserved.