public void executeJob ( String jobName ) throws MangooSchedulerException { Objects . requireNonNull ( this . quartzScheduler , Required . SCHEDULER . toString ( ) ) ; Objects . requireNonNull ( jobName , Required . JOB_NAME . toString ( ) ) ; try { for ( JobKey jobKey : getAllJobKeys ( ) ) { if ( jobKey . getName ( ) . equalsIgnoreCase ( jobName ) ) { this . quartzScheduler . triggerJob ( jobKey ) ; } } } catch ( SchedulerException | MangooSchedulerException e ) { throw new MangooSchedulerException ( e ) ; } }
Executes a single Quartz Scheduler job right away only once