public interface ReleaseRepositoryCustom
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.
|
Release findLatestRelease(String releaseName)
releaseName
- the name of the release{@link
- ReleaseNotFoundException} if no Release for the given name can be found.Release findLatestDeployedRelease(String releaseName)
releaseName
- the name of the release{@link
- ReleaseNotFoundException} if no deployed Release for the given name can be found.Release findLatestReleaseForUpdate(String releaseName)
releaseName
- the name of the release{@link
- ReleaseNotFoundException} if no latest Release (with the deployed/deleted status) for the given
name can be found.Release findReleaseToRollback(String releaseName)
releaseName
- the name of the release to rollback{@link
- ReleaseNotFoundException} if no latest Release found to rollback to.Release findByNameAndVersion(String releaseName, int version)
releaseName
- the name of the releaseversion
- the version of the releaseReleaseNotFoundException
if no Release for the given name and version
can be found.List<Release> findReleaseRevisions(String releaseName, Integer revisions)
releaseName
- the name of the releaserevisions
- the maximum number of revisions of the release to look forSkipperException
- if no Release for the given name can be found.List<Release> findLatestDeployedOrFailed(String releaseName)
releaseName
- the name is the wildcard expressionList<Release> findLatestDeployedOrFailed()
Release findLatestReleaseIfDeleted(String releaseName)
StatusCode.DELETED
.releaseName
- the name of the releaseCopyright © 2018 Pivotal Software, Inc.. All rights reserved.