Java 类org.quartz.core.JobRunShell 实例源码

项目:lams    文件:JTAAnnotationAwareJobRunShellFactory.java   
/**
 * <p>
 * Called by the <class>{@link org.quartz.core.QuartzSchedulerThread}
 * </code> to obtain instances of <code>
 * {@link org.quartz.core.JobRunShell}</code>.
 * </p>
 */
public JobRunShell createJobRunShell(TriggerFiredBundle bundle)
        throws SchedulerException {
    ExecuteInJTATransaction jtaAnnotation = ClassUtils.getAnnotation(bundle.getJobDetail().getJobClass(), ExecuteInJTATransaction.class);
    if(jtaAnnotation == null)
        return new JobRunShell(scheduler, bundle);
    else {
        int timeout = jtaAnnotation.timeout();
        if (timeout >= 0) {
            return new JTAJobRunShell(scheduler, bundle, timeout);
        } else {
            return new JTAJobRunShell(scheduler, bundle);
        }
    }
}
项目:lams    文件:JTAJobRunShellFactory.java   
/**
 * <p>
 * Called by the <class>{@link org.quartz.core.QuartzSchedulerThread}
 * </code> to obtain instances of <code>
 * {@link org.quartz.core.JobRunShell}</code>.
 * </p>
 */
public JobRunShell createJobRunShell(TriggerFiredBundle bundle)
        throws SchedulerException {
    return new JTAJobRunShell(scheduler, bundle);
}
项目:lams    文件:StdJobRunShellFactory.java   
/**
 * <p>
 * Called by the <class>{@link org.quartz.core.QuartzSchedulerThread}
 * </code> to obtain instances of <code>
 * {@link org.quartz.core.JobRunShell}</code>.
 * </p>
 */
public JobRunShell createJobRunShell(TriggerFiredBundle bndle) throws SchedulerException {
    return new JobRunShell(scheduler, bndle);
}
项目:asura    文件:JTAJobRunShellFactory.java   
/**
 * <p>
 * Called by the <class>{@link org.quartz.core.QuartzSchedulerThread}
 * </code> to obtain instances of <code>
 * {@link org.quartz.core.JobRunShell}</code>.
 * </p>
 */
public JobRunShell borrowJobRunShell() {
    return new JTAJobRunShell(this, scheduler, schedCtxt);
}
项目:asura    文件:JTAJobRunShellFactory.java   
/**
 * <p>
 * Called by the <class>{@link org.quartz.core.QuartzSchedulerThread}
 * </code> to return instances of <code>
 * {@link org.quartz.core.JobRunShell}</code>.
 * </p>
 */
public void returnJobRunShell(JobRunShell jobRunShell) {
    jobRunShell.passivate();
}
项目:asura    文件:StdJobRunShellFactory.java   
/**
 * <p>
 * Called by the <class>{@link org.quartz.core.QuartzSchedulerThread}
 * </code> to obtain instances of <code>
 * {@link org.quartz.core.JobRunShell}</code>.
 * </p>
 */
public JobRunShell borrowJobRunShell() throws SchedulerException {
    return new JobRunShell(this, scheduler, schedCtxt);
}
项目:asura    文件:StdJobRunShellFactory.java   
/**
 * <p>
 * Called by the <class>{@link org.quartz.core.QuartzSchedulerThread}
 * </code> to return instances of <code>
 * {@link org.quartz.core.JobRunShell}</code>.
 * </p>
 */
public void returnJobRunShell(JobRunShell jobRunShell) {
    jobRunShell.passivate();
}