Reading only the last modification timestamp of an updatesite [message #769337] |
Wed, 21 December 2011 20:47 |
|
Hi to all,
I want to implement a feature, which
should read the entire updatesite only, if changed until the last loading.
I've done it like this:
IMetadataRepositoryManager manager = ....
IMetadataRepository repository = manager.loadRepository(new URI(updatesiteUrl), 0, new NullProgressMonitor());
String timestamp = repository.getProperty("p2.timestamp");
Long timestampLongSite = new Long(timestamp);
I've seen there is a property p2.timestamp, which I read. But therefore I have to read the entire site, which is often unnecessary to me. This action needs a lot of time, if I have many updatesites in scope.
Is it possible to get this property without reading the whole site and is this property always reset, if content of a site changes (even on composite-sites?) or is there another features, which can handle this?
Can you please give me a hint?
Best regards
Markus
Best regards
|
|
|
|
Re: Reading only the last modification timestamp of an updatesite [message #773932 is a reply to message #769687] |
Mon, 02 January 2012 22:48 |
|
Hi again,
yes it is already working while my eclipse is running. But If I have to restart it, the site is read without using any cache the first time. So is there any mechanism to hold the cache longer than until the next restart of the workspace? Can I store and reload it?
Or can I determine the timestamp of last change to notice it myself?
Thanks for help
Best regards
Markus
|
|
|
Powered by
FUDForum. Page generated in 0.02847 seconds