|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.scheduler.SchedulerUtil
public class SchedulerUtil
Constructor Summary | |
---|---|
SchedulerUtil()
|
Method Summary | |
---|---|
static java.lang.String |
getExceptionAsString(java.lang.Throwable t)
|
static java.util.Date |
getNextExecution(TaskDefinition taskDefinition)
Gets the next execution time based on the initial start time (possibly years ago, depending on when the task was configured in OpenMRS) and the repeat interval of execution. |
static void |
sendSchedulerError(java.lang.Throwable throwable)
Sends an email with system information and the given exception |
static void |
shutdown()
Shutdown the scheduler service that is statically associated with the Context class. |
static void |
startup(java.util.Properties p)
Start the scheduler given the following start up properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchedulerUtil()
Method Detail |
---|
public static void startup(java.util.Properties p)
p
- properties used to start the servicepublic static void shutdown()
public static void sendSchedulerError(java.lang.Throwable throwable)
error
- public static java.lang.String getExceptionAsString(java.lang.Throwable t)
e
-
String
representation of the given exceptionpublic static java.util.Date getNextExecution(TaskDefinition taskDefinition)
taskDefinition
- the task definition to be executed
Timer
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |