Package org.cyclos.impl.system
Interface CustomRecurringTaskServiceLocal
-
- All Superinterfaces:
CRUDService<CustomRecurringTaskDTO,CustomRecurringTaskData,Void>,CRUDServiceLocal<CustomRecurringTask,CustomRecurringTaskDTO,CustomRecurringTaskData,Void>,CustomRecurringTaskService,Service
public interface CustomRecurringTaskServiceLocal extends CRUDServiceLocal<CustomRecurringTask,CustomRecurringTaskDTO,CustomRecurringTaskData,Void>, CustomRecurringTaskService
Local interface forCustomRecurringTaskService
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_LOGScript attribute: the custom scheduled task log for this executionstatic StringATTR_SCHEDULED_TASKDeprecated Script attribute: the custom recurring taskstatic StringATTR_TASKScript attribute: the custom recurring task
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DategetNextExecution(CustomRecurringTask task)Calculates the next execution date, given the parameters.com.mysema.commons.lang.CloseableIterator<CustomRecurringTask>iterateForRunningNow()Iterates all custom scheduled tasks which should start running immediatelybooleanrun(Long taskId, ProfilingEntry profilingEntry)Runs the task with the given identifier, generating a log.-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, newEntity, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
Methods inherited from interface org.cyclos.services.system.CustomRecurringTaskService
list, runNow, searchLogs
-
-
-
-
Field Detail
-
ATTR_TASK
static final String ATTR_TASK
Script attribute: the custom recurring task- See Also:
- Constant Field Values
-
ATTR_SCHEDULED_TASK
static final String ATTR_SCHEDULED_TASK
Deprecated Script attribute: the custom recurring task- See Also:
- Constant Field Values
-
ATTR_LOG
static final String ATTR_LOG
Script attribute: the custom scheduled task log for this execution- See Also:
- Constant Field Values
-
-
Method Detail
-
getNextExecution
Date getNextExecution(CustomRecurringTask task)
Calculates the next execution date, given the parameters. Is a separated method to allow testing
-
iterateForRunningNow
com.mysema.commons.lang.CloseableIterator<CustomRecurringTask> iterateForRunningNow()
Iterates all custom scheduled tasks which should start running immediately
-
run
boolean run(Long taskId, ProfilingEntry profilingEntry)
Runs the task with the given identifier, generating a log. Assumes there is no current transaction.- Parameters:
profilingEntry- TODO
-
-