Commits

Anonymous committed fd56be7

syncing docs to those in confluence.

git-svn-id: http://svn.opensymphony.com/svn/quartz/trunk@83469f7d36a-ea1c-0410-88ea-9fd03e4c9665

  • Participants
  • Parent commits 6747830

Comments (0)

Files changed (4)

docs/wikidocs/Example14.html

 <pre class="code-java">Calendar startTime = Calendar.getInstance();
 startTime.add(Calendar.SECOND, 5);
 
-<span class="code-comment">// First trigger has priority of \-5, and will repeat after 5 seconds
+<span class="code-comment">// First trigger has priority of 1, and will repeat after 5 seconds
 </span>SimpleTrigger trigger1 =
  <span class="code-keyword">new</span> SimpleTrigger(<span class="code-quote">"PriorityNeg5Trigger5SecondRepeat"</span>, <span class="code-keyword">null</span>, startTime.getTime(), <span class="code-keyword">null</span>, 1, 5L * 1000L);
-trigger1.setPriority(-5);
+trigger1.setPriority(1);
 trigger1.setJobName(<span class="code-quote">"TriggerEchoJob"</span>);
 
 <span class="code-comment">// Second trigger has <span class="code-keyword">default</span> priority of 5, and will repeat after 10 seconds

docs/wikidocs/Quartz 1.6.1.html

 			    <td valign="top" class="pagebody">
 				    <h2><a name="Quartz1.6.1-Quartz1.6.1ReleaseNotes"></a>Quartz 1.6.1 Release Notes</h2>
 
-<p>This release contains some new features, many bug fixes and improvements to Quartz.</p>
+<p>This release contains many bug fixes and small improvements to the <a href="Quartz 1.6.0.html" title="Quartz 1.6.0">Quartz 1.6.0</a> release.</p>
 
 <p>See the changelog below for complete details of this release.</p>
 
-<h3><a name="Quartz1.6.1-MostSignificantofNewFeatures"></a>Most Significant of New Features</h3>
+<h3><a name="Quartz1.6.1-KeyChanges"></a>Key Changes</h3>
 
 <ul>
-	<li><b><em>Trigger Priority</em></b>.  New 'priority' scheduling support - controls selection of the next trigger to fire in cases where multiple triggers are waiting.  See <a href="TutorialLesson4.html" title="TutorialLesson4">Quartz Tutorial Lesson 4 for a description</a>.</li>
-</ul>
-
-
-<ul>
-	<li><b><em>JMS Integration</em></b>. Some JMS-related features (such as a send-message job) are now included with Quartz.  This feature set will increase over the next few releases of Quartz.</li>
-</ul>
-
-
-<ul>
-	<li>Utility classes <b><em>BroadcastSchedulerLister, FilterAndBroadcastJobListener, FilterAndBroadcastTriggerListener, and JobChainingJobListener</em></b></li>
-</ul>
-
-
-<h3><a name="Quartz1.6.1-OtherKeyChanges"></a>Other Key Changes</h3>
-
-<ul>
-	<li>Improvements to efficiency in several areas of the codebase.</li>
-	<li>A Trigger is now not "acquired" by the scheduler until there is a thread available (in the ThreadPool) to execute it.  This will lead to improved load balancing within a clustered setup, as well as other benefits.</li>
-	<li>Ability to specify a locking semaphore implementation when using JDBC JobStore.</li>
-	<li>Convenience classes JobListenerSupport, SchedulerListenerSupport, TriggerListenerSupport.</li>
-	<li>Many more&#33;</li>
+	<li>Dozens of bug fixes</li>
+	<li>Improvements to threading and efficiency in several areas of the codebase.</li>
 </ul>
 
 
 <h3><a name="Quartz1.6.1-CoreAPIchanges"></a>Core API changes</h3>
 
 <ul>
-	<li>Introduced Trigger.setPriority(int)</li>
+	<li>None</li>
 </ul>
 
 
                             </tr>
                                     <tr class="rowNormal">
                                                             <td nowrap="true">
-                                            <a href="http://jira.opensymphony.com/browse/QUARTZ-620"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
-                                    </td>
-                                <td nowrap="true">
-                                            <a href="http://jira.opensymphony.com/browse/QUARTZ-620">QUARTZ-620</a>
-                                    </td>
-                                <td >
-                                            <a href="http://jira.opensymphony.com/browse/QUARTZ-620">Changes made in getJobDetail.getJobDataMap() by JobListener are not reflected in the getMergedJobDataMap()</a>
-                                    </td>
-                            </tr>
-                                    <tr class="rowAlternate">
-                                                            <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-621"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                 <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-621">incorrect results from CronExpression.isValidExpression() </a>
                                     </td>
                             </tr>
-                                    <tr class="rowNormal">
+                                    <tr class="rowAlternate">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-625"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-625">NullPointer in org.quartz.utils.Pair.hashCode() method</a>
                                     </td>
                             </tr>
-                                    <tr class="rowAlternate">
+                                    <tr class="rowNormal">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-627"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-627">QuartzScheduler.scheduleJob does not properly handle case where trigger job name equals the job name, but job group is null.</a>
                                     </td>
                             </tr>
-                                    <tr class="rowNormal">
+                                    <tr class="rowAlternate">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-632"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-632">CLONE -Scheduling change causes a paused/blocked scheduler to do unnecessary trigger release</a>
                                     </td>
                             </tr>
-                                    <tr class="rowAlternate">
+                                    <tr class="rowNormal">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-636"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-636">MonthlyCalendar getNextIncludedTime:  infinite loop if included date &gt; 7</a>
                                     </td>
                             </tr>
-                                    <tr class="rowNormal">
+                                    <tr class="rowAlternate">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-638"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-638">QuartzSchedulerThread.signaled should be marked with the volatile modifier or should be an AtomicBoolean</a>
                                     </td>
                             </tr>
-                                    <tr class="rowAlternate">
+                                    <tr class="rowNormal">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-639"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-639">JobDataMap getIntValue returns long</a>
                                     </td>
                             </tr>
-                                    <tr class="rowNormal">
+                                    <tr class="rowAlternate">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-640"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-640">The Cron Expression do not support day of week list with &quot;L&quot; in it.</a>
                                     </td>
                             </tr>
-                                    <tr class="rowAlternate">
+                                    <tr class="rowNormal">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-641"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-641">Invalid run triggers with startTime older than about 248 days</a>
                                     </td>
                             </tr>
-                                    <tr class="rowNormal">
+                                    <tr class="rowAlternate">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-644"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-644">examples do not run in Windows when there is space in the classpath</a>
                                     </td>
                             </tr>
-                                    <tr class="rowAlternate">
+                                    <tr class="rowNormal">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-645"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-645">Frequent deadlock on QRTZ_TRIGGERS table</a>
                                     </td>
                             </tr>
-                                    <tr class="rowNormal">
+                                    <tr class="rowAlternate">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-646"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-646">Job Scheduler functionality using Quartz accumulates lots of records into its related tables in DB.</a>
                                     </td>
                             </tr>
-                                    <tr class="rowAlternate">
+                                    <tr class="rowNormal">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-649"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-649">deadlock and out of memory problems </a>
                                     </td>
                             </tr>
-                                    <tr class="rowNormal">
+                                    <tr class="rowAlternate">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-650"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-650">SimpleTrigger.computeFirstFireTime() method can get into infinite loop</a>
                                     </td>
                             </tr>
-                                    <tr class="rowAlternate">
+                                    <tr class="rowNormal">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-651"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-651">Clarifying the documentation for misfire instructions</a>
                                     </td>
                             </tr>
-                                    <tr class="rowNormal">
+                                    <tr class="rowAlternate">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-654"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/improvement.gif" alt="Improvement" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-654">sybase dbTables script</a>
                                     </td>
                             </tr>
-                                    <tr class="rowAlternate">
+                                    <tr class="rowNormal">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-656"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-656"> The query SELECT_NEXT_TRIGGER_TO_ACQUIRE is incorrect for certain SQL servers</a>
                                     </td>
                             </tr>
-                                    <tr class="rowNormal">
+                                    <tr class="rowAlternate">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-657"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-657">Deadlock in RAMJobStore</a>
                                     </td>
                             </tr>
-                                    <tr class="rowAlternate">
+                                    <tr class="rowNormal">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-658"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/newfeature.gif" alt="New Feature" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-658">Introduce mechanism for delaying the starttup of the scheduler</a>
                                     </td>
                             </tr>
-                                    <tr class="rowNormal">
+                                    <tr class="rowAlternate">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-659"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-659">RamJobStore does not remember paused job groups</a>
                                     </td>
                             </tr>
-                                    <tr class="rowAlternate">
+                                    <tr class="rowNormal">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-660"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-660">Build failure in en_GB.UTF-8 locale in AnnualCalendarTest </a>
                                     </td>
                             </tr>
-                                    <tr class="rowNormal">
+                                    <tr class="rowAlternate">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-661"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-661">CLONE -&quot;Stuck ACQUIRED triggers&quot; / race condition with quartz</a>
                                     </td>
                             </tr>
-                                    <tr class="rowAlternate">
+                                    <tr class="rowNormal">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-662"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-662">NullPointerException in NthIncludedDayTrigger.getFinalFireTime()</a>
                                     </td>
                             </tr>
-                                    <tr class="rowNormal">
+                                    <tr class="rowAlternate">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-665"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-665">Null pointer exception in Trigger.equals()</a>
                                     </td>
                             </tr>
-                                    <tr class="rowAlternate">
+                                    <tr class="rowNormal">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-668"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-668">Threading issue around SimpleThreadPool.runInThread...</a>
                                     </td>
                             </tr>
-                                    <tr class="rowNormal">
+                                    <tr class="rowAlternate">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-669"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-669">Spinning-workaround in QuartzSchedulerThread.run() is expensive (cpu-wise) on multi-core systems</a>
                                     </td>
                             </tr>
-                                    <tr class="rowAlternate">
+                                    <tr class="rowNormal">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-675"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-675">FileScanJob can not handle spaces or umlauts in directory names</a>
                                     </td>
                             </tr>
-                                    <tr class="rowNormal">
+                                    <tr class="rowAlternate">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-678"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-678">CronTrigger may return a firing time not included in the calender (based on QUARTZ-557)</a>
                                     </td>
                             </tr>
-                                    <tr class="rowAlternate">
+                                    <tr class="rowNormal">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-685"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-685">JobDetail.equals() broken in svn</a>
                                     </td>
                             </tr>
-                                    <tr class="rowNormal">
+                                    <tr class="rowAlternate">
                                                             <td nowrap="true">
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-686"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/newfeature.gif" alt="New Feature" border="0" /></a>
                                     </td>
                                             <a href="http://jira.opensymphony.com/browse/QUARTZ-686">New config property: org.quartz.scheduler.threadsInheritContextClassLoaderOfInitializer</a>
                                     </td>
                             </tr>
+                                    <tr class="rowNormal">
+                                                            <td nowrap="true">
+                                            <a href="http://jira.opensymphony.com/browse/QUARTZ-688"><img src="http://jira.opensymphony.com/secure/IssueNavigator.jspa?reset=true&pid=10060&fixfor=21680&sorter/field=issuekey&sorter/order=TYPE/images/icons/bug.gif" alt="Bug" border="0" /></a>
+                                    </td>
+                                <td nowrap="true">
+                                            <a href="http://jira.opensymphony.com/browse/QUARTZ-688">QUARTZ-688</a>
+                                    </td>
+                                <td >
+                                            <a href="http://jira.opensymphony.com/browse/QUARTZ-688">CronTrigger not executes StatefulJob as expected</a>
+                                    </td>
+                            </tr>
             </table>
 </p>
 

docs/wikidocs/TutorialLesson4.html

 trig2.setPriority(10);
 sched.scheduleJob(trig2);
 
-<span class="code-comment">// Trigger2 has its priority set to -40
+<span class="code-comment">// Trigger2 has its priority set to 1
 </span>trig3.setJobName(jobDetail.getName());
-trig2.setPriority(-40);
+trig2.setPriority(1);
 sched.scheduleJob(trig3);
 
 <span class="code-comment">// Five minutes from now, when the scheduler invokes these three triggers
 </span><span class="code-comment">// they will be allocated worker threads in decreasing order of their
-</span><span class="code-comment">// priority: Trigger2(10), Trigger1(5), Trigger3(-40)</span></pre>
+</span><span class="code-comment">// priority: Trigger2(10), Trigger1(5), Trigger3(1)</span></pre>
 </div></div>
 
 <h3><a name="TutorialLesson4-MisfireInstructions"></a>Misfire Instructions</h3>

docs/wikidocs/TutorialLesson5.html

 <html>
 <head>
-<title>Quartz 1 - TutorialLesson5</title>
+        <title>Quartz 1 - 
+        TutorialLesson5
+         </title>
 <link rel="stylesheet" href="styles/site.css" type="text/css" />
 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
 </head>
 
 <body>
-<table class="pagecontent" border="0" cellpadding="0" cellspacing="0"
-    width="100%" bgcolor="#ffffff">
+	    <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
     <tr>
         <td valign="top" class="pagebody">
-        <h1><a name="TutorialLesson5-Lesson5%3ASimpleTrigger"></a>Lesson
-        5: SimpleTrigger</h1>
+				    <h1><a name="TutorialLesson5-Lesson5%3ASimpleTrigger"></a>Lesson 5: SimpleTrigger</h1>
 
-        <p><b><em>SimpleTrigger</em></b> should meet your scheduling
-        needs if you need to have a job execute exactly once at a
-        specific moment in time, or at a specific moment in time
-        followed by repeats at a specific interval. Or plainer english,
-        if you want the trigger to fire at exactly 11:23:54 AM on
-        January 13, 2005, and then fire five more times, every ten
-        seconds.</p>
+<p><b><em>SimpleTrigger</em></b> should meet your scheduling needs if you need to have a job execute exactly once at a specific moment in time, or at a specific moment in time followed by repeats at a specific interval.  Or plainer english, if you want the trigger to fire at exactly 11:23:54 AM on January 13, 2005, and then fire five more times, every ten seconds.</p>
 
-        <p>With this description, you may not find it surprising to
-        find that the properties of a SimpleTrigger include: a
-        start-time, and end-time, a repeat count, and a repeat interval.
-        All of these properties are exactly what you'd expect them to
-        be, with only a couple special notes related to the end-time
-        property.</p>
+<p>With this description, you may not find it surprising to find that the properties of a SimpleTrigger include: a start-time, and end-time, a repeat count, and a repeat interval. All of these properties are exactly what you'd expect them to be, with only a couple special notes related to the end-time property.</p>
 
-        <p>The repeat count can be zero, a positive integer, or the
-        constant value SimpleTrigger.REPEAT_INDEFINITELY. The repeat
-        interval property must be zero, or a positive long value, and
-        represents a number of milliseconds. Note that a repeat interval
-        of zero will cause 'repeat count' firings of the trigger to
-        happen concurrently (or as close to concurrently as the
-        scheduler can manage).</p>
+<p>The repeat count can be zero, a positive integer, or the constant value SimpleTrigger.REPEAT_INDEFINITELY. The repeat interval property must be zero, or a positive long value, and represents a number of milliseconds. Note that a repeat interval of zero will cause 'repeat count' firings of the trigger to happen concurrently (or as close to concurrently as the scheduler can manage).</p>
 
-        <p>If you're not already familiar with the
-        java.util.Calendar class, you may find it helpful for computing
-        your trigger fire-times, depending on the <b><em>startTime</em></b>
-        (or endTime) that you're trying to create. The <em>org.quartz.helpers.TriggerUtils</em>
-        class is also helpful in this respect.</p>
+<p>If you're not already familiar with the java.util.Calendar class, you may find it helpful for computing your trigger fire-times, depending on the <b><em>startTime</em></b> (or endTime) that you're trying to create.  The <em>org.quartz.helpers.TriggerUtils</em> class is also helpful in this respect.</p>
 
-        <p>The <b><em>endTime</em></b> property (if it is specified)
-        overrides the repeat count property. This can be useful if you
-        wish to create a trigger such as one that fires every 10 seconds
-        until a given moment in time - rather than having to compute the
-        number of times it would repeat between the start-time and the
-        end-time, you can simply specify the end-time and then use a
-        repeat count of REPEAT_INDEFINITELY (you could even specify a
-        repeat count of some huge number that is sure to be more than
-        the number of times the trigger will actually fire before the
-        end-time arrives).</p>
+<p>The <b><em>endTime</em></b> property (if it is specified) overrides the repeat count property. This can be useful if you wish to create a trigger such as one that fires every 10 seconds until a given moment in time - rather than having to compute the number of times it would repeat between the start-time and the end-time, you can simply specify the end-time and then use a repeat count of REPEAT_INDEFINITELY (you could even specify a repeat count of some huge number that is sure to be more than the number of times the trigger will actually fire before the end-time arrives).</p>
 
-        <p>SimpleTrigger has a few different constructors, but we'll
-        examine this one, and use it in the few examples that follow:</p>
-        <div class="code">
-        <div class="codeHeader"><b>One of SimpleTrigger's
-        Constructors</b></div>
-        <div class="codeContent"><pre class="code-java"><span
-            class="code-keyword">public</span> SimpleTrigger(<span
-            class="code-object">String</span> name,
+<p>SimpleTrigger has a few different constructors, but we'll examine this one, and use it in the few examples that follow:</p>
+<div class="code"><div class="codeHeader"><b>One of SimpleTrigger's Constructors</b></div><div class="codeContent">
+<pre class="code-java"><span class="code-keyword">public</span> SimpleTrigger(<span class="code-object">String</span> name,
                        <span class="code-object">String</span> group,
                        Date startTime,
                        Date endTime,
                        <span class="code-object">int</span> repeatCount,
                        <span class="code-object">long</span> repeatInterval)</pre>
-        </div>
-        </div>
-        <div class="code">
-        <div class="codeHeader"><b>SimpleTrigger Example 1 -
-        Create a trigger that fires exactly once, ten seconds from now</b></div>
-        <div class="codeContent"><pre class="code-java"><span
-            class="code-object">long</span> startTime = <span
-            class="code-object">System</span>.currentTimeMillis() + 10000L;
+</div></div>
+<div class="code"><div class="codeHeader"><b>SimpleTrigger Example 1 - Create a trigger that fires exactly once, ten seconds from now</b></div><div class="codeContent">
+<pre class="code-java"><span class="code-object">long</span> startTime = <span class="code-object">System</span>.currentTimeMillis() + 10000L;
 
-  SimpleTrigger trigger = <span class="code-keyword">new</span> SimpleTrigger(<span
-            class="code-quote">"myTrigger"</span>,
+  SimpleTrigger trigger = <span class="code-keyword">new</span> SimpleTrigger(<span class="code-quote">"myTrigger"</span>,
                                             <span class="code-keyword">null</span>,
                                             <span class="code-keyword">new</span> Date(startTime),
                                             <span class="code-keyword">null</span>,
                                             0,
-                                            0L);</pre></div>
-        </div>
-        <div class="code">
-        <div class="codeHeader"><b>SimpleTrigger Example 2 -
-        Create a trigger that fires immediately, then repeats every 60
-        seconds, forever</b></div>
-        <div class="codeContent"><pre class="code-java">SimpleTrigger trigger = <span
-            class="code-keyword">new</span> SimpleTrigger(<span
-            class="code-quote">"myTrigger"</span>,
+                                            0L);</pre>
+</div></div>
+<div class="code"><div class="codeHeader"><b>SimpleTrigger Example 2 - Create a trigger that fires immediately, then repeats every 60 seconds, forever</b></div><div class="codeContent">
+<pre class="code-java">SimpleTrigger trigger = <span class="code-keyword">new</span> SimpleTrigger(<span class="code-quote">"myTrigger"</span>,
                                             <span class="code-keyword">null</span>,
                                             <span class="code-keyword">new</span> Date(),
                                             <span class="code-keyword">null</span>,
                                             SimpleTrigger.REPEAT_INDEFINITELY,
-                                            60L * 1000L);</pre></div>
-        </div>
-        <div class="code">
-        <div class="codeHeader"><b>SimpleTrigger Example 3 -
-        Create a trigger that fires immediately, then repeats every 10
-        seconds until 40 seconds from now</b></div>
-        <div class="codeContent"><pre class="code-java"><span
-            class="code-object">long</span> endTime = <span
-            class="code-object">System</span>.currentTimeMillis() + 40000L;
+                                            60L * 1000L);</pre>
+</div></div>
+<div class="code"><div class="codeHeader"><b>SimpleTrigger Example 3 - Create a trigger that fires immediately, then repeats every 10 seconds until 40 seconds from now</b></div><div class="codeContent">
+<pre class="code-java"><span class="code-object">long</span> endTime = <span class="code-object">System</span>.currentTimeMillis() + 40000L;
 
-  SimpleTrigger trigger = <span class="code-keyword">new</span> SimpleTrigger(<span
-            class="code-quote">"myTrigger"</span>,
+  SimpleTrigger trigger = <span class="code-keyword">new</span> SimpleTrigger(<span class="code-quote">"myTrigger"</span>,
                                             <span class="code-quote">"myGroup"</span>,
                                             <span class="code-keyword">new</span> Date(),
                                             <span class="code-keyword">new</span> Date(endTime),
                                             SimpleTrigger.REPEAT_INDEFINITELY,
-                                            10L * 1000L);</pre></div>
-        </div>
-        <div class="code">
-        <div class="codeHeader"><b>SimpleTrigger Example 4 -
-        Create a trigger that fires on March 17 of the year 2002 at
-        precisely 10:30 am, and repeats 5 times (for a total of 6
-        firings) - with a 30 second delay between each firing</b></div>
-        <div class="codeContent"><pre class="code-java">java.util.Calendar cal = <span
-            class="code-keyword">new</span> java.util.GregorianCalendar(2002, cal.MARCH, 17);
+                                            10L * 1000L);</pre>
+</div></div>
+<div class="code"><div class="codeHeader"><b>SimpleTrigger Example 4 - Create a trigger that fires on March 17 of the year 2002 at precisely 10:30 am, and repeats 5 times (for a total of 6 firings) - with a 30 second delay between each firing</b></div><div class="codeContent">
+<pre class="code-java">java.util.Calendar cal = <span class="code-keyword">new</span> java.util.GregorianCalendar(2002, cal.MARCH, 17);
   cal.set(cal.HOUR, 10);
   cal.set(cal.MINUTE, 30);
   cal.set(cal.SECOND, 0);
 
   Data startTime = cal.getTime()
 
-  SimpleTrigger trigger = <span class="code-keyword">new</span> SimpleTrigger(<span
-            class="code-quote">"myTrigger"</span>,
+  SimpleTrigger trigger = <span class="code-keyword">new</span> SimpleTrigger(<span class="code-quote">"myTrigger"</span>,
                                             <span class="code-keyword">null</span>,
                                             startTime,
                                             <span class="code-keyword">null</span>,
                                             5,
-                                            30L * 1000L);</pre></div>
-        </div>
-        <p>Spend some time looking at the other constructors (and
-        property setters) available on SimpleTrigger, so that you can
-        use the one most convenient to what you want to accomplish.</p>
+                                            30L * 1000L);</pre>
+</div></div>
+<p>Spend some time looking at the other constructors (and property setters) available on SimpleTrigger, so that you can use the one most convenient to what you want to accomplish.</p>
 
-        <h3><a
-            name="TutorialLesson5-SimpleTriggerMisfireInstructions"></a>SimpleTrigger
-        Misfire Instructions</h3>
+<h3><a name="TutorialLesson5-SimpleTriggerMisfireInstructions"></a>SimpleTrigger Misfire Instructions</h3>
 
-        <p>SimpleTrigger has several instructions that can be used
-        to inform Quartz what it should do when a misfire occurs.
-        (Misfire situations were introduced in the More About Triggers
-        section of this tutorial). These instructions are defined as
-        constants on SimpleTrigger itself (including JavaDoc describing
-        their behavior). The instructions include:</p>
-        <div class="code">
-        <div class="codeHeader"><b>Misfire Instruction
-        Constants of SimpleTrigger</b></div>
-        <div class="codeContent"><pre class="code-java">MISFIRE_INSTRUCTION_FIRE_NOW
+<p>SimpleTrigger has several instructions that can be used to inform Quartz what it should do when a misfire occurs. (Misfire situations were introduced in the More About Triggers section of this tutorial). These instructions are defined as constants on SimpleTrigger itself (including JavaDoc describing their behavior). The instructions include:</p>
+<div class="code"><div class="codeHeader"><b>Misfire Instruction Constants of SimpleTrigger</b></div><div class="codeContent">
+<pre class="code-java">MISFIRE_INSTRUCTION_FIRE_NOW
 MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_EXISTING_REPEAT_COUNT
 MISFIRE_INSTRUCTION_RESCHEDULE_NOW_WITH_REMAINING_REPEAT_COUNT
 MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_REMAINING_COUNT
-MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_EXISTING_COUNT</pre></div>
-        </div>
-        <p>You should recall from the earlier lessons that all
-        triggers have the <em>Trigger.MISFIRE_INSTRUCTION_SMART_POLICY</em>
-        instruction available for use, and this instruction is also the
-        default for all trigger types.</p>
+MISFIRE_INSTRUCTION_RESCHEDULE_NEXT_WITH_EXISTING_COUNT</pre>
+</div></div>
+<p>You should recall from the earlier lessons that all triggers have the <em>Trigger.MISFIRE_INSTRUCTION_SMART_POLICY</em> instruction available for use, and this instruction is also the default for all trigger types.</p>
 
-        <p>If the 'smart policy' instruction is used, SimpleTrigger
-        dynamically chooses between its various MISFIRE instructions,
-        based on the configuration and state of the given SimpleTrigger
-        instance. The JavaDoc for the SimpleTrigger.updateAfterMisfire()
-        method explains the exact details of this dynamic behavior.</p>
+<p>If the 'smart policy' instruction is used, SimpleTrigger dynamically chooses between its various MISFIRE instructions, based on the configuration and state of the given SimpleTrigger instance. The JavaDoc for the SimpleTrigger.updateAfterMisfire() method explains the exact details of this dynamic behavior.</p>
 
         </td>
     </tr>