public interface SchedJobMapper
| 限定符和类型 | 方法和说明 |
|---|---|
int |
disable(SchedJob job)
Disable the job.
|
List<SchedJob> |
findBeTriggering(long maxNextTriggerTime,
int size)
Finds job witch will be triggering
|
List<SchedJob> |
findByJobIds(List<Long> jobIds) |
SchedJob |
get(long jobId)
Gets sched job by job_id
|
String |
getGroup(long jobId)
Gets group by job_id
|
Long |
getJobId(String group,
String jobName)
Gets job id
|
int |
insert(SchedJob job) |
long |
queryPageCount(SchedJobPageRequest request) |
List<SchedJob> |
queryPageRecords(SchedJobPageRequest request) |
List<Map<String,Object>> |
searchJob(Set<String> groups,
String jobName,
Long jobId) |
int |
softDelete(long jobId,
String updatedBy)
Soft delete the job.
|
int |
update(SchedJob job) |
int |
updateFixedNextTriggerTime(long jobId,
long lastTriggerTime,
long nextTriggerTime)
Updates fixed trigger type job next trigger time
|
int |
updateNextScanTime(SchedJob job) |
int |
updateNextTriggerTime(SchedJob job)
Update the job next trigger time.
|
int |
updateState(long jobId,
String updatedBy,
int toState,
int fromState)
Updates job state
|
int insert(SchedJob job)
int update(SchedJob job)
SchedJob get(long jobId)
jobId - the job idLong getJobId(@Param(value="group") String group, @Param(value="jobName") String jobName)
group - the groupjobName - the job nameString getGroup(long jobId)
jobId - the job idList<SchedJob> findBeTriggering(@Param(value="maxNextTriggerTime") long maxNextTriggerTime, @Param(value="size") int size)
maxNextTriggerTime - the max next trigger timesize - the sizeint updateNextScanTime(SchedJob job)
int disable(SchedJob job)
job - the jobint updateNextTriggerTime(SchedJob job)
job - the jobint updateFixedNextTriggerTime(@Param(value="jobId")
long jobId,
@Param(value="lastTriggerTime")
long lastTriggerTime,
@Param(value="nextTriggerTime")
long nextTriggerTime)
jobId - the job idlastTriggerTime - the last trigger timenextTriggerTime - the next trigger timeint updateState(@Param(value="jobId")
long jobId,
@Param(value="updatedBy")
String updatedBy,
@Param(value="toState")
int toState,
@Param(value="fromState")
int fromState)
jobId - the job idupdatedBy - the updated bytoState - the target statefromState - the source stateint softDelete(@Param(value="jobId")
long jobId,
@Param(value="updatedBy")
String updatedBy)
jobId - the job idupdatedBy - the updated byList<Map<String,Object>> searchJob(@Param(value="groups") Set<String> groups, @Param(value="jobName") String jobName, @Param(value="jobId") Long jobId)
long queryPageCount(SchedJobPageRequest request)
List<SchedJob> queryPageRecords(SchedJobPageRequest request)
Copyright © 2025. All rights reserved.