public SchedulerSignalerImpl(QuartzScheduler sched, QuartzSchedulerThread schedThread) { this.sched = sched; this.schedThread = schedThread; log.Info("Initialized Scheduler Signaller of type: " + GetType()); }
/// <summary> /// Create a <see cref="QuartzScheduler" /> with the given configuration /// properties. /// </summary> /// <seealso cref="QuartzSchedulerResources" /> public QuartzScheduler(QuartzSchedulerResources resources, TimeSpan idleWaitTime) { log = LogManager.GetLogger(GetType()); this.resources = resources; if (resources.JobStore is IJobListener) { AddInternalJobListener((IJobListener) resources.JobStore); } schedThread = new QuartzSchedulerThread(this, resources); IThreadExecutor schedThreadExecutor = resources.ThreadExecutor; schedThreadExecutor.Execute(schedThread); if (idleWaitTime > TimeSpan.Zero) { schedThread.IdleWaitTime = idleWaitTime; } jobMgr = new ExecutingJobsManager(); AddInternalJobListener(jobMgr); errLogger = new ErrorLogger(); AddInternalSchedulerListener(errLogger); signaler = new SchedulerSignalerImpl(this, schedThread); log.InfoFormat(CultureInfo.InvariantCulture, "Quartz Scheduler v.{0} created.", Version); }
/// <summary> /// Create a <see cref="QuartzScheduler" /> with the given configuration /// properties. /// </summary> /// <seealso cref="QuartzSchedulerResources" /> public QuartzScheduler(QuartzSchedulerResources resources, TimeSpan idleWaitTime, TimeSpan dbRetryInterval) { log = LogManager.GetLogger(GetType()); this.resources = resources; if (resources.JobStore is IJobListener) { AddInternalJobListener((IJobListener) resources.JobStore); } schedThread = new QuartzSchedulerThread(this, resources); IThreadExecutor schedThreadExecutor = resources.ThreadExecutor; schedThreadExecutor.Execute(schedThread); if (idleWaitTime > TimeSpan.Zero) { schedThread.IdleWaitTime = idleWaitTime; } if (dbRetryInterval > TimeSpan.Zero) { schedThread.DbFailureRetryInterval = dbRetryInterval; } jobMgr = new ExecutingJobsManager(); AddInternalJobListener(jobMgr); errLogger = new ErrorLogger(); AddInternalSchedulerListener(errLogger); signaler = new SchedulerSignalerImpl(this, schedThread); log.InfoFormat(CultureInfo.InvariantCulture, "Quartz Scheduler v.{0} created.", Version); log.Info("Scheduler meta-data: " + (new SchedulerMetaData(SchedulerName, SchedulerInstanceId, GetType(), boundRemotely, RunningSince != null, InStandbyMode, IsShutdown, RunningSince, NumJobsExecuted, JobStoreClass, SupportsPersistence, Clustered, ThreadPoolClass, ThreadPoolSize, Version))); }
public SchedulerSignalerImpl(QuartzScheduler sched, QuartzSchedulerThread schedThread) { this.sched = sched; this.schedThread = schedThread; }
/// <summary> /// Create a <see cref="QuartzScheduler" /> with the given configuration /// properties. /// </summary> /// <seealso cref="QuartzSchedulerResources" /> public QuartzScheduler(QuartzSchedulerResources resources, SchedulingContext ctxt, TimeSpan idleWaitTime, TimeSpan dbRetryInterval) { Log = LogManager.GetLogger(GetType()); this.resources = resources; try { Bind(); } catch (Exception re) { throw new SchedulerException("Unable to bind scheduler to remoting context.", re); } schedThread = new QuartzSchedulerThread(this, resources, ctxt); if (idleWaitTime > TimeSpan.Zero) { schedThread.IdleWaitTime = idleWaitTime; } if (dbRetryInterval > TimeSpan.Zero) { schedThread.DbFailureRetryInterval = dbRetryInterval; } jobMgr = new ExecutingJobsManager(); AddGlobalJobListener(jobMgr); errLogger = new ErrorLogger(); AddSchedulerListener(errLogger); signaler = new SchedulerSignalerImpl(this, this.schedThread); Log.Info(string.Format(CultureInfo.InvariantCulture, "Quartz Scheduler v.{0} created.", Version)); }
/// <summary> /// Create a <see cref="QuartzScheduler" /> with the given configuration /// properties. /// </summary> /// <seealso cref="QuartzSchedulerResources" /> public QuartzScheduler(QuartzSchedulerResources resources, TimeSpan idleWaitTime) : this() { this.resources = resources; if (resources.JobStore is IJobListener) { AddInternalJobListener((IJobListener) resources.JobStore); } schedThread = new QuartzSchedulerThread(this, resources); schedThread.Start(); if (idleWaitTime > TimeSpan.Zero) { schedThread.IdleWaitTime = idleWaitTime; } jobMgr = new ExecutingJobsManager(); AddInternalJobListener(jobMgr); var errLogger = new ErrorLogger(); AddInternalSchedulerListener(errLogger); SchedulerSignaler = new SchedulerSignalerImpl(this, schedThread); log.InfoFormat("Quartz Scheduler v.{0} created.", Version); }
/// <summary> /// Create a <see cref="QuartzScheduler" /> with the given configuration /// properties. /// </summary> /// <seealso cref="QuartzSchedulerResources" /> public QuartzScheduler(QuartzSchedulerResources resources, TimeSpan idleWaitTime, TimeSpan dbRetryInterval) { this.resources = resources; if (resources.JobStore is IJobListener) { AddInternalJobListener((IJobListener) resources.JobStore); } schedThread = new QuartzSchedulerThread(this, resources); IThreadExecutor schedThreadExecutor = resources.ThreadExecutor; schedThreadExecutor.Execute(schedThread); if (idleWaitTime > TimeSpan.Zero) { schedThread.IdleWaitTime = idleWaitTime; } if (dbRetryInterval > TimeSpan.Zero) { schedThread.DbFailureRetryInterval = dbRetryInterval; } jobMgr = new ExecutingJobsManager(); AddInternalJobListener(jobMgr); errLogger = new ErrorLogger(); AddInternalSchedulerListener(errLogger); signaler = new SchedulerSignalerImpl(this, schedThread); }