public class SchedulerUtil
extends java.lang.Object
Constructor and Description |
---|
SchedulerUtil() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 executedTimer
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.