Package com.atlassian.bamboo.repository
Class CacheDescription.FileBased
- java.lang.Object
-
- com.atlassian.bamboo.repository.CacheDescription.FileBased
-
- All Implemented Interfaces:
CacheDescription
- Enclosing interface:
- CacheDescription
public static class CacheDescription.FileBased extends Object implements CacheDescription
Default file based implementation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.repository.CacheDescription
CacheDescription.FileBased
-
-
Constructor Summary
Constructors Constructor Description FileBased(File cacheDir, String description, Collection<ImmutablePlan> plans)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Cache entry description, including all information that is necessary to distinguish one dir from anotherStringgetKey()Unique for givenCacheHandlerkey that would be used to identify which cache the user wants to delete.StringgetLocation()Cache directory locationCollection<ImmutablePlan>getUsingPlans()Collection of Plans that are currently configured to use this cache.booleanisExists()Information whether the cache directory currently exists on the server.
-
-
-
Constructor Detail
-
FileBased
public FileBased(File cacheDir, String description, Collection<ImmutablePlan> plans)
-
-
Method Detail
-
getKey
public String getKey()
Description copied from interface:CacheDescriptionUnique for givenCacheHandlerkey that would be used to identify which cache the user wants to delete.This should be human readable as it will be displayed in the UI to indicate which caches were deleted.
- Specified by:
getKeyin interfaceCacheDescription- Returns:
- unique key identifying the cache directory
- See Also:
CacheHandler.deleteCaches(Collection, com.opensymphony.xwork.ValidationAware)
-
getLocation
public String getLocation()
Description copied from interface:CacheDescriptionCache directory location- Specified by:
getLocationin interfaceCacheDescription- Returns:
- cache location as user readable string
-
getDescription
public String getDescription()
Description copied from interface:CacheDescriptionCache entry description, including all information that is necessary to distinguish one dir from another- Specified by:
getDescriptionin interfaceCacheDescription- Returns:
- cache entry description
-
isExists
public boolean isExists()
Description copied from interface:CacheDescriptionInformation whether the cache directory currently exists on the server.- Specified by:
isExistsin interfaceCacheDescription- Returns:
- true when directory exists
-
getUsingPlans
public Collection<ImmutablePlan> getUsingPlans()
Description copied from interface:CacheDescriptionCollection of Plans that are currently configured to use this cache.- Specified by:
getUsingPlansin interfaceCacheDescription- Returns:
- collection of Plans that are currently configured to use this cache
-
-