Skip to content

Commit

Permalink
Quartz 2.0 migration work
Browse files Browse the repository at this point in the history
  • Loading branch information
lahma committed Dec 12, 2010
1 parent 03daf17 commit 6fd3d55
Show file tree
Hide file tree
Showing 101 changed files with 2,684 additions and 2,887 deletions.
4 changes: 3 additions & 1 deletion Quartz.2010.5.1.ReSharper
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="Parameters" />
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="PublicFields" />
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="PrivateInstanceFields" />
<PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="PrivateStaticFields" />
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="aaBb" ElementKind="PrivateStaticFields" />
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="Constants" />
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PrivateConstants" />
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="StaticReadonly" />
Expand All @@ -94,6 +94,8 @@
<Abbreviation Text="CMT" />
<Abbreviation Text="TX" />
<Abbreviation Text="DB" />
<Abbreviation Text="EQUALS" />
<Abbreviation Text="XML" />
</Naming2>
</CodeStyleSettings>
</Configuration>
4 changes: 2 additions & 2 deletions src/Quartz.Examples/example1/HelloJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ public HelloJob()

/// <summary>
/// Called by the <see cref="IScheduler" /> when a
/// <see cref="Trigger" /> fires that is associated with
/// <see cref="ITrigger" /> fires that is associated with
/// the <see cref="IJob" />.
/// </summary>
public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{

// Say Hello to the World and display the date/time
Expand Down
4 changes: 2 additions & 2 deletions src/Quartz.Examples/example10/SimpleJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ public class SimpleJob : IJob

/// <summary>
/// Called by the <see cref="IScheduler" /> when a
/// <see cref="Trigger" /> fires that is associated with
/// <see cref="ITrigger" /> fires that is associated with
/// the <see cref="IJob" />.
/// </summary>
public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{
// This job simply prints out its job name and the
// date and time that it is running
Expand Down
4 changes: 2 additions & 2 deletions src/Quartz.Examples/example11/SimpleJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public class SimpleJob : IJob

/// <summary>
/// Called by the <see cref="IScheduler" /> when a
/// <see cref="Trigger" /> fires that is associated with
/// <see cref="ITrigger" /> fires that is associated with
/// the <see cref="IJob" />.
/// </summary>
public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{
// This job simply prints out its job name and the
// date and time that it is running
Expand Down
4 changes: 2 additions & 2 deletions src/Quartz.Examples/example12/SimpleJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public class SimpleJob : IJob

/// <summary>
/// Called by the <see cref="IScheduler" /> when a
/// <see cref="Trigger" /> fires that is associated with
/// <see cref="ITrigger" /> fires that is associated with
/// the <see cref="IJob" />.
/// </summary>
public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{

// This job simply prints out its job name and the
Expand Down
4 changes: 2 additions & 2 deletions src/Quartz.Examples/example13/SimpleRecoveryJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public class SimpleRecoveryJob : IJob

/// <summary>
/// Called by the <see cref="IScheduler" /> when a
/// <see cref="Trigger" /> fires that is associated with
/// <see cref="ITrigger" /> fires that is associated with
/// the <see cref="IJob" />.
/// </summary>
public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{

string jobName = context.JobDetail.FullName;
Expand Down
4 changes: 2 additions & 2 deletions src/Quartz.Examples/example14/TriggerEchoJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class TriggerEchoJob : IJob
private static readonly ILog LOG = LogManager.GetLogger(typeof (TriggerEchoJob));

/// <summary>
/// Called by the <see cref="IScheduler"/> when a <see cref="Trigger"/>
/// Called by the <see cref="IScheduler"/> when a <see cref="ITrigger"/>
/// fires that is associated with the <see cref="IJob"/>.
/// <p>
/// The implementation may wish to set a result object on the
Expand All @@ -44,7 +44,7 @@ public class TriggerEchoJob : IJob
/// <param name="context">The execution context.</param>
/// </summary>
/// <param name="context"></param>
public void Execute(JobExecutionContext context)
public void Execute(IJobExecutionContext context)
{
LOG.Info("TRIGGER: " + context.Trigger.Name);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Quartz.Examples/example2/SimpleJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ public SimpleJob()

/// <summary>
/// Called by the <see cref="IScheduler" /> when a
/// <see cref="Trigger" /> fires that is associated with
/// <see cref="ITrigger" /> fires that is associated with
/// the <see cref="IJob" />.
/// </summary>
public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{
// This job simply prints out its job name and the
// date and time that it is running
Expand Down
4 changes: 2 additions & 2 deletions src/Quartz.Examples/example3/SimpleJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ public class SimpleJob : IJob

/// <summary>
/// Called by the <see cref="IScheduler" /> when a
/// <see cref="Trigger" /> fires that is associated with the <see cref="IJob" />.
/// <see cref="ITrigger" /> fires that is associated with the <see cref="IJob" />.
/// </summary>
public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{

// This job simply prints out its job name and the
Expand Down
4 changes: 2 additions & 2 deletions src/Quartz.Examples/example4/ColorJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ public class ColorJob : IStatefulJob

/// <summary>
/// Called by the <see cref="IScheduler" /> when a
/// <see cref="Trigger" /> fires that is associated with
/// <see cref="ITrigger" /> fires that is associated with
/// the <see cref="IJob" />.
/// </summary>
public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{

// This job simply prints out its job name and the
Expand Down
4 changes: 2 additions & 2 deletions src/Quartz.Examples/example5/MisfireJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public class MisfireJob : IStatefulJob
public const string ExecutionDelay = "ExecutionDelay";

/// <summary>
/// Called by the <see cref="IScheduler" /> when a <see cref="Trigger" />
/// Called by the <see cref="IScheduler" /> when a <see cref="ITrigger" />
/// fires that is associated with the <see cref="IJob" />.
/// </summary>
public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{
string jobName = context.JobDetail.FullName;
log.Info(string.Format("---{0} executing at {1}", jobName, DateTime.Now.ToString("r")));
Expand Down
4 changes: 2 additions & 2 deletions src/Quartz.Examples/example5/StatefulDumbJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public class StatefulDumbJob : IStatefulJob
public const string ExecutionDelay = "ExecutionDelay";

/// <summary>
/// Called by the <see cref="IScheduler" /> when a <see cref="Trigger" />
/// Called by the <see cref="IScheduler" /> when a <see cref="ITrigger" />
/// fires that is associated with the <see cref="IJob" />.
/// </summary>
public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{
Console.Error.WriteLine("---{0} executing.[{1}]", context.JobDetail.FullName, DateTime.Now.ToString("r"));

Expand Down
2 changes: 1 addition & 1 deletion src/Quartz.Examples/example6/BadJob1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class BadJob1 : IStatefulJob
/// Called by the <see cref="IScheduler" /> when a Trigger" />
/// fires that is associated with the <see cref="IJob" />.
/// </summary>
public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{
string jobName = context.JobDetail.FullName;
log.Info(string.Format("---{0} executing at {1}", jobName, DateTime.Now.ToString("r")));
Expand Down
4 changes: 2 additions & 2 deletions src/Quartz.Examples/example6/BadJob2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class BadJob2 : IStatefulJob
private static ILog _log = LogManager.GetLogger(typeof(BadJob2));

/// <summary>
/// Called by the <see cref="IScheduler" /> when a <see cref="Trigger" />
/// Called by the <see cref="IScheduler" /> when a <see cref="ITrigger" />
/// fires that is associated with the <see cref="IJob" />.
/// <p>
/// The implementation may wish to set a result object on the
Expand All @@ -46,7 +46,7 @@ public class BadJob2 : IStatefulJob
/// </p>
/// </summary>
/// <param name="context">Execution context.</param>
public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{
string jobName = context.JobDetail.FullName;
_log.Info(string.Format("---{0} executing at {1}", jobName, System.DateTime.Now.ToString("r")));
Expand Down
4 changes: 2 additions & 2 deletions src/Quartz.Examples/example7/DumbInterruptableJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public class DumbInterruptableJob : IInterruptableJob
private string jobName = "";

/// <summary>
/// Called by the <see cref="IScheduler" /> when a <see cref="Trigger" />
/// Called by the <see cref="IScheduler" /> when a <see cref="ITrigger" />
/// fires that is associated with the <see cref="IJob" />.
/// </summary>
public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{
jobName = context.JobDetail.FullName;
log.Info(string.Format("---- {0} executing at {1}", jobName, DateTime.Now.ToString("r")));
Expand Down
4 changes: 2 additions & 2 deletions src/Quartz.Examples/example8/SimpleJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class SimpleJob : IJob
private static readonly ILog log = LogManager.GetLogger(typeof(SimpleJob));

/// <summary>
/// Called by the <see cref="IScheduler" /> when a <see cref="Trigger" />
/// Called by the <see cref="IScheduler" /> when a <see cref="ITrigger" />
/// fires that is associated with the <see cref="IJob" />.
/// <p>
/// The implementation may wish to set a result object on the
Expand All @@ -43,7 +43,7 @@ public class SimpleJob : IJob
/// </p>
/// </summary>
/// <param name="context"></param>
public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{
// This job simply prints out its job name and the
// date and time that it is running
Expand Down
4 changes: 2 additions & 2 deletions src/Quartz.Examples/example9/SimpleJob1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class SimpleJob1 : IJob
private static readonly ILog log = LogManager.GetLogger(typeof(SimpleJob1));

/// <summary>
/// Called by the <see cref="IScheduler" /> when a <see cref="Trigger" />
/// Called by the <see cref="IScheduler" /> when a <see cref="ITrigger" />
/// fires that is associated with the <see cref="IJob" />.
/// <p>
/// The implementation may wish to set a result object on the
Expand All @@ -44,7 +44,7 @@ public class SimpleJob1 : IJob
/// </p>
/// </summary>
/// <param name="context"></param>
public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{

// This job simply prints out its job name and the
Expand Down
2 changes: 1 addition & 1 deletion src/Quartz.Examples/example9/SimpleJob2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class SimpleJob2 : IJob
{
private static readonly ILog log = LogManager.GetLogger(typeof(SimpleJob2));

public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{
// This job simply prints out its job name and the
// date and time that it is running
Expand Down
4 changes: 2 additions & 2 deletions src/Quartz.Tests.Integration/ExceptionPolicy/ExceptionJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class ExceptionJob : IJob
public static bool ThrowsException = true;

/// <summary>
/// Called by the <see cref="IScheduler"/> when a <see cref="Trigger"/>
/// Called by the <see cref="IScheduler"/> when a <see cref="ITrigger"/>
/// fires that is associated with the <see cref="IJob"/>.
/// </summary>
/// <param name="context">The execution context.</param>
Expand All @@ -21,7 +21,7 @@ public class ExceptionJob : IJob
/// <see cref="ITriggerListener"/>s that are watching the job's
/// execution.
/// </remarks>
public void Execute(JobExecutionContext context)
public void Execute(IJobExecutionContext context)
{
LaunchCount++;
if (ThrowsException)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ private void RunAdoJobStoreTest(string dbProvider, string connectionStringId,
ICalendar holidayCalendar = new HolidayCalendar();

// QRTZNET-86
Trigger t = sched.GetTrigger("NonExistingTrigger", "NonExistingGroup");
ITrigger t = sched.GetTrigger("NonExistingTrigger", "NonExistingGroup");
Assert.IsNull(t);

AnnualCalendar cal = new AnnualCalendar();
Expand Down Expand Up @@ -265,7 +265,7 @@ private void RunAdoJobStoreTest(string dbProvider, string connectionStringId,
sched.ScheduleJob(job, trigger);

// check that trigger was stored
Trigger persisted = sched.GetTrigger("trig_" + count, schedId);
ITrigger persisted = sched.GetTrigger("trig_" + count, schedId);
Assert.IsNotNull(persisted);
Assert.IsTrue(persisted is SimpleTrigger);

Expand Down Expand Up @@ -556,20 +556,20 @@ public string Name
get { return GetType().FullName; }
}

public void TriggerFired(Trigger trigger, JobExecutionContext context)
public void TriggerFired(ITrigger trigger, IJobExecutionContext context)
{
}

public bool VetoJobExecution(Trigger trigger, JobExecutionContext context)
public bool VetoJobExecution(ITrigger trigger, IJobExecutionContext context)
{
return false;
}

public void TriggerMisfired(Trigger trigger)
public void TriggerMisfired(ITrigger trigger)
{
}

public void TriggerComplete(Trigger trigger, JobExecutionContext context,
public void TriggerComplete(ITrigger trigger, IJobExecutionContext context,
SchedulerInstruction triggerInstructionCode)
{
}
Expand All @@ -583,17 +583,17 @@ public string Name
get { return GetType().FullName; }
}

public void JobToBeExecuted(JobExecutionContext context)
public void JobToBeExecuted(IJobExecutionContext context)
{

}

public void JobExecutionVetoed(JobExecutionContext context)
public void JobExecutionVetoed(IJobExecutionContext context)
{

}

public void JobWasExecuted(JobExecutionContext context, JobExecutionException jobException)
public void JobWasExecuted(IJobExecutionContext context, JobExecutionException jobException)
{

}
Expand All @@ -605,10 +605,10 @@ public class SimpleRecoveryJob : IJob

/// <summary>
/// Called by the <see cref="IScheduler" /> when a
/// <see cref="Trigger" /> fires that is associated with
/// <see cref="ITrigger" /> fires that is associated with
/// the <see cref="IJob" />.
/// </summary>
public virtual void Execute(JobExecutionContext context)
public virtual void Execute(IJobExecutionContext context)
{
// delay for ten seconds
try
Expand Down
6 changes: 3 additions & 3 deletions src/Quartz.Tests.Integration/TestJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ namespace Quartz.Tests.Integration
/// <author>Marko Lahma (.NET)</author>
public class TestJob : IJob
{
private static bool jobFired = false;
private static bool jobFired;

/// <summary>
/// Called by the <see cref="IScheduler" /> when a <see cref="Trigger" />
/// Called by the <see cref="IScheduler" /> when a <see cref="ITrigger" />
/// fires that is associated with the <see cref="IJob" />.
/// <p>
/// The implementation may wish to set a result object on the
Expand All @@ -37,7 +37,7 @@ public class TestJob : IJob
/// </p>
/// <param name="context">The execution context.</param>
/// </summary>
public void Execute(JobExecutionContext context)
public void Execute(IJobExecutionContext context)
{
JobHasFired = true;
}
Expand Down
Loading

0 comments on commit 6fd3d55

Please sign in to comment.