public class JIPipeLocalProjectMemoryCache extends Object implements JIPipeCache
JIPipeCache.ClearedEvent, JIPipeCache.ModifiedEvent, JIPipeCache.StoredEvent
Constructor and Description |
---|
JIPipeLocalProjectMemoryCache(JIPipeProject project) |
Modifier and Type | Method and Description |
---|---|
void |
clearAll(JIPipeProgressInfo progressInfo)
Clears the cache
|
void |
clearAll(UUID nodeUUID,
boolean invalidateChildren,
JIPipeProgressInfo progressInfo)
Clears the cache of the specified node
|
void |
clearOutdated(JIPipeProgressInfo progressInfo)
Removes all outdated entries
|
EventBus |
getEventBus() |
boolean |
isEmpty() |
Map<String,JIPipeDataTable> |
query(JIPipeGraphNode graphNode,
UUID nodeUUID,
JIPipeProgressInfo progressInfo) |
int |
size() |
void |
softClear(UUID uuid,
JIPipeProgressInfo progressInfo)
Removes the cached data of a node without modifying the internal structure
Remove outdated will be able to remove these
|
void |
store(JIPipeGraphNode graphNode,
UUID nodeUUID,
JIPipeDataTable data,
String outputName,
JIPipeProgressInfo progressInfo) |
String |
toString() |
public JIPipeLocalProjectMemoryCache(JIPipeProject project)
public EventBus getEventBus()
getEventBus
in interface JIPipeCache
public void store(JIPipeGraphNode graphNode, UUID nodeUUID, JIPipeDataTable data, String outputName, JIPipeProgressInfo progressInfo)
store
in interface JIPipeCache
public Map<String,JIPipeDataTable> query(JIPipeGraphNode graphNode, UUID nodeUUID, JIPipeProgressInfo progressInfo)
query
in interface JIPipeCache
public void clearOutdated(JIPipeProgressInfo progressInfo)
JIPipeCache
clearOutdated
in interface JIPipeCache
progressInfo
- the progresspublic void clearAll(JIPipeProgressInfo progressInfo)
JIPipeCache
clearAll
in interface JIPipeCache
progressInfo
- the progresspublic void clearAll(UUID nodeUUID, boolean invalidateChildren, JIPipeProgressInfo progressInfo)
JIPipeCache
clearAll
in interface JIPipeCache
nodeUUID
- the nodeinvalidateChildren
- whether all nodes utilizing that node's data will be invalidated (remove structure)progressInfo
- the progresspublic boolean isEmpty()
isEmpty
in interface JIPipeCache
public int size()
size
in interface JIPipeCache
public void softClear(UUID uuid, JIPipeProgressInfo progressInfo)
uuid
- the node UUIDprogressInfo
- the progressCopyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.