public class ReleaseService extends Object
ReleaseManager
Constructor and Description |
---|
ReleaseService(PackageMetadataRepository packageMetadataRepository,
ReleaseRepository releaseRepository,
PackageService packageService,
ReleaseManagerFactory releaseManagerFactory,
DeployerRepository deployerRepository,
PackageMetadataService packageMetadataService) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.cloud.skipper.domain.Release |
createInitialRelease(org.springframework.cloud.skipper.domain.InstallProperties installProperties,
org.springframework.cloud.skipper.domain.Package packageToInstall,
int releaseVersion) |
protected org.springframework.cloud.skipper.domain.Info |
createNewInfo() |
ReleaseAnalysisReport |
createReport(org.springframework.cloud.skipper.domain.Release existingRelease,
org.springframework.cloud.skipper.domain.Release replacingRelease) |
org.springframework.cloud.skipper.domain.Release |
delete(String releaseName)
Delete the release.
|
org.springframework.cloud.skipper.domain.Release |
delete(String releaseName,
boolean deleteReleasePackage)
If the deleteReleasePackage is true deletes the release along with the package it was created from.
|
org.springframework.cloud.skipper.domain.LogInfo |
getLog(String releaseName) |
org.springframework.cloud.skipper.domain.LogInfo |
getLog(String releaseName,
String appName) |
List<org.springframework.cloud.skipper.domain.Release> |
history(String releaseName,
int maxRevisions)
List the history of versions for a given release.
|
org.springframework.cloud.skipper.domain.Release |
install(org.springframework.cloud.skipper.domain.InstallRequest installRequest)
Downloads the package metadata and package zip file specified by PackageIdentifier
property of the DeploymentRequest.
|
org.springframework.cloud.skipper.domain.Release |
install(Long id,
org.springframework.cloud.skipper.domain.InstallProperties installProperties)
Downloads the package metadata and package zip file specified by the given Id and
deploys the package on the target platform.
|
protected org.springframework.cloud.skipper.domain.Release |
install(org.springframework.cloud.skipper.domain.PackageMetadata packageMetadata,
org.springframework.cloud.skipper.domain.InstallProperties installProperties) |
org.springframework.cloud.skipper.domain.Release |
install(org.springframework.cloud.skipper.domain.Release release) |
List<org.springframework.cloud.skipper.domain.Release> |
list()
Get the latest revision of all releases with status of deployed or failed state.
|
List<org.springframework.cloud.skipper.domain.Release> |
list(String releaseNameLike)
List the latest version of releases with status of deployed or failed.
|
org.springframework.cloud.skipper.domain.Manifest |
manifest(String releaseName)
Return the manifest, the final set of instructions to deploy for a given release.
|
org.springframework.cloud.skipper.domain.Manifest |
manifest(String releaseName,
Integer version)
Return the manifest, the final set of instructions to deploy for a given release, given
the name and version.
|
org.springframework.cloud.skipper.domain.Release |
scale(String releaseName,
org.springframework.cloud.skipper.domain.ScaleRequest scaleRequest) |
org.springframework.cloud.skipper.domain.Info |
status(String releaseName)
Return the current status of the release
|
org.springframework.cloud.skipper.domain.Info |
status(String releaseName,
Integer version)
Return the current status of the release given the release and version.
|
protected void |
validateInitialRelease(org.springframework.cloud.skipper.domain.Release release)
Do up front checks before deploying
|
public ReleaseService(PackageMetadataRepository packageMetadataRepository, ReleaseRepository releaseRepository, PackageService packageService, ReleaseManagerFactory releaseManagerFactory, DeployerRepository deployerRepository, PackageMetadataService packageMetadataService)
@Transactional public org.springframework.cloud.skipper.domain.Release install(Long id, org.springframework.cloud.skipper.domain.InstallProperties installProperties)
id
- of the packageinstallProperties
- contains the name of the release, the platfrom to install to,
and configuration values to replace in the package template.org.springframework.cloud.skipper.SkipperException
- if the package to install can not be found.@Transactional public org.springframework.cloud.skipper.domain.Release install(org.springframework.cloud.skipper.domain.InstallRequest installRequest)
installRequest
- the install requestprotected org.springframework.cloud.skipper.domain.Release install(org.springframework.cloud.skipper.domain.PackageMetadata packageMetadata, org.springframework.cloud.skipper.domain.InstallProperties installProperties)
public org.springframework.cloud.skipper.domain.Release install(org.springframework.cloud.skipper.domain.Release release)
@Transactional public org.springframework.cloud.skipper.domain.Release delete(String releaseName)
releaseName
- the name of the release@Transactional public org.springframework.cloud.skipper.domain.Release delete(String releaseName, boolean deleteReleasePackage)
delete(String)
releaseName
- the name of the release to be deleteddeleteReleasePackage
- if true tries to delete the package of the releaseName release@Transactional public org.springframework.cloud.skipper.domain.Info status(String releaseName)
releaseName
- the name of the release@Transactional public org.springframework.cloud.skipper.domain.Info status(String releaseName, Integer version)
releaseName
- name of the releaseversion
- release version@Transactional public org.springframework.cloud.skipper.domain.LogInfo getLog(String releaseName)
@Transactional public org.springframework.cloud.skipper.domain.LogInfo getLog(String releaseName, String appName)
@Transactional public org.springframework.cloud.skipper.domain.Release scale(String releaseName, org.springframework.cloud.skipper.domain.ScaleRequest scaleRequest)
@Transactional public org.springframework.cloud.skipper.domain.Manifest manifest(String releaseName)
releaseName
- the name of the release@Transactional public org.springframework.cloud.skipper.domain.Manifest manifest(String releaseName, Integer version)
releaseName
- the name of the releaseversion
- the release versionprotected org.springframework.cloud.skipper.domain.Info createNewInfo()
@Transactional public ReleaseAnalysisReport createReport(org.springframework.cloud.skipper.domain.Release existingRelease, org.springframework.cloud.skipper.domain.Release replacingRelease)
protected org.springframework.cloud.skipper.domain.Release createInitialRelease(org.springframework.cloud.skipper.domain.InstallProperties installProperties, org.springframework.cloud.skipper.domain.Package packageToInstall, int releaseVersion)
protected void validateInitialRelease(org.springframework.cloud.skipper.domain.Release release)
release
- the initial release object this data provided by the end user.@Transactional public List<org.springframework.cloud.skipper.domain.Release> history(String releaseName, int maxRevisions)
releaseName
- the release name of the release to search formaxRevisions
- the maximum number of revisions to get@Transactional public List<org.springframework.cloud.skipper.domain.Release> list(String releaseNameLike)
releaseNameLike
- the wildcard name of releases to search for@Transactional public List<org.springframework.cloud.skipper.domain.Release> list()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.