"Brekke, Jeff" wrote:
>
> > There's only 1 package to implement as a service before we can remove
> > the JetspeedServlet: the daemon stuff.
>
> I've been looking into this. There was talk of converting these to turbine
> scheduled jobs and using the turbine scheduler. This is great, but will
> require a database backend to hold the scheduled jobs, which in turn means
> Jetspeed could not run without a database. John Thorhauer has created a
> turbine scheduler that initializes from a properties file. We could use his
> scheduler and implement it in Jetspeed or I was thinking of attempting to
> merge this with the Turbine scheduler ( if possible ) and contrib back into
> Turbine.
>
> Converting the daemon implementations into scheduled jobs seems
> straightforward. Any comments? Am I missing something?
>
+1 for using scheduled jobs.
I think it would be best to leverage the URLManager service in the process.
If we define an extended URLInfo record, by adding the fields:
updateFrequency: the number of seconds between updates for this URL
lastUpdate: timestamp of the last update
urlType: (FEED|CONTENT|...)
source: Vector of URL of the feed(s) in which this URL is described
We can write a URLManagerScheduledJob (executed at frequency set in JR.p) to
schedule a DiskCacheUpdateJob on any entry whithout a pending
DiskCacheUpdateJob in the schedule list to refresh the content of this URL
at lastUpdate+updateFrequency and update the status and lastUpdate records
in the corresponding URLInfo.
If the URL updated is modified and the urlType is FEED, execute a
FeedUpdateJob which would unregister/register all the entries in the
URLManager whose source contains the feed URL.
This has many advantages over the current system but will require the
URLManager URL records to be stored in a DB for rapidity of access.
Comments ?
--
Rapha�l Luta - [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://marc.theaimsgroup.com/?l=jetspeed>
Problems?: [EMAIL PROTECTED]