spring-batch-quartz-cluster/src/main/java/com/rajendarreddyj/spring/batch/quartz/config/QuartzConfiguration.java
// Job is scheduled after every 1 minute
Job is scheduled after every 1 minute
Job is scheduled after every 1 minute
@Bean
    public CronTriggerFactoryBean displayCurrentTimeScheduler() {
        CronTriggerFactoryBean stFactory = new CronTriggerFactoryBean();
        stFactory.setJobDetail(this.displayCurrentTimeJob().getObject());
        stFactory.setStartDelay(3000);
        stFactory.setName("mytrigger");
        stFactory.setGroup("mygroup");
        stFactory.setCronExpression("* * * * * ? *");
        stFactory.setTimeZone(TimeZone.getTimeZone("America/Chicago"));
        return stFactory;
    }
@ Bean public CronTriggerFactoryBean displayCurrentTimeScheduler ( ) { CronTriggerFactoryBean stFactory = new CronTriggerFactoryBean ( ) ; stFactory . setJobDetail ( this . displayCurrentTimeJob ( ) . getObject ( ) ) ; stFactory . setStartDelay ( 3000 ) ; stFactory . setName ( "mytrigger" ) ; stFactory . setGroup ( "mygroup" ) ; stFactory . setCronExpression ( "* * * * * ? *" ) ; stFactory . setTimeZone ( TimeZone . getTimeZone ( "America/Chicago" ) ) ; return stFactory ; }
Job is scheduled after every 1 minute
Job is scheduled after every 1 minute