Author: jvelociter
Date: 2007-10-17 13:37:35 +0200 (Wed, 17 Oct 2007)
New Revision: 5414
Modified:
xwiki-platform/xwiki-plugins/trunk/scheduler/src/main/java/com/xpn/xwiki/plugin/scheduler/SchedulerPlugin.java
xwiki-platform/xwiki-plugins/trunk/scheduler/src/main/java/com/xpn/xwiki/plugin/scheduler/SchedulerPluginException.java
Log:
Corrected a bad typing mistake
Modified:
xwiki-platform/xwiki-plugins/trunk/scheduler/src/main/java/com/xpn/xwiki/plugin/scheduler/SchedulerPlugin.java
===================================================================
---
xwiki-platform/xwiki-plugins/trunk/scheduler/src/main/java/com/xpn/xwiki/plugin/scheduler/SchedulerPlugin.java
2007-10-17 09:32:42 UTC (rev 5413)
+++
xwiki-platform/xwiki-plugins/trunk/scheduler/src/main/java/com/xpn/xwiki/plugin/scheduler/SchedulerPlugin.java
2007-10-17 11:37:35 UTC (rev 5414)
@@ -90,7 +90,7 @@
setScheduler(getDefaultSchedulerInstance());
setStatusListener();
getScheduler().start();
- restaureExistingJobs(context);
+ restoreExistingJobs(context);
} catch (SchedulerException e) {
LOG.error("Failed to start the scheduler", e);
} catch (SchedulerPluginException e) {
@@ -110,14 +110,14 @@
}
/**
- * Restaure the existing job, by looking up for such job in the database
and re-scheduling those
+ * Restore the existing job, by looking up for such job in the database
and re-scheduling those
* according to their stored status. If a Job is stored with the status
"Normal", it is just
* scheduled If a Job is stored with the status "Paused", then it is both
scheduled and paused
* Jobs with other status (None, Complete) are not rescheduled.
*
* @param context The XWikiContext when initializing the plugin
*/
- private void restaureExistingJobs(XWikiContext context) throws
SchedulerPluginException
+ private void restoreExistingJobs(XWikiContext context) throws
SchedulerPluginException
{
String hql = ", BaseObject as obj where doc.web='Scheduler'" +
" and obj.name=doc.fullName and
obj.className='XWiki.SchedulerJobClass'";
@@ -146,7 +146,7 @@
}
} catch (XWikiException e) {
throw new SchedulerPluginException(
-
SchedulerPluginException.ERROR_SCHEDULERPLUGIN_RESTAURE_EXISTING_JOBS,
+
SchedulerPluginException.ERROR_SCHEDULERPLUGIN_RESTORE_EXISTING_JOBS,
"Failed to restaure existing scheduler jobs", e);
}
}
Modified:
xwiki-platform/xwiki-plugins/trunk/scheduler/src/main/java/com/xpn/xwiki/plugin/scheduler/SchedulerPluginException.java
===================================================================
---
xwiki-platform/xwiki-plugins/trunk/scheduler/src/main/java/com/xpn/xwiki/plugin/scheduler/SchedulerPluginException.java
2007-10-17 09:32:42 UTC (rev 5413)
+++
xwiki-platform/xwiki-plugins/trunk/scheduler/src/main/java/com/xpn/xwiki/plugin/scheduler/SchedulerPluginException.java
2007-10-17 11:37:35 UTC (rev 5414)
@@ -43,7 +43,7 @@
protected static final int ERROR_SCHEDULERPLUGIN_RESTORE_JOB = 90008;
- protected static final int ERROR_SCHEDULERPLUGIN_RESTAURE_EXISTING_JOBS =
90009;
+ protected static final int ERROR_SCHEDULERPLUGIN_RESTORE_EXISTING_JOBS =
90009;
public SchedulerPluginException(int code, String message)
{
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications