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 BambooSpecsManager
public void save(VcsLocationBambooSpecsState vcsLocationBambooSpecsState)
save
in interface BambooSpecsManager
public void save(VcsBambooSpecsSource vcsBambooSpecsSource)
save
in interface BambooSpecsManager
public Optional<VcsBambooSpecsSource> findSourceById(long specsStateId)
findSourceById
in interface BambooSpecsManager
@NotNull public Collection<PlanKey> findPlansInOtherStates(VcsLocationBambooSpecsState specsState)
BambooSpecsManager
findPlansInOtherStates
in interface BambooSpecsManager
@NotNull public Collection<Long> findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState)
BambooSpecsManager
findDeploymentProjectsInOtherStates
in interface BambooSpecsManager
@NotNull public List<VcsLocationBambooSpecsState> findByVcsLocationIdOrderBySpecsExecutionDate(long repositoryId, int limit)
BambooSpecsManager
limit
entries from repositoryId
findByVcsLocationIdOrderBySpecsExecutionDate
in interface BambooSpecsManager
public void updateAfterSpecsImport(VcsLocationBambooSpecsState vcsLocationBambooSpecsState, VcsLocationBambooSpecsState.SpecsImportState specsImportState, String logFilename)
updateAfterSpecsImport
in interface BambooSpecsManager
public long removeOrphanedSpecStates()
removeOrphanedSpecStates
in interface BambooSpecsManager
public List<VcsLocationBambooSpecsState> getUnfinishedSpecsScans()
getUnfinishedSpecsScans
in interface BambooSpecsManager
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.