public abstract class AbstractExecutableLogic<T extends EntityTO> extends Object
Modifier and Type | Field and Description |
---|---|
protected JobManager |
jobManager |
protected JobStatusDAO |
jobStatusDAO |
protected static org.slf4j.Logger |
LOG |
protected SchedulerFactoryBean |
scheduler |
Constructor and Description |
---|
AbstractExecutableLogic() |
Modifier and Type | Method and Description |
---|---|
abstract void |
actionJob(String key,
JobAction action) |
abstract ExecTO |
deleteExecution(String executionKey) |
abstract List<BatchResponseItem> |
deleteExecutions(String key,
Date before,
Date after) |
protected void |
doActionJob(org.quartz.JobKey jobKey,
JobAction action) |
protected List<JobTO> |
doListJobs(boolean includeCustom) |
abstract ExecTO |
execute(String key,
Date startAt,
boolean dryRun) |
abstract JobTO |
getJob(String key) |
protected JobTO |
getJobTO(org.quartz.JobKey jobKey,
boolean includeCustom) |
protected abstract Triple<JobType,String,String> |
getReference(org.quartz.JobKey jobKey) |
abstract Pair<Integer,List<ExecTO>> |
listExecutions(String key,
Date before,
Date after,
int page,
int size,
List<OrderByClause> orderByClauses) |
abstract List<JobTO> |
listJobs() |
abstract List<ExecTO> |
listRecentExecutions(int max) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected abstract T |
resolveReference(Method method,
Object... args) |
@Autowired protected JobManager jobManager
@Autowired protected SchedulerFactoryBean scheduler
@Autowired protected JobStatusDAO jobStatusDAO
protected static final org.slf4j.Logger LOG
public abstract Pair<Integer,List<ExecTO>> listExecutions(String key, Date before, Date after, int page, int size, List<OrderByClause> orderByClauses)
public abstract List<BatchResponseItem> deleteExecutions(String key, Date before, Date after)
protected abstract Triple<JobType,String,String> getReference(org.quartz.JobKey jobKey)
protected JobTO getJobTO(org.quartz.JobKey jobKey, boolean includeCustom) throws org.quartz.SchedulerException
org.quartz.SchedulerException
protected void doActionJob(org.quartz.JobKey jobKey, JobAction action)
public T resolveBeanReference(Method method, Object... args) throws UnresolvedReferenceException
method
- method.args
- method arguments.UnresolvedReferenceException
- in case of failures, read-only methods and unresolved bean.protected abstract T resolveReference(Method method, Object... args) throws UnresolvedReferenceException
UnresolvedReferenceException
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.