|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.scheduler.Schedule
public class Schedule
Describes when to start a task and how often it should be executed.
Field Summary | |
---|---|
static int |
DAILY
|
static int |
DAYS_PER_WEEK
|
java.lang.String |
DEFAULT_DATE_FORMAT
Default TODO Move to constants or properties |
static int |
HOURS_PER_DAY
|
static int |
MILLISECONDS_PER_SECOND
Constants |
static int |
MINUTES_PER_HOUR
|
static int |
SECONDS_PER_MINUTE
|
static int |
WEEKLY
|
Constructor Summary | |
---|---|
Schedule()
Public no-arg constructor. |
|
Schedule(java.util.Date startTime,
long repeatInterval)
Public constructor |
|
Schedule(java.lang.String name,
java.lang.String description,
java.util.Date startTime,
long repeatInterval)
Public constructor |
Method Summary | |
---|---|
java.lang.String |
getDateFormat()
Get the date format used to set the start time. |
java.lang.String |
getDescription()
Gets the description of the schedule. |
java.lang.Integer |
getId()
Gets the identifier of the schedule. |
java.lang.String |
getName()
Gets the name of the schedule. |
long |
getRepeatInterval()
Gets the number of seconds until task is executed again. |
java.lang.Boolean |
getStartOnStartup()
Gets the flag that indicates whether we start on scheduler startup. |
java.util.Date |
getStartTime()
Get the start time for when the task should be executed. |
void |
setDateFormat(java.lang.String dateFormat)
Sets the date format used to set the start time. |
void |
setDescription(java.lang.String description)
Sets the description of the schedule. |
void |
setId(java.lang.Integer id)
Sets the identifier of the schedule. |
void |
setName(java.lang.String name)
Sets the name of the schedule. |
void |
setRepeatInterval(long repeatInterval)
Sets the number of seconds until task is executed again. |
void |
setStartOnStartup(java.lang.Boolean startOnStartup)
Sets the flag that indicates whether we start on scheduler startup. |
void |
setStartTime(java.util.Date startTime)
Set the start time for when the task should be executed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final java.lang.String DEFAULT_DATE_FORMAT
public static final int MILLISECONDS_PER_SECOND
public static final int SECONDS_PER_MINUTE
public static final int MINUTES_PER_HOUR
public static final int HOURS_PER_DAY
public static final int DAYS_PER_WEEK
public static final int DAILY
public static final int WEEKLY
Constructor Detail |
---|
public Schedule()
public Schedule(java.util.Date startTime, long repeatInterval)
startTime
- Date for when to start the task (does not need to be in the future if the
interval is specified).repeatInterval
- interval time in seconds to wait between executing task (<= 0 indicates
that it should only be run once)public Schedule(java.lang.String name, java.lang.String description, java.util.Date startTime, long repeatInterval)
name
- description
- startTime
- Date for when to start the task (does not need to be in the future if the
interval is specified).repeatInterval
- interval time in seconds to wait between executing task (<= 0 indicates
that it should only be run once)Method Detail |
---|
public java.lang.Integer getId()
public void setId(java.lang.Integer id)
id
- the identifier of the schedulepublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the name of the schedulepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description of the schedulepublic java.util.Date getStartTime()
public void setStartTime(java.util.Date startTime)
startTime
- start time for the taskpublic long getRepeatInterval()
public void setRepeatInterval(long repeatInterval)
repeatInterval
- public java.lang.String getDateFormat()
public void setDateFormat(java.lang.String dateFormat)
public java.lang.Boolean getStartOnStartup()
public void setStartOnStartup(java.lang.Boolean startOnStartup)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |