public static interface ISchedule.Item
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ISchedule.Item.Calendar |
| Modifier and Type | Method and Description |
|---|---|
ISchedule.Item.Calendar |
addCalendar()
Adds a new run calendar to the item
|
void |
addTrigger(Trigger.TRIGGER_TYPE trigger)
Adds the trigger to the item's schedule
|
void |
addTriggers(java.util.Set<Trigger.TRIGGER_TYPE> trigger)
Add the set of triggers to the item's schedule
Currently 4 types of triggers are supported
- New File Creation Success
- New File Creation Failure
- User Session End Success
- User Session End Failure
|
void |
clearCalendars()
Clear all of the run calendars for this item
|
java.lang.String[] |
getAction()
Get the alias path of the scheduled action
|
com.cleo.lexicom.beans.IAction |
getBean()
Get the bean object associated with this item
|
java.util.Date |
getNextScheduled()
Get the next scheduled value for the action's schedule
|
java.lang.String |
getPeriod()
Get the scheduling period
|
java.util.Set<Trigger.TRIGGER_TYPE> |
getScheduledTriggers()
Get the scheduled triggers for the item.
|
java.lang.String |
getTimezone()
Get the timezone for the action's schedule
|
boolean |
isContinous()
Indicates if the item is scheduled to run continuously
|
boolean |
isOnlyIfFile()
Indicates if the item should run only if there is a file detected to send (or copy or check)
|
boolean |
isValidAction()
Return true if the action has at least one PUT/LCOPY present in the ccommad
|
java.util.List<ISchedule.Item.Calendar> |
listCalendars()
Get the list of run calendars for the item.
|
void |
removeTriggers()
Removes all the scheduled triggers for the item.
|
void |
setActionState(boolean valid)
Set the action state to true if at least one PUT/LCOPY is present in the command
|
void |
setOnlyIfFile(boolean onlyIfFile,
boolean continuous)
Set whether the item should run only if there is a file detected to send (or copy or check)
|
void |
setPeriod(java.lang.String period)
Set the scheduling period
|
void |
setTimezone(java.lang.String timezone)
Set the timezone for the action's schedule
|
java.lang.String[] getAction()
java.util.List<ISchedule.Item.Calendar> listCalendars()
boolean isOnlyIfFile()
boolean isContinous()
java.lang.String getPeriod()
boolean isValidAction()
void setOnlyIfFile(boolean onlyIfFile,
boolean continuous)
throws java.lang.Exception
onlyIfFile - true if the item should run if and only if there is a file to sendcontinuous - true if the item should be scheduled to look for a file to send continouslyjava.lang.Exceptionvoid setPeriod(java.lang.String period)
period - either WEEKLY, MONTHLY, or ONE_TIMEvoid setActionState(boolean valid)
valid - true or falseISchedule.Item.Calendar addCalendar()
void clearCalendars()
void setTimezone(java.lang.String timezone)
throws java.lang.Exception
timezone - the timezone for the action's schedule. Valid values correspond
to Java 8 java.time.ZoneId (e.g. America/Chicago or Europe/Paris)java.lang.Exception - if the timezone value is invalidjava.lang.String getTimezone()
java.util.Date getNextScheduled()
com.cleo.lexicom.beans.IAction getBean()
void addTriggers(java.util.Set<Trigger.TRIGGER_TYPE> trigger)
trigger - the set of triggers to addvoid addTrigger(Trigger.TRIGGER_TYPE trigger)
trigger - the trigger to addjava.util.Set<Trigger.TRIGGER_TYPE> getScheduledTriggers()
void removeTriggers()