public interface SchedInstanceMapper
| 限定符和类型 | 方法和说明 |
|---|---|
int |
deleteByInstanceId(long instanceId)
Delete the sched instance.
|
List<cn.ponfee.scheduler.core.model.SchedInstance> |
findExpireState(int runState,
long expireTime,
Date updateTime,
int size) |
List<cn.ponfee.scheduler.core.model.SchedInstance> |
findUnterminatedRetry(long parentInstanceId) |
int |
forceUpdateState(long instanceId,
int targetState) |
cn.ponfee.scheduler.core.model.SchedInstance |
getByInstanceId(long instanceId)
Gets sched instance by instance_id
|
cn.ponfee.scheduler.core.model.SchedInstance |
getByTriggerTime(long jobId,
long triggerTime,
int runType) |
Integer |
getStateByInstanceId(long instanceId) |
int |
insert(cn.ponfee.scheduler.core.model.SchedInstance record) |
Long |
lockAndGetId(long instanceId) |
Integer |
lockAndGetState(long instanceId) |
int |
renewUpdateTime(long instanceId,
Date updateTime,
int version) |
int |
start(long instanceId,
Date runStartTime) |
int |
terminate(long instanceId,
int toState,
List<Integer> fromStateList,
Date runEndTime) |
int |
updateState(long instanceId,
int toState,
int fromState,
Integer version) |
int insert(cn.ponfee.scheduler.core.model.SchedInstance record)
cn.ponfee.scheduler.core.model.SchedInstance getByInstanceId(long instanceId)
instanceId - the instance idInteger getStateByInstanceId(long instanceId)
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,
@Param(value="version")
Integer version)
int forceUpdateState(@Param(value="instanceId")
long instanceId,
@Param(value="targetState")
int targetState)
List<cn.ponfee.scheduler.core.model.SchedInstance> findExpireState(@Param(value="runState") int runState, @Param(value="expireTime") long expireTime, @Param(value="updateTime") Date updateTime, @Param(value="size") int size)
List<cn.ponfee.scheduler.core.model.SchedInstance> findUnterminatedRetry(long parentInstanceId)
int renewUpdateTime(@Param(value="instanceId")
long instanceId,
@Param(value="updateTime")
Date updateTime,
@Param(value="version")
int version)
Long lockAndGetId(long instanceId)
Integer lockAndGetState(long instanceId)
int deleteByInstanceId(long instanceId)
instanceId - the instance idcn.ponfee.scheduler.core.model.SchedInstance getByTriggerTime(@Param(value="jobId")
long jobId,
@Param(value="triggerTime")
long triggerTime,
@Param(value="runType")
int runType)
Copyright © 2023. All rights reserved.