public class ReleaseRepositoryImpl extends Object implements ReleaseRepositoryCustom
Constructor and Description |
---|
ReleaseRepositoryImpl() |
Modifier and Type | Method and Description |
---|---|
Release |
findByNameAndVersion(String releaseName,
int version)
Find the release for the given release name and version
|
List<Release> |
findLatestDeployedOrFailed()
Find the latest status (deployed or failed) of all the releases.
|
List<Release> |
findLatestDeployedOrFailed(String releaseName)
Find the latest status (deployed or failed) of the release, by the name.
|
Release |
findLatestDeployedRelease(String releaseName)
Find the latest in time, release object, by name and with the deployed status.
|
Release |
findLatestRelease(String releaseName)
Find the latest in time, release object, by name.
|
Release |
findLatestReleaseForUpdate(String releaseName)
Find the latest in time, release object, by name whose status is neither unknown nor failed.
|
Release |
findLatestReleaseIfDeleted(String releaseName)
Return the release by the given name if the most recent status of the release is
StatusCode.DELETED . |
List<Release> |
findReleaseRevisions(String releaseName,
Integer revisions)
Find the revisions of the release, by name.
|
Release |
findReleaseToRollback(String releaseName)
Find the release to rollback from the existing version.
|
public Release findLatestRelease(String releaseName)
ReleaseRepositoryCustom
findLatestRelease
in interface ReleaseRepositoryCustom
releaseName
- the name of the releasepublic Release findLatestDeployedRelease(String releaseName)
ReleaseRepositoryCustom
findLatestDeployedRelease
in interface ReleaseRepositoryCustom
releaseName
- the name of the releasepublic Release findLatestReleaseForUpdate(String releaseName)
ReleaseRepositoryCustom
findLatestReleaseForUpdate
in interface ReleaseRepositoryCustom
releaseName
- the name of the releasepublic Release findReleaseToRollback(String releaseName)
ReleaseRepositoryCustom
findReleaseToRollback
in interface ReleaseRepositoryCustom
releaseName
- the name of the release to rollbackpublic Release findByNameAndVersion(String releaseName, int version)
ReleaseRepositoryCustom
findByNameAndVersion
in interface ReleaseRepositoryCustom
releaseName
- the name of the releaseversion
- the version of the releaseReleaseNotFoundException
if no Release for the given name and version
can be found.public List<Release> findReleaseRevisions(String releaseName, Integer revisions)
ReleaseRepositoryCustom
findReleaseRevisions
in interface ReleaseRepositoryCustom
releaseName
- the name of the releaserevisions
- the maximum number of revisions of the release to look forpublic List<Release> findLatestDeployedOrFailed(String releaseName)
ReleaseRepositoryCustom
findLatestDeployedOrFailed
in interface ReleaseRepositoryCustom
releaseName
- the name is the wildcard expressionpublic List<Release> findLatestDeployedOrFailed()
ReleaseRepositoryCustom
findLatestDeployedOrFailed
in interface ReleaseRepositoryCustom
public Release findLatestReleaseIfDeleted(String releaseName)
ReleaseRepositoryCustom
StatusCode.DELETED
.findLatestReleaseIfDeleted
in interface ReleaseRepositoryCustom
releaseName
- the name of the releaseCopyright © 2018 Pivotal Software, Inc.. All rights reserved.