CronTrigger Expression

Hey experts,

 Using the org.quartz.CronTrigger class (whose doc. is found at: http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html). I have two questions:

1- If I want an event scheduled to occur every 15 minutes, would that be its expression??

"0 0/5 * * * ?"  

2- If I want an event scheduled to occur every 15 minutes, starting after 20 minutes from now, what would be its expression??
LVL 3
mte01Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sciuriwareCommented:
1)  0 00,15,30,45 * * *

2) is not implemented, got to do it yourself.

;JOOP!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sciuriwareCommented:
This happens to be a LINUX/UNIX question;
fine scheduling could be done from your own JAVA program,
which should run in the background.

;JOOP!
0
objectsCommented:
2) perhaps use a SImpleTrigger to schedulke your CronTrigger
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

mte01Author Commented:
>>sciuriware

1) Isn't my expression also correct??
2) After thinking of it, it's not worth implementing

>>objects

2) I ned to conform to what has been used in the project before....(they have used the Cron Trigger), so it's not worth implementing...
0
objectsCommented:
> (they have used the Cron Trigger)

so how did they use it?
0
mte01Author Commented:
>>objects

They used CronTrigger, but they haven't used this "starting after 20 minutes from now" requirement, and now that I see that it can't be implemented using CronTrigger, I prefer that I don't provide this option at all (seeing that it's not that important) instead of doing a whole new implementation of SimpleTrigger (& thus changing the design of DB tables that already have fields for stored Cron Expressions).
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.