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
ConstructorsConstructorDescriptionFileBased(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 givenCacheHandlerkey 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.booleanisExists()Information whether the cache directory currently exists on the server.
-
Constructor Details
-
FileBased
-
-
Method Details
-
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:
-
getLocation
Description copied from interface:CacheDescriptionCache directory location- Specified by:
getLocationin interfaceCacheDescription- Returns:
- cache location as user readable 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
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
-