MisfireInstruction.cs :  » Business-Application » Quartz-Enterprise-Scheduler » Quartz » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Business Application » Quartz Enterprise Scheduler 
Quartz Enterprise Scheduler » Quartz » MisfireInstruction.cs

namespace Quartz{
    ///<summary>
    /// Misfire instructions.
    ///</summary>
    public struct MisfireInstruction
    {
        /// <summary>
        /// Instruction not set (yet).
        /// </summary>
        public const int InstructionNotSet = 0;

        /// <summary>
        /// Use smart policy.
        /// </summary>
        public const int SmartPolicy = 0;

        /// <summary>
        /// Misfire policy settings for SimpleTrigger.
        /// </summary>
        public struct SimpleTrigger
        {
            /// <summary> 
            /// Instructs the <see cref="IScheduler" /> that upon a mis-fire
            /// situation, the <see cref="SimpleTrigger" /> wants to be fired
            /// now by <see cref="IScheduler" />.
            /// <p>
            /// <i>NOTE:</i> This instruction should typically only be used for
            /// 'one-shot' (non-repeating) Triggers. If it is used on a trigger with a
            /// repeat count > 0 then it is equivalent to the instruction 
            /// <see cref="RescheduleNowWithRemainingRepeatCount " />.
            /// </p>
            /// </summary>    
            public const int FireNow = 1;

            /// <summary>
            /// Instructs the <see cref="IScheduler" /> that upon a mis-fire
            /// situation, the <see cref="SimpleTrigger" /> wants to be
            /// re-scheduled to 'now' (even if the associated <see cref="ICalendar" />
            /// excludes 'now') with the repeat count left as-is.   This does obey the
            /// <see cref="Trigger" /> end-time however, so if 'now' is after the
            /// end-time the <see cref="Trigger" /> will not fire again.
            /// </summary>
            /// <remarks>
            /// <p>
            /// <i>NOTE:</i> Use of this instruction causes the trigger to 'forget'
            /// the start-time and repeat-count that it was originally setup with (this
            /// is only an issue if you for some reason wanted to be able to tell what
            /// the original values were at some later time).
            /// </p>
            /// </remarks>
            public const int RescheduleNowWithExistingRepeatCount = 2;

            /// <summary>
            /// Instructs the <see cref="IScheduler" /> that upon a mis-fire
            /// situation, the <see cref="SimpleTrigger" /> wants to be
            /// re-scheduled to 'now' (even if the associated <see cref="ICalendar" />
            /// excludes 'now') with the repeat count set to what it would be, if it had
            /// not missed any firings. This does obey the <see cref="Trigger" /> end-time 
            /// however, so if 'now' is after the end-time the <see cref="Trigger" /> will 
            /// not fire again.
            /// 
            /// <p>
            /// <i>NOTE:</i> Use of this instruction causes the trigger to 'forget'
            /// the start-time and repeat-count that it was originally setup with.
            /// Instead, the repeat count on the trigger will be changed to whatever
            /// the remaining repeat count is (this is only an issue if you for some
            /// reason wanted to be able to tell what the original values were at some
            /// later time).
            /// </p>
            /// 
            /// <p>
            /// <i>NOTE:</i> This instruction could cause the <see cref="Trigger" />
            /// to go to the 'COMPLETE' state after firing 'now', if all the
            /// repeat-fire-times where missed.
            /// </p>
            /// </summary>
            public const int RescheduleNowWithRemainingRepeatCount = 3;

            /// <summary> 
            /// Instructs the <see cref="IScheduler" /> that upon a mis-fire
            /// situation, the <see cref="SimpleTrigger" /> wants to be
            /// re-scheduled to the next scheduled time after 'now' - taking into
            /// account any associated <see cref="ICalendar" />, and with the
            /// repeat count set to what it would be, if it had not missed any firings.
            /// </summary>
            /// <remarks>
            /// <i>NOTE/WARNING:</i> This instruction could cause the <see cref="Trigger" />
            /// to go directly to the 'COMPLETE' state if all fire-times where missed.
            /// </remarks>
            public const int RescheduleNextWithRemainingCount = 4;

            /// <summary>
            /// Instructs the <see cref="IScheduler" /> that upon a mis-fire
            /// situation, the <see cref="SimpleTrigger" /> wants to be
            /// re-scheduled to the next scheduled time after 'now' - taking into
            /// account any associated <see cref="ICalendar" />, and with the
            /// repeat count left unchanged.
            /// </summary>
            /// <remarks>
            /// <p>
            /// <i>NOTE/WARNING:</i> This instruction could cause the <see cref="Trigger" />
            /// to go directly to the 'COMPLETE' state if all the end-time of the trigger 
            /// has arrived.
            /// </p>
            /// </remarks>
            public const int RescheduleNextWithExistingCount = 5;

        }

        /// <summary>
        /// misfire instructions for CronTrigger
        /// </summary>
        public struct CronTrigger
        {
            /// <summary>
            /// Instructs the <see cref="IScheduler" /> that upon a mis-fire
            /// situation, the <see cref="CronTrigger" /> wants to be fired now
            /// by <see cref="IScheduler" />.
            /// </summary>
            public const int FireOnceNow = 1;

            /// <summary>
            /// Instructs the <see cref="IScheduler" /> that upon a mis-fire
            /// situation, the <see cref="CronTrigger" /> wants to have it's
            /// next-fire-time updated to the next time in the schedule after the
            /// current time (taking into account any associated <see cref="ICalendar" />,
            /// but it does not want to be fired now.
            /// </summary>
            public const int DoNothing = 2;

        }

        /// <summary>
        /// misfire instructions for NthIncludedDayTrigger
        /// </summary>
        public struct NthIncludedDayTrigger
        {
            /// <summary> 
            /// Instructs the <see cref="IScheduler" /> that upon a mis-fire situation, the
            /// <see cref="NthIncludedDayTrigger" /> wants to be fired now by the 
            /// <see cref="IScheduler" />
            /// </summary>
            public const int FireOnceNow = 1;

            /// <summary> 
            /// Instructs the <see cref="IScheduler" /> that upon a mis-fire situation, the
            /// <see cref="NthIncludedDayTrigger" /> wants to have 
            /// nextFireTime updated to the next time in the schedule after
            /// the current time, but it does not want to be fired now.
            /// </summary>
            public const int DoNothing = 2;

        }
    }

}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.