- From: Yanick Gamelin (LMC) <lmcyaga@lmc.ericsson.se>
- Date: Fri, 16 Jun 2000 13:48:16 -0400
- To: "'zzJigSaw W3'" <www-jigsaw@w3.org>
> for my point 2 > > the method "public void markModified(SpaceEntry sentry, Resource > resource)" > in class ResourceStoreManager is called (i dont know from where or from > what) each time a resource is loaded, without regarding if this ressource > is in the store. (see below) > > This Resulting in a save of all modified store (but in reality, the store > is the same) at the checkpoint or shutdown. I understand that this method > must be call when a ressource is added to the store but not only when a > ressoures is loaded, that why i purpose to add a method MarkUsed but i > dont know if it useful. > > thank > > here is the print out when i load the main page who was correctly indexed > (when the debug option on) and it is the same thing for other document > > > C:\java\Jigsaw-203\scripts>java -classpath > c:\java\jdk1.2.2\bin;c:\java\jigsaw-203\classes\jigsaw.zip > ;c:\java\jsdk2.0\lib\jsdk.jar;c:\java\jigsaw-203\classes\jigadmin.jar > org.w3c.jigsaw.Main -root ..\Jigsaw > loading properties from: > C:\java\Jigsaw-203\scripts\..\Jigsaw\config\server.props > [STORE] load resource : root in > C:\java\Jigsaw-203\Jigsaw\config\stores\root.idx > Jigsaw[2.0.3]: serving at http://lmcpc116075:8001/ > [STORE] load resource : root in > C:\java\Jigsaw-203\Jigsaw\configadm\stores\root.idx > *** Warning : JigAdmin[2.0.3]: no logger specified, not logging. > JigAdmin[2.0.3]: serving at http://lmcpc116075:8009/ > > [STORE] load resource : Overview.html in > C:\java\Jigsaw-203\Jigsaw\config\stores\root.idx > [STORE] mark resource Overview.html modified in > C:\java\Jigsaw-203\Jigsaw\config\stores\root.idx > [STORE] load resource : style in > C:\java\Jigsaw-203\Jigsaw\config\stores\root.idx > [STORE] load resource : jigsaw.css in > C:\java\Jigsaw-203\Jigsaw\config\stores\st-10 > [STORE] mark resource jigsaw.css modified in > C:\java\Jigsaw-203\Jigsaw\config\stores\st-10 > [STORE] load resource : icons in > C:\java\Jigsaw-203\Jigsaw\config\stores\root.idx > [STORE] load resource : jigsaw in > C:\java\Jigsaw-203\Jigsaw\config\stores\st-2 > [STORE] load resource : WWW in > C:\java\Jigsaw-203\Jigsaw\config\stores\st-2 > [STORE] load resource : jigsaw.gif in > C:\java\Jigsaw-203\Jigsaw\config\stores\st-2 > [STORE] mark resource jigsaw.gif modified in > C:\java\Jigsaw-203\Jigsaw\config\stores\st-2 > [STORE] load resource : w3c_home in > C:\java\Jigsaw-203\Jigsaw\config\stores\st-3 > [STORE] load resource : w3c_home.gif in > C:\java\Jigsaw-203\Jigsaw\config\stores\st-3 > [STORE] mark resource w3c_home.gif modified in > C:\java\Jigsaw-203\Jigsaw\config\stores\st-3 > > > > > -----Original Message----- > From: Benoit Mahe [SMTP:Benoit.Mahe@sophia.inria.fr] > Sent: Thursday, June 15, 2000 7:51 AM > To: Yanick Gamelin (LMC) > Cc: 'zzJigSaw W3' > Subject: Re: programming questions and design questions > > "Yanick Gamelin (LMC)" wrote: > > > Hi jigPeoples, > > > > I try to understand the design you done by reading in the code > > (backward ingeneering) and it cost me a lot of time, > > > > 1- i need to know if it possible to remove the hastable "entries" in the > > resourceStoreManager by saving/retrieving the stores directly with the > > primarykey you use in the hastable (or something else)? i mean, store > file > > will be named by a integer value > > Yes, I think it's possible. > > > 2- i don't understand why you set a ressource to "modified = true" each > time > > it was accesed, unless looking if that resource is, or is not, in the > store. > > This mean, that each open store will be saved back to disk without > regarding > > if new element were added. How may i can fix this ?? > > Where did you read this? I can't find it, but as you describe it, it seems > to be a bug. > A Store is not supposed to be saved if it was no modified. > > > 3- How can i keep up to date the store file with the store in memory,(by > > calling the methode save() in the methode markModified()) -->see point > > 2<--, it mean a lot of disk access... Maybee it must be useful to add a > > variable (boolean used) by side of variable modified. > > Well, if you want to keep it up to date, the only way it to save it each > time it > is modified. I don't really understand what the second solution is > supposed to do... > > Regards, Benoit. > > -- > - Benoît Mahé ------------------------------------------------------- > World Wide Web Consortium (W3C) > Architecture domain - Jigsaw Engineer > > http://www.w3.org/People/Mahe - bmahe@w3.org > --------------------------------------------------------------------- > >
Received on Friday, 16 June 2000 13:50:09 UTC