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 String
getDescription()
Cache entry description, including all information that is necessary to distinguish one dir from anotherString
getKey()
Unique for givenCacheHandler
key that would be used to identify which cache the user wants to delete.String
getLocation()
Cache directory locationCollection<ImmutablePlan>
getUsingPlans()
Collection of Plans that are currently configured to use this cache.boolean
isExists()
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:CacheDescription
Unique for givenCacheHandler
key 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:
getKey
in 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:CacheDescription
Cache directory location- Specified by:
getLocation
in interfaceCacheDescription
- Returns:
- cache location as user readable string
-
getDescription
public String getDescription()
Description copied from interface:CacheDescription
Cache entry description, including all information that is necessary to distinguish one dir from another- Specified by:
getDescription
in interfaceCacheDescription
- Returns:
- cache entry description
-
isExists
public boolean isExists()
Description copied from interface:CacheDescription
Information whether the cache directory currently exists on the server.- Specified by:
isExists
in interfaceCacheDescription
- Returns:
- true when directory exists
-
getUsingPlans
public Collection<ImmutablePlan> getUsingPlans()
Description copied from interface:CacheDescription
Collection of Plans that are currently configured to use this cache.- Specified by:
getUsingPlans
in interfaceCacheDescription
- Returns:
- collection of Plans that are currently configured to use this cache
-
-