turbine-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Wynter at roamware" <da...@roamware.co.uk>
Subject RE: Turbine Scheduler Service
Date Thu, 28 Apr 2005 14:30:57 GMT
What Marty said for your first case below. For the second case use new
Date() to get the current time and date then add your 12:02.56 to that value
then extract the hour, minute and second for that time in the future and
create a new job for that time

So if current time is Dec 31 2004 23:00.00 then the runtime will have to be
JobEntry je = new JobEntry(56,2,11,-1,-1,"SimpleScheduledTask");

JobEntry je = new JobEntry(56,2,12,-1,1,"SimpleScheduledTask");

But this will run every 1st of the month at that time. If you want it to run
once only then either the job that runs needs to have code to remove this
scheduled task after it has run or you use the more sophisticated Quartz
scheduler as an Avalon component, it allows one shot jobs.

David.
-----Original Message-----
From: Kintzel Levente [mailto:kintzel.levente@softech.ro]
Sent: 28 April 2005 14:52
To: turbine-user@jakarta.apache.org
Subject: Turbine Scheduler Service


  Hi!

I have a question related to the Turbine Scheduler Service. I have written
a task that will be executed periodically.
My question is how to set the fields form the database to specify that
this task will be executed daily.
I didn't understand how can I:
- specify that a task will be executed after an amount of time (after
12:hours, 2:mins, 56:sec)
- secify that a task will be executed daily at 12:02:56
How can I specify in the database which of the two situation I want to use.
Can anybody help me? Thank you!

                 Regards,
                   Levi



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Mime
View raw message