public static class CacheDescription.FileBased extends Object implements CacheDescription
CacheDescription.FileBased
Constructor and Description |
---|
FileBased(File cacheDir,
String description,
Collection<ImmutablePlan> plans) |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Cache entry description, including all information that is necessary to distinguish one dir from another
|
String |
getKey()
Unique for given
CacheHandler key that would be used to identify which cache the user wants to delete. |
String |
getLocation()
Cache directory location
|
Collection<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.
|
public FileBased(File cacheDir, String description, Collection<ImmutablePlan> plans)
public String getKey()
CacheDescription
CacheHandler
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.
getKey
in interface CacheDescription
CacheHandler.deleteCaches(Collection, com.opensymphony.xwork.ValidationAware)
public String getLocation()
CacheDescription
getLocation
in interface CacheDescription
public String getDescription()
CacheDescription
getDescription
in interface CacheDescription
public boolean isExists()
CacheDescription
isExists
in interface CacheDescription
public Collection<ImmutablePlan> getUsingPlans()
CacheDescription
getUsingPlans
in interface CacheDescription
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.