Gnana Prasuna

Greenhorn
+ Follow
since Feb 18, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gnana Prasuna

Hi All,

I am facing problem in building cron expression for below pattern.

Daily for every three days starting on nov 09, no end date
cron expression: 0 0 0 09/3 * ? *
output is 9th,12th,15th.....

Above expression working fine before last week of month.

If i try the same expression for this paatern every three days starting on 29 nov, no end date
cron expression: 0 0 0 29/3 * ? *
output 29th nov,29th dec,29th jan, 29th mar

Can some body help me in build expreesion for handling above 2 cases.

Thanks,
Prasuna.
10 years ago
Before scheduling a job using scheduler, i need next fire time.

For that i used below code snippet.

Trigger trigger = new CronTrigger("0 0 3 */1 * ? *");
and after that i used getNetFireTime() of trigger class . I got null.

And i am able get nextfireTime for the above cron expression by getting trigger object using scheduler instance.

After setting the cronEcpression to Trigerr, when i tried to print the nextFireTime() i am getting null, insted of date object. After populating quartz related tables i was getting nextFireTime(). Before poplating the quartz related tables, i need NextFireTime() of that particular cron expression.


Before placing the values into quartz related tables, i would like to see the nextFiretime at client side. Is there any way to get the NextFireTime()?
Hi All,

Is there any client API for quartz. I need some information on this? Can any body help me on this.

Thanks,
Prasuna.
Hi All,

I have created the object for trigerr class by passing arguments as trigger name and group name to CronTrigger class. I have set the cron expression for that object. After that i am trying to get the nextFire using one of the method provided by quartz API.I used this method "getNextFireTime()". But i am getting NULL. Can any body help me on this.

Thanks,
Prasuna.
11 years ago
Hi All,

can some body help me on how to build cron expression for the below event.

fire event on first week day of every month.

Thanks,
Prasuna.
11 years ago
Thanks Sagar Rohankar for your reply..

Fires every 2 days at 11:30 start at 21/3/2009 and end at 25/5/2010

0 30 11 21/2 * ? ? and i will set start and end date using cronTrigger. Is this expression correct for the abobe fire?

For day of month i used 21/2 because start date is 21 and for every 2 days it has to fire and shall i use under month field as 3/1 instaed of * which means start at 3rd month and increment by 1.

Thanks,
Prasuna.
11 years ago
In CronTrigger we have methaod of setting the cron expression. If we set start date and end date using CronTrigger method then my question is if we didn't mention year fied will it work?

For Ex fire at evey 12:30 start at 25/2/2009 and end at 30/5/2011

'0 30 12 * * ? ' and i will set start date and end date using cronTrigger. will it fire as mentioned above?

Thanks,
Prasuna.
11 years ago
Thanks Sagar Rohankar for the reply.


If we set the start date and end date using API methods is it necessary to mention years in the cron expression.

Thanks,
Prasuna.
11 years ago
Thanks Sagar Rohankar for your help and support.

Is there any possible way for firing the expression for particular no of occurences like for example my expression is 0 30 12 * * MON-FRI 2009-2010.In this case i would like to fire the expression for only 10 times or occurences. Is this case valid?

Thanks,
Prasuna.
11 years ago
Thanks Sagar Rohankar for the reply.

1.)fire event at 12:30 start at 18/2/2009 and end by 25/2/2010.

0 30 12 ???2009-2010. For the above expression i am confused about how to build the month and day oy month fields.

can you correct the expression.

Thanks,
Prasuna





11 years ago
Hi,

I am able to generate simple cron expressions. But i need help on generating craon expression between stat date and end date as mentioned above.

Thanks,
Prasuna
11 years ago
Hi All,

I need to build cron Expression for the below occurences. Can some body help me on this.
The occurence is:

1.)fire event at 12:30 start at 18/2/2009 and end by 25/2/2010.
2.) fire event between 12:15 and 13:45 start at 18/2/2009 and end by 25/2/2010.


Thanks,
Prasuna
11 years ago