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