forked from sakaiproject/sakai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1) altered AbstractConfigurableJob to use getMergedDataMap() instead of getTrigger().getMergedDataMap(). Also updated README file to indicate this distinction 2) implemented hibernate storage for trigger event longs so they are persistent and available across a cluster git-svn-id: https://source.sakaiproject.org/svn/jobscheduler/branches/SAK-18864@81958 66ffb92e-73f9-0310-93c1-f5514f145a0a
- Loading branch information
Duffy Gillman
committed
Aug 27, 2010
1 parent
90dc0bb
commit 1edc475
Showing
16 changed files
with
606 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...eduler/scheduler-api/src/java/org/sakaiproject/api/app/scheduler/events/TriggerEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.sakaiproject.api.app.scheduler.events; | ||
|
||
import java.util.Date; | ||
|
||
/** | ||
* Created by IntelliJ IDEA. | ||
* User: duffy | ||
* Date: Aug 26, 2010 | ||
* Time: 3:39:51 PM | ||
* To change this template use File | Settings | File Templates. | ||
*/ | ||
public interface TriggerEvent | ||
{ | ||
public static enum TRIGGER_EVENT_TYPE | ||
{ | ||
FIRED, COMPLETE, INFO, DEBUG, ERROR | ||
} | ||
|
||
public TRIGGER_EVENT_TYPE getEventType(); | ||
|
||
public String getJobName(); | ||
|
||
public String getTriggerName(); | ||
|
||
public Date getTime(); | ||
|
||
public String getMessage(); | ||
} |
22 changes: 22 additions & 0 deletions
22
...scheduler-api/src/java/org/sakaiproject/api/app/scheduler/events/TriggerEventManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.sakaiproject.api.app.scheduler.events; | ||
|
||
import java.util.Date; | ||
import java.util.List; | ||
|
||
/** | ||
* Created by IntelliJ IDEA. | ||
* User: duffy | ||
* Date: Aug 26, 2010 | ||
* Time: 3:40:13 PM | ||
* To change this template use File | Settings | File Templates. | ||
*/ | ||
public interface TriggerEventManager | ||
{ | ||
public TriggerEvent createTriggerEvent (TriggerEvent.TRIGGER_EVENT_TYPE type, String jobName, String triggerName, Date time, String message); | ||
|
||
public List<TriggerEvent> getTriggerEvents (); | ||
|
||
public List<TriggerEvent> getTriggerEvents (Date after, Date before, String jobName, String triggerName, TriggerEvent.TRIGGER_EVENT_TYPE[] types); | ||
|
||
public void purgeEvents (Date before); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.