public interface SchedInstanceMapper
| 限定符和类型 | 方法和说明 |
|---|---|
int |
deleteByInstanceId(long instanceId)
Delete the sched instance.
|
int |
deleteByWnstanceId(long wnstanceId) |
List<SchedInstance> |
findChildren(long pnstanceId,
Integer runType) |
List<SchedInstance> |
findExpireState(int runState,
Date expireTime,
int size) |
List<SchedInstance> |
findRunRetry(long instanceId) |
List<SchedInstance> |
findWorkflowNode(long wnstanceId) |
SchedInstance |
get(long instanceId)
Gets sched instance by instance_id
|
SchedInstance |
getByUniqueKey(long jobId,
long triggerTime,
int runType,
long uniqueFlag) |
Long |
getJobId(long instanceId)
Gets job id by instance_id
|
SchedInstance |
getRetrying(long instanceId) |
Long |
getWnstanceId(long instanceId) |
int |
insert(SchedInstance instance) |
SchedInstance |
lock(long instanceId) |
List<SchedInstance> |
queryByPnstanceId(long pnstanceId) |
List<Map<String,Object>> |
queryChildCount(List<Long> pnstanceIds) |
long |
queryPageCount(SchedInstancePageRequest request) |
List<SchedInstance> |
queryPageRecords(SchedInstancePageRequest request) |
int |
start(long instanceId,
Date runStartTime) |
int |
terminate(long instanceId,
int toState,
List<Integer> fromStateList,
Date runEndTime) |
default boolean |
terminate(long instanceId,
cn.ponfee.disjob.core.enums.RunState toState,
List<Integer> fromStateList,
Date runEndTime) |
int |
updateNextScanTime(long instanceId,
Date nextScanTime,
int version) |
int |
updateRetrying(long instanceId,
boolean retrying,
int toState,
int fromState) |
default boolean |
updateRetrying(long instanceId,
boolean retrying,
cn.ponfee.disjob.core.enums.RunState toState,
cn.ponfee.disjob.core.enums.RunState fromState) |
int |
updateState(long instanceId,
int toState,
int fromState) |
default boolean |
updateState(long instanceId,
cn.ponfee.disjob.core.enums.RunState toState,
cn.ponfee.disjob.core.enums.RunState fromState) |
int insert(SchedInstance instance)
SchedInstance get(long instanceId)
instanceId - the instance idLong getJobId(long instanceId)
instanceId - the instance idLong getWnstanceId(long instanceId)
List<SchedInstance> findChildren(@Param(value="pnstanceId") long pnstanceId, @Param(value="runType") Integer runType)
int start(@Param(value="instanceId")
long instanceId,
@Param(value="runStartTime")
Date runStartTime)
int terminate(@Param(value="instanceId")
long instanceId,
@Param(value="toState")
int toState,
@Param(value="fromStateList")
List<Integer> fromStateList,
@Param(value="runEndTime")
Date runEndTime)
int updateState(@Param(value="instanceId")
long instanceId,
@Param(value="toState")
int toState,
@Param(value="fromState")
int fromState)
int updateRetrying(@Param(value="instanceId")
long instanceId,
@Param(value="retrying")
boolean retrying,
@Param(value="toState")
int toState,
@Param(value="fromState")
int fromState)
List<SchedInstance> findExpireState(@Param(value="runState") int runState, @Param(value="expireTime") Date expireTime, @Param(value="size") int size)
SchedInstance getRetrying(long instanceId)
List<SchedInstance> findRunRetry(long instanceId)
List<SchedInstance> findWorkflowNode(long wnstanceId)
int updateNextScanTime(@Param(value="instanceId")
long instanceId,
@Param(value="nextScanTime")
Date nextScanTime,
@Param(value="version")
int version)
SchedInstance lock(long instanceId)
int deleteByInstanceId(long instanceId)
instanceId - the instance idint deleteByWnstanceId(long wnstanceId)
SchedInstance getByUniqueKey(@Param(value="jobId") long jobId, @Param(value="triggerTime") long triggerTime, @Param(value="runType") int runType, @Param(value="uniqueFlag") long uniqueFlag)
long queryPageCount(SchedInstancePageRequest request)
List<SchedInstance> queryPageRecords(SchedInstancePageRequest request)
List<SchedInstance> queryByPnstanceId(long pnstanceId)
default boolean terminate(long instanceId,
cn.ponfee.disjob.core.enums.RunState toState,
List<Integer> fromStateList,
Date runEndTime)
default boolean updateState(long instanceId,
cn.ponfee.disjob.core.enums.RunState toState,
cn.ponfee.disjob.core.enums.RunState fromState)
default boolean updateRetrying(long instanceId,
boolean retrying,
cn.ponfee.disjob.core.enums.RunState toState,
cn.ponfee.disjob.core.enums.RunState fromState)
Copyright © 2025. All rights reserved.