|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.issues.cache.TaskDataCache
public class TaskDataCache
Local cache for task data retrieved from the remote Task repository. The cache is useful for multi project reports where the same tasks will be retrieved for each sub project. Instead of connecting to the remote repository the report renderer will try to read the local stored information. This information is either cached in-memory or on a secondary storage medium (defaults to an XML file on the file system).
Constructor Summary | |
---|---|
TaskDataCache() Convenience constructor to create a cache where all tasks are stored in-memory. |
|
TaskDataCache(String encoding, File persistentStoreDirectory) Convenience constructor to create a file based task data store to write to the given location. |
|
TaskDataCache(TaskDataStore taskStore) Default constructor. |
Method Summary | |
---|---|
void |
addTask(org.eclipse.mylyn.tasks.core.data.TaskData task) Adds the task to the cache. |
org.eclipse.mylyn.tasks.core.data.TaskData |
getTask(String id) Returns the task uniquely references by the given identifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskDataCache()
public TaskDataCache(String encoding, File persistentStoreDirectory)
persistentStoreDirectory
- the reference to the directory to store the individual task files. If this value is
null
the tasks will only be stored in-memory with a strong hash map. If not-
null
, a weak hash map is used and tasks that are removed from memory are written to this location.
public TaskDataCache(TaskDataStore taskStore)
taskStore
- the reference to the task store to store the individual task data. If this value is
null
the tasks will only be stored in-memory with a strong hash map. If not-
null
, a weak hash map is used and tasks that are removed from memory are written to this store.
Method Detail |
---|
public org.eclipse.mylyn.tasks.core.data.TaskData getTask(String id)
id
- the unique identifier of the task.
public void addTask(org.eclipse.mylyn.tasks.core.data.TaskData task)
getTask(String)
by passing in the identifier of the task (
TaskData.getTaskId()
).
task
- the task information to cache.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |