W3C home > Mailing lists > Public > www-jigsaw@w3.org > May to June 1997

jdbmResourceStore

From: Dave Makower <davemak@pww.pencom.com>
Date: Tue, 10 Jun 1997 16:30:58 -0400
Message-Id: <l0310280bafc363da6845@[10.30.1.31]>
To: Jigsaw Mailing List <www-jigsaw@w3.org>
As of yet, we haven't hit the performance block that SimpleResourceStore
presents.  However, we feel that we are bound to hit it sooner or later, as
we build large repositories of Jigsaw Resources.  At that time, we will
probably need to make a transition to jdbmResourceStore, possibly in a
hurry.  As insurance for when that time comes, we're trying to gather as
much info as possible as to how this should be done.

The way we see it, in order to use jdbmResourceStore, we need to subclass
ResourceStoreManger, overriding getStore() so that it creates a
jdbmResourceStore instead of a SimpleResourceStore.  But that line is
actually part of the local class StoreEntry, and isn't available for
subclassing outside of the package.  So... we'd basically have to hack
ResourceStoreManager.java and replace the offending line.

Then this leaves us in a situation where the store files that come with
Jigsaw (for the root resource, Admin, etc.) won't work anymore, and we
would need to bootstrap Jigsaw.

A few days ago, you sent a note to the list describing the bootstrap
process, but I thought I detected a little hand-waving in there:

>A long process...
>a) create an empty directory resource (DirectoryResource has a main
>   method, or maybe the SimpleResourceStore has one) in a single
>   store.
>b) In w3c.jigsaw.indexer, there is a bootstrap variable, set it to
>   true
>c) run Jigsaw, setup the Admin directory, etc.
>
>You're done.

Might we persuade you to post some explicit instructions to the list (or
send us email, if you want us to test it out first) as to how to bootstrap
Jigsaw 1.0a5 from scratch?

Some key questions:

1) What _physical_ resources need to be created on the filesystem
(directories, property files, etc.)?

2) Does Jigsaw know how to automatically create the items that need to live
under "Admin" -- especially, the Editor?

3) If not, then how do you "add resources" to the server before the "Admin"
resources have been created?  Do you have to create store files manually?

4) How long do you think it will be before there is a version of Jigsaw
that allows a given ContainerResource to make use of a jdbmResourceStore?



+---------------------+-------------------------+---------------------+
|    Dave Makower     |    davemak@pencom.com   |   WWW Specialist    |
+---------------------+-------------------------+---------------------+
|     Co-author of "Java Programming Basics" (Henry Holt/MIS:Press)   |
|                 http://www.pencom.com/javabasics/                   |
+----------------------------------+----------------------------------+
|   Pencom Web Works               |   (212) 513-7777   voice         |
|   40 Fulton St.                  |   (212) 513-1014   fax           |
|   New York, NY  10038            |   http://www.pencom.com/         |
+----------------------------------+----------------------------------+
Received on Tuesday, 10 June 1997 16:24:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:26 GMT