Package com.atlassian.bamboo.plugins.git
Class GitCacheHandler
java.lang.Object
com.atlassian.bamboo.plugins.git.GitCacheHandler
- All Implemented Interfaces:
 CacheHandler
Implementation of a cache handler for git. This caters for data displayed on the Repository Settings admin page for
 Git repositories.
- Since:
 - 2.6
 - See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionGitCacheHandler(CachedPlanManager cachedPlanManager, BuildDirectoryManager buildDirectoryManager, GitCacheDirectoryUtils gitCacheDirectoryUtils, com.atlassian.sal.api.message.I18nResolver i18nResolver, AgentManager agentManager, AgentCommandSender agentCommandSender, CustomVariableContext customVariableContext, GitConfigurationProvider gitConfigurationProvider)  - 
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteCaches(@NotNull Collection<String> keys, @NotNull com.opensymphony.xwork.ValidationAware feedback) Handles both Git and GitHub repositories.voiddeleteUnusedCaches(@NotNull com.opensymphony.xwork.ValidationAware feedback) Handles both Git and GitHub repositories.@NotNull Collection<CacheDescription>Handles both Git and GitHub repositories.@NotNull StringgetKey()Unique key identifying this provider, for example module key. 
- 
Constructor Details
- 
GitCacheHandler
@Inject public GitCacheHandler(CachedPlanManager cachedPlanManager, BuildDirectoryManager buildDirectoryManager, GitCacheDirectoryUtils gitCacheDirectoryUtils, com.atlassian.sal.api.message.I18nResolver i18nResolver, AgentManager agentManager, AgentCommandSender agentCommandSender, CustomVariableContext customVariableContext, GitConfigurationProvider gitConfigurationProvider)  
 - 
 - 
Method Details
- 
getKey
Description copied from interface:CacheHandlerUnique key identifying this provider, for example module key.- Specified by:
 getKeyin interfaceCacheHandler- Returns:
 - unique key identifying this provider
 
 - 
getCacheDescriptions
Handles both Git and GitHub repositories.- Specified by:
 getCacheDescriptionsin interfaceCacheHandler- Returns:
 - collection of all found caches of given type.
 - See Also:
 
 - 
deleteCaches
public void deleteCaches(@NotNull @NotNull Collection<String> keys, @NotNull @NotNull com.opensymphony.xwork.ValidationAware feedback) Handles both Git and GitHub repositories.- Specified by:
 deleteCachesin interfaceCacheHandler- Parameters:
 keys- keys fromCacheDescription.getKey()feedback- consumer of UI messages- See Also:
 
 - 
deleteUnusedCaches
public void deleteUnusedCaches(@NotNull @NotNull com.opensymphony.xwork.ValidationAware feedback) Handles both Git and GitHub repositories.- Specified by:
 deleteUnusedCachesin interfaceCacheHandler- Parameters:
 feedback- consumer of UI messages- See Also:
 
 
 -