public class Schedule extends Object
Modifier and Type | Field and Description |
---|---|
static int |
EXECUTION_STATUS_IDLE |
static int |
EXECUTION_STATUS_RUNNING |
static int |
STATUS_DISABLED |
static int |
STATUS_ENABLED |
static int |
TYPE_DAILY |
static int |
TYPE_MONTHLY |
static int |
TYPE_WEEKLY |
Constructor and Description |
---|
Schedule() |
Modifier and Type | Method and Description |
---|---|
static boolean |
compareWithThreshold(Calendar date1,
Calendar date2,
int threshold)
Compares date1 and date2 considering the specified threshold.
|
Date |
computeNextProcessDateTime(int threshold)
Computes the next process date/time based only on the start date and last process date.
|
Date |
getEndDate() |
int |
getExecutionStatus()
Returns the executionStatus.
|
String |
getId() |
Date |
getLastProcessDateTime() |
String |
getModelId() |
Date |
getNextProcessDateTime() |
Time |
getProcessTime() |
Integer |
getScheduleMonthDay() |
int |
getScheduleType() |
Integer |
getScheduleWeekDay() |
Date |
getStartDate() |
int |
getStatus() |
void |
setEndDate(Date endDateTime) |
void |
setExecutionStatus(int executionStatus)
Sets the executionStatus.
|
void |
setId(String id) |
void |
setLastProcessDateTime(Date lastProcessDateTime) |
void |
setModelId(String modelId) |
void |
setNextProcessDateTime(Date nextProcessDateTime) |
void |
setProcessTime(Time processDateTime) |
void |
setScheduleMonthDay(Integer scheduleMonthDay) |
void |
setScheduleType(int scheduleType) |
void |
setScheduleWeekDay(Integer scheduleWeekDay) |
void |
setStartDate(Date startDateTime) |
void |
setStatus(int status) |
public static final int STATUS_DISABLED
public static final int STATUS_ENABLED
public static final int EXECUTION_STATUS_RUNNING
public static final int EXECUTION_STATUS_IDLE
public static final int TYPE_DAILY
public static final int TYPE_WEEKLY
public static final int TYPE_MONTHLY
public Date getEndDate()
public void setEndDate(Date endDateTime)
public String getId()
public void setId(String id)
public Date getLastProcessDateTime()
public void setLastProcessDateTime(Date lastProcessDateTime)
public String getModelId()
public void setModelId(String modelId)
public Date getNextProcessDateTime()
public void setNextProcessDateTime(Date nextProcessDateTime)
public Time getProcessTime()
public void setProcessTime(Time processDateTime)
public Integer getScheduleMonthDay()
public void setScheduleMonthDay(Integer scheduleMonthDay)
public int getScheduleType()
public void setScheduleType(int scheduleType)
public Integer getScheduleWeekDay()
public void setScheduleWeekDay(Integer scheduleWeekDay)
public Date getStartDate()
public void setStartDate(Date startDateTime)
public int getStatus()
public void setStatus(int status)
public Date computeNextProcessDateTime(int threshold)
nextProcessDateTime
field.threshold
- the acceptable variation from the schedule process time and
the current date in order to allow the schedule to be executed
in case it's late.public static boolean compareWithThreshold(Calendar date1, Calendar date2, int threshold)
date1
- date2
- threshold
- the acceptable thershold in minutespublic int getExecutionStatus()
public void setExecutionStatus(int executionStatus)
executionStatus
- the executionStatus value to setLumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.