Constructor and Description |
---|
ExecuteRecurring()
Constructs a new
ExecuteRecurring instance
with the default setting to execute the task every 30 minutes on each weekday. |
ExecuteRecurring(UC4ObjectName uc4ObjectNamme)
Constructs a new
ExecuteRecurring instance by also providing the uc4 object name of the recurring object
with the default setting to execute the task every 30 minutes on each weekday. |
Modifier and Type | Method and Description |
---|---|
ExecuteRecurring |
clone() |
UC4Alias |
getAlias()
Returns the alias or
null if it has not been set. |
TaskCalendar |
getCalendarCondition()
Returns the calendar condition which has been set using
the method
setCalendarCondition(TaskCalendar) . |
int |
getDateRangeRuns() |
int |
getExecutionInterval() |
int |
getGapInterval() |
UC4ObjectName |
getName()
Returns the name or
null if it has not been set. |
java.lang.String |
getPeriodDescription()
Description of the periodic cycle in which executions are triggered.
|
UC4ObjectName |
getQueue()
Returns the Queue Object.
|
DateTime |
getRangeEndDate()
Returns the end date of the date range which has been set using
the method
setDateRange . |
DateTime |
getRangeStartDate()
Returns the start date of of the date range which has been set using
the method
setDateRange . |
Time |
getTimeframeEnd()
Returns the end time which was set using the method
setTimeframe . |
Time |
getTimeframeStart()
Returns the start time which was set using the method
setTimeframe . |
Time |
getTimeOfSingleExecution()
Returns the start time that has been set using the method
setAtTime . |
UC4TimezoneName |
getTimeZone() |
boolean |
hasDateRangeRuns() |
boolean |
hasDateRangeWithEndTime() |
boolean |
hasDateRangeWithoutEnd() |
boolean |
hasTimeframeAdjustment() |
boolean |
isAllowOneOverlap() |
boolean |
isExecutedAtTime() |
boolean |
isExecutedInterval() |
boolean |
isExecutedWithGap() |
boolean |
isFriday() |
boolean |
isMonday() |
boolean |
isSaturday() |
boolean |
isSunday() |
boolean |
isThursday() |
boolean |
isTuesday() |
boolean |
isWednesday() |
boolean |
runsOnDefinedCalendar()
Returns true if the task runs based on calendar conditions.
|
boolean |
runsOnDefinedWeekdays()
Returns true if the task runs on defined week days.
|
void |
setAlias(UC4Alias alias)
Sets the alias of a recurring task.
|
void |
setAllowOneOverlap(boolean overlap)
Sets if one overlap should be allowed.
|
void |
setAtTime(Time time)
Sets the start time of the task.
|
void |
setCalendarCondition(TaskCalendar calendar)
Sets the calendar condition of the recurring tasks.
|
void |
setDateRange(DateTime startDate,
DateTime endDate)
Sets the date range for the interval.
|
void |
setDateRange(DateTime startDate,
int runs)
Sets a date range using a start date and a number of runs.
|
void |
setExecutionInterval(int every)
Sets the execution interval in minutes.
|
void |
setGapToPreviousRun(int gap)
Sets the gap to the previous run of the task in minutes.
|
void |
setOnce(Time time)
Sets the time of the once field
|
void |
setPeriodDescription(java.lang.String periodDescription)
Sets the description that describes the execution cycle of this instance.
|
void |
setQueue(UC4ObjectName queue)
Sets the Queue that will be used when this Automation Engine object is executed.
|
void |
setRangeWithoutEnd(DateTime startDate)
Sets a date range with a start date and an open end date.
|
void |
setTimeframe(Time start,
Time end,
boolean forceAdjustment)
Sets the execution time frame.
|
void |
setTimeZone(UC4TimezoneName tz)
Sets the time zone of all dates used in this class.
|
void |
setWeekDays(boolean mo,
boolean tu,
boolean we,
boolean th,
boolean fr,
boolean sa,
boolean su)
Sets Weekdays.
|
void |
store(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element execPeriod)
Only for internal use.
|
public ExecuteRecurring()
ExecuteRecurring
instance
with the default setting to execute the task every 30 minutes on each weekday.public ExecuteRecurring(UC4ObjectName uc4ObjectNamme)
ExecuteRecurring
instance by also providing the uc4 object name of the recurring object
with the default setting to execute the task every 30 minutes on each weekday.uc4ObjectNamme
- The name of the UC4 objectpublic ExecuteRecurring clone()
clone
in class java.lang.Object
public UC4Alias getAlias()
null
if it has not been set.public void setAlias(UC4Alias alias)
alias
- UC4 Aliaspublic void setTimeframe(Time start, Time end, boolean forceAdjustment)
start
- Start timeend
- End timeforceAdjustment
- Aligns the start time on the time frame if set to truepublic Time getTimeframeStart()
setTimeframe
.public UC4ObjectName getQueue()
public void setQueue(UC4ObjectName queue)
queue
- Name of the Queue Objectpublic Time getTimeframeEnd()
setTimeframe
.public boolean hasTimeframeAdjustment()
public void setExecutionInterval(int every)
every
- Number of minutes of the execution intervalpublic boolean isExecutedInterval()
public int getExecutionInterval()
public void setGapToPreviousRun(int gap)
gap
- Time gap in minutespublic boolean isExecutedWithGap()
public int getGapInterval()
public void setAtTime(Time time)
time
- Start timepublic void setOnce(Time time)
time
- Start time of the once executionpublic Time getTimeOfSingleExecution()
setAtTime
.public boolean isExecutedAtTime()
public void setAllowOneOverlap(boolean overlap)
overlap
is set to false
there will only
be one task at one time even if the old run has not finished.overlap
- True if one overlap is allowedpublic boolean isAllowOneOverlap()
public void setTimeZone(UC4TimezoneName tz)
tz
- Time zonepublic UC4TimezoneName getTimeZone()
public void setDateRange(DateTime startDate, DateTime endDate)
startDate
- Start dateendDate
- End datepublic boolean hasDateRangeWithEndTime()
public DateTime getRangeStartDate()
setDateRange
.public DateTime getRangeEndDate()
setDateRange
.public void setRangeWithoutEnd(DateTime startDate)
startDate
- start datepublic boolean hasDateRangeWithoutEnd()
public void setDateRange(DateTime startDate, int runs)
startDate
- Start dateruns
- Number of runpublic int getDateRangeRuns()
public boolean hasDateRangeRuns()
public void setCalendarCondition(TaskCalendar calendar)
calendar
- Calendar conditionpublic TaskCalendar getCalendarCondition()
setCalendarCondition(TaskCalendar)
.public void setWeekDays(boolean mo, boolean tu, boolean we, boolean th, boolean fr, boolean sa, boolean su)
mo
- Mondaytu
- Tuesdaywe
- Wednesdayth
- Thursdayfr
- Fridaysa
- Saturdaysu
- Sundaypublic boolean runsOnDefinedWeekdays()
true
if setWeekDays
has been called before.
Note: When this method returns true, calls to runsOnDefinedCalendar()
will return false.
public boolean runsOnDefinedCalendar()
true
if setCalendarCondition(TaskCalendar)
has been called before.
Note: When this method returns true, calls to runsOnDefinedWeekdays()
will return false.
public boolean isSunday()
public boolean isMonday()
public boolean isTuesday()
public boolean isWednesday()
public boolean isThursday()
public boolean isFriday()
public boolean isSaturday()
public void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element execPeriod)
Stores the content of this class under the specified XML element
in doc
.
doc
- XML DocumentexecPeriod
- Elementpublic void setPeriodDescription(java.lang.String periodDescription)
periodDescription
- The new description.java.lang.IllegalArgumentException
- when periodDescription
is longer than 255 characters.public java.lang.String getPeriodDescription()
Period
instance, the period description is initialized with title of the Period
instance.null
if no description has been specified.Period.createExecuteRecurring()
public UC4ObjectName getName()
null
if it has not been set.