[jbosstools-issues] [JBoss JIRA] (JBIDE-17148) Improvements needed (regarding caching) in the URLTransport* API
Vlado Pakan (JIRA)
issues at jboss.org
Mon Jun 9 08:08:15 EDT 2014
[ https://issues.jboss.org/browse/JBIDE-17148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vlado Pakan closed JBIDE-17148.
-------------------------------
Since nobody provided steps to verify for this Jira I'm closing it without verification.
PR was applied to correct branch.
> Improvements needed (regarding caching) in the URLTransport* API
> ----------------------------------------------------------------
>
> Key: JBIDE-17148
> URL: https://issues.jboss.org/browse/JBIDE-17148
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: common/jst/core
> Affects Versions: 4.2.0.Beta1
> Reporter: Fred Bricon
> Assignee: Rob Stryker
> Fix For: 4.2.0.Beta2
>
>
> There are a few things I'd like to see improved in the URL Transport API, wrt caching.
> Currently :
> * all files are downloaded and cached under <workspace>/.metadata/.plugins/org.jboss.tools.foundation.core/ECF_REMOTE_CACHE, using a cryptic name
> * Cache doesn't survive JVM restart
> What I need/expect :
> * ability to set custom cache folder
> * store files under <cache.folder>/requested.url. eg. : if I request https://foo.bar.org:8080/some/location/file.txt, it'll be stored under <workspace>/.metadata/.plugins/my.plugin/cache/http_foo.bar.org_8080/some/location/file.txt
> * restarting the IDE will be able to read the cached file
> Currently URLTransportCache is a singleton. We could change that and add the cache location as a constructor argument, have a URLTransportCache.DEFAULT instance, used by URLTransportUtility and probably override
> {quote}
> public File getCachedFileForURL(String url, String displayName, int lifespan, IProgressMonitor monitor)
> {quote}
> with
> {quote}
> public File getCachedFileForURL(String url, String displayName, URLTransportCache transportCache, IProgressMonitor monitor)
> {quote}
> Or if you have any better idea, be my guest :-)
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
More information about the jbosstools-issues
mailing list