----- Original Message -----
From: "Ram C" <[EMAIL PROTECTED]>
Sent: Wednesday, March 21, 2001 11:10 AM
Subject: Re: possible problem with scheduler.
> I thought i fixed this. It looks like a un-'synchronized' binary heap
> problem. Did you get the latest version of 'avalonapi.jar' and
'cornerstone.bar'
> ?
Spent a lot of time yesterday night on it. Got the latest snapshot but ran
into some problems with it. I did read the code, but could not follow all
the improvements and confirm that it fixed things. Will try again in a day
or two.
On related note, the JDK seems to be rolling in the time trigger capability
in its' java.util.Timer class.
Avalon scheduler code looks like this.
final TimeTrigger trigger = .....
scheduler.addTrigger( <trigger name>, trigger, <target> );
The TimeTrigger controls trigger invocation.
JDK Timer class has scehdule methods and TimerTask.
TimerTask is similar to Target in Avalon.
The <schedule> methods control trigger/task invocation.
Would it make sense to move the Avalon API towards JDK model.
Here is a Proposal: Have interfaces such that a JDK or custom Scheduler
could implement it easily. This could mean adding the scheduling methods to
TimeScheduler and deprecating TimeTrigger. It would allow multiple
implementations to plugin - JDK or DefaultTimeScheduler.
The advantage would be
- Smaller and hence easier to maintain codebase.
- Very few developers would be interested in learning and remembering 2
scheduling APIs as developers come upto speed with standard JDK libraries.
I think TimeScheduler-TimeTrigger is better factored, but I also
find JDK Timer class pretty easy to use. I think there are long-term
benefits in following a model that allows for easy JDK integration.
What are your thoughts.
Harmeet
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]