(InternalSchedulerService) globalTimerService ); jobHandle.setTimerJobInstance( (TimerJobInstance) jobInstance ); interceptor.internalSchedule( (TimerJobInstance) jobInstance ); if (jobname != null) { activeTimer.put(jobname, jobHandle);
quartzJobHandle.setTimerJobInstance( (TimerJobInstance) jobInstance ); interceptor.internalSchedule(jobInstance); return quartzJobHandle;
(InternalSchedulerService) globalTimerService ); jobHandle.setTimerJobInstance( (TimerJobInstance) jobInstance ); interceptor.internalSchedule( (TimerJobInstance) jobInstance ); if (jobname != null) { activeTimer.put(jobname, jobHandle);
@Override public JobHandle scheduleJob(Job job, JobContext ctx, Trigger trigger) { Long id = idCounter.getAndIncrement(); String jobName = getJobName(ctx, id); EjbGlobalJobHandle jobHandle = new EjbGlobalJobHandle(id, jobName, ((GlobalTimerService) globalTimerService).getTimerServiceId()); TimerJobInstance jobInstance = null; // check if given timer job is marked as new timer meaning it was never scheduled before, // if so skip the check by timer name as it has no way to exist if (!isNewTimer(ctx)) { jobInstance = scheduler.getTimerByName(jobName); if (jobInstance != null) { return jobInstance.getJobHandle(); } } jobInstance = globalTimerService.getTimerJobFactoryManager().createTimerJobInstance( job, ctx, trigger, jobHandle, (InternalSchedulerService) globalTimerService); jobHandle.setTimerJobInstance((TimerJobInstance) jobInstance); interceptor.internalSchedule(jobInstance); return jobHandle; }
quartzJobHandle.setTimerJobInstance( (TimerJobInstance) jobInstance ); interceptor.internalSchedule(jobInstance); return quartzJobHandle;