Class CachedDeploymentsSynchronizationOrchestratorImpl
java.lang.Object
com.atlassian.bamboo.deployments.cache.CachedDeploymentsSynchronizationOrchestratorImpl
- All Implemented Interfaces:
CachedDeploymentsSynchronizationOrchestrator
public class CachedDeploymentsSynchronizationOrchestratorImpl
extends Object
implements CachedDeploymentsSynchronizationOrchestrator
-
Constructor Summary
ConstructorsConstructorDescriptionCachedDeploymentsSynchronizationOrchestratorImpl(CachedEnvironmentService cachedEnvironmentService, CachedDeploymentProjectService cachedDeploymentProjectService) -
Method Summary
Modifier and TypeMethodDescriptionvoidsynchronizeDeploymentProjects(@NotNull Set<Long> projectsToRefresh, @NotNull Set<Long> projectsToRemove) Synchronizes deployment projects in the cache by removing and refreshing them; both locally and on other cluster nodes.voidsynchronizeEnvironments(@NotNull Set<Long> requirementSets) Synchronizes environments in the cache based on the provided requirement set IDs.voidsynchronizeEnvironments(@NotNull Set<Long> environmentsToRefresh, @NotNull Set<Long> environmentsToRemove) Synchronizes environments by removing and refreshing them in the cache; both locally and on other cluster nodes.
-
Constructor Details
-
CachedDeploymentsSynchronizationOrchestratorImpl
@Inject public CachedDeploymentsSynchronizationOrchestratorImpl(CachedEnvironmentService cachedEnvironmentService, CachedDeploymentProjectService cachedDeploymentProjectService)
-
-
Method Details
-
synchronizeEnvironments
public void synchronizeEnvironments(@NotNull @NotNull Set<Long> environmentsToRefresh, @NotNull @NotNull Set<Long> environmentsToRemove) Description copied from interface:CachedDeploymentsSynchronizationOrchestratorSynchronizes environments by removing and refreshing them in the cache; both locally and on other cluster nodes.- Specified by:
synchronizeEnvironmentsin interfaceCachedDeploymentsSynchronizationOrchestrator- Parameters:
environmentsToRefresh- the set of environment IDs to refresh in the cacheenvironmentsToRemove- the set of environment IDs to remove from the cache
-
synchronizeEnvironments
Description copied from interface:CachedDeploymentsSynchronizationOrchestratorSynchronizes environments in the cache based on the provided requirement set IDs. This method ensures that the environments associated with the given requirement sets are refreshed in the cache both locally and on other cluster nodes.- Specified by:
synchronizeEnvironmentsin interfaceCachedDeploymentsSynchronizationOrchestrator- Parameters:
requirementSets- the set of requirement set IDs whose associated environments need to be refreshed in the cache
-
synchronizeDeploymentProjects
public void synchronizeDeploymentProjects(@NotNull @NotNull Set<Long> projectsToRefresh, @NotNull @NotNull Set<Long> projectsToRemove) Description copied from interface:CachedDeploymentsSynchronizationOrchestratorSynchronizes deployment projects in the cache by removing and refreshing them; both locally and on other cluster nodes.- Specified by:
synchronizeDeploymentProjectsin interfaceCachedDeploymentsSynchronizationOrchestrator- Parameters:
projectsToRefresh- the set of deployment project IDs to refresh in the cacheprojectsToRemove- the set of deployment project IDs to remove from the cache
-