[
https://jira.jboss.org/jira/browse/DNA-615?page=com.atlassian.jira.plugin...
]
Brian Carothers updated DNA-615:
--------------------------------
Attachment: DNA-615.patch
Attached a patch that provides a default caching implementation for path-based
repositories. The patch has the following salient features:
1. It adds a new base class (AbstractPathRepositorySource) for path repository sources
that encapuslates some of the common required properties that have been cut-and-pasted a
few times and manages the path repository cache for the source.
2. It adds PathRepositoryCache (a map of workspace names to WorkspaceCaches) and
WorkspaceCache (a per-workspace Path to PathNode map).
3. It adds a beefed-up version of CachePolicy (called PathCachePolicy) that is used by
the PathRepositoryCache to determine which implementation of WorkspaceCache to use. It is
also used by the WorkspaceCache implementation to determine if a particular node should be
cached, allowing for custom exclusion policies based on node size, node volatility, etc.
4. It integrates these changes with the FileSystemSource and JDBC Metadata source to
demonstrate their efficacy.
It's fairly vanilla stuff, but it's built to be rather customizable. Also,
changing the cache policy on the source at run-time is supported, so you're not
limited to configuring the cache for a repo at startup.
Any feedback/thoughts would be appreciated, as ever. Thanks!
PathRepository Should Provide Support for Caching
-------------------------------------------------
Key: DNA-615
URL:
https://jira.jboss.org/jira/browse/DNA-615
Project: DNA
Issue Type: Feature Request
Components: Connectors, Graph
Affects Versions: 0.6
Reporter: Brian Carothers
Assignee: Brian Carothers
Fix For: 0.7
Attachments: DNA-615.patch
The path repository framework should be able to provide OOTB caching support (tied into
the source's default cache policy).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira