Package com.atlassian.bamboo.repository
Class CacheDescription.FileBased
java.lang.Object
com.atlassian.bamboo.repository.CacheDescription.FileBased
- All Implemented Interfaces:
CacheDescription
- Enclosing interface:
- CacheDescription
Default file based implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.repository.CacheDescription
CacheDescription.FileBased
-
Constructor Summary
ConstructorDescriptionFileBased
(File cacheDir, String description, Collection<ImmutablePlan> plans) -
Method Summary
Modifier and TypeMethodDescriptionCache entry description, including all information that is necessary to distinguish one dir from anothergetKey()
Unique for givenCacheHandler
key that would be used to identify which cache the user wants to delete.Cache directory locationCollection of Plans that are currently configured to use this cache.boolean
isExists()
Information whether the cache directory currently exists on the server.
-
Constructor Details
-
FileBased
-
-
Method Details
-
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:
-
getLocation
Description copied from interface:CacheDescription
Cache directory location- Specified by:
getLocation
in interfaceCacheDescription
- Returns:
- cache location as user readable 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
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
-