public class BambooSpecsManagerImpl extends Object implements BambooSpecsManager
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_SPECS_LOGS_RECORDS |
| Constructor and Description |
|---|
BambooSpecsManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
List<VcsLocationBambooSpecsState> |
findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId,
int limit)
Return latest
limit entries from repositoryId |
Collection<Long> |
findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState)
Returns ids pf RSS-managed deployment projects that have been updated in RSS runs other then the one supplied.
|
Optional<VcsLocationBambooSpecsState> |
findLatestState(long rootVcsRepositoryId,
String branch) |
Collection<PlanKey> |
findPlansInOtherStates(VcsLocationBambooSpecsState specsState)
Returns RSS-managed plans that have been updated in RSS runs other then the one supplied.
|
Optional<VcsBambooSpecsSource> |
findSourceById(long specsStateId) |
List<VcsLocationBambooSpecsState> |
getUnfinishedSpecsScans() |
long |
removeOrphanedSpecStates()
Cleanup Bamboo Specs states DB records and log files.
|
void |
save(VcsBambooSpecsSource vcsBambooSpecsSource) |
void |
save(VcsLocationBambooSpecsState vcsLocationBambooSpecsState) |
void |
updateAfterSpecsImport(VcsLocationBambooSpecsState vcsLocationBambooSpecsState,
VcsLocationBambooSpecsState.SpecsImportState specsImportState,
String logFilename) |
public static final int MAX_SPECS_LOGS_RECORDS
public Optional<VcsLocationBambooSpecsState> findLatestState(long rootVcsRepositoryId, String branch)
findLatestState in interface BambooSpecsManagerpublic void save(VcsLocationBambooSpecsState vcsLocationBambooSpecsState)
save in interface BambooSpecsManagerpublic void save(VcsBambooSpecsSource vcsBambooSpecsSource)
save in interface BambooSpecsManagerpublic Optional<VcsBambooSpecsSource> findSourceById(long specsStateId)
findSourceById in interface BambooSpecsManager@NotNull public Collection<PlanKey> findPlansInOtherStates(VcsLocationBambooSpecsState specsState)
BambooSpecsManagerfindPlansInOtherStates in interface BambooSpecsManager@NotNull public Collection<Long> findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState)
BambooSpecsManagerfindDeploymentProjectsInOtherStates in interface BambooSpecsManager@NotNull public List<VcsLocationBambooSpecsState> findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId, int limit)
BambooSpecsManagerlimit entries from repositoryIdfindByVcsLocationIdOrderBySpecsExecutionDate in interface BambooSpecsManagerpublic void updateAfterSpecsImport(VcsLocationBambooSpecsState vcsLocationBambooSpecsState, VcsLocationBambooSpecsState.SpecsImportState specsImportState, String logFilename)
updateAfterSpecsImport in interface BambooSpecsManagerpublic long removeOrphanedSpecStates()
removeOrphanedSpecStates in interface BambooSpecsManagerpublic List<VcsLocationBambooSpecsState> getUnfinishedSpecsScans()
getUnfinishedSpecsScans in interface BambooSpecsManagerCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.