Class LinkedDeploymentProjectCacheServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.deployments.cache.LinkedDeploymentProjectCacheServiceImpl
-
- All Implemented Interfaces:
LinkedDeploymentProjectCacheService
public class LinkedDeploymentProjectCacheServiceImpl extends Object implements LinkedDeploymentProjectCacheService
-
-
Constructor Summary
Constructors Constructor Description LinkedDeploymentProjectCacheServiceImpl(CachedPlanManager cachedPlanManager, DeploymentProjectDao deploymentProjectDao, com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(@NotNull InternalDeploymentProject deploymentProject)
@NotNull List<LinkedDeploymentProject>
getPlanAndBranchesRelatedDeployments(@NotNull PlanKey masterOrBranchKey)
Retrieve list of deployment projects associated with any of the branches in the plan@NotNull List<LinkedDeploymentProject>
getRelatedDeployments(@NotNull PlanKey planKey)
void
init()
void
initialiseCache()
void
invalidate(long deploymentProjectId)
void
onNodePromoted(@NotNull NodePromotedEvent event)
void
refresh(@NotNull InternalDeploymentProject deploymentProject)
-
-
-
Constructor Detail
-
LinkedDeploymentProjectCacheServiceImpl
public LinkedDeploymentProjectCacheServiceImpl(CachedPlanManager cachedPlanManager, DeploymentProjectDao deploymentProjectDao, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
initialiseCache
public void initialiseCache()
- Specified by:
initialiseCache
in interfaceLinkedDeploymentProjectCacheService
-
onNodePromoted
@EventListener public void onNodePromoted(@NotNull @NotNull NodePromotedEvent event)
-
invalidate
public void invalidate(long deploymentProjectId)
- Specified by:
invalidate
in interfaceLinkedDeploymentProjectCacheService
-
add
public void add(@NotNull @NotNull InternalDeploymentProject deploymentProject)
-
refresh
public void refresh(@NotNull @NotNull InternalDeploymentProject deploymentProject)
- Specified by:
refresh
in interfaceLinkedDeploymentProjectCacheService
-
getRelatedDeployments
@NotNull public @NotNull List<LinkedDeploymentProject> getRelatedDeployments(@NotNull @NotNull PlanKey planKey)
- Specified by:
getRelatedDeployments
in interfaceLinkedDeploymentProjectCacheService
-
getPlanAndBranchesRelatedDeployments
@NotNull public @NotNull List<LinkedDeploymentProject> getPlanAndBranchesRelatedDeployments(@NotNull @NotNull PlanKey masterOrBranchKey)
Description copied from interface:LinkedDeploymentProjectCacheService
Retrieve list of deployment projects associated with any of the branches in the plan- Specified by:
getPlanAndBranchesRelatedDeployments
in interfaceLinkedDeploymentProjectCacheService
- Parameters:
masterOrBranchKey
- identifies master plan or branch- Returns:
- list of deployment projects
-
-