public class SchedInstance
extends cn.ponfee.disjob.common.model.BaseEntity
| 构造器和说明 |
|---|
SchedInstance() |
| 限定符和类型 | 方法和说明 |
|---|---|
SchedInstance |
fillUniqueFlag() |
boolean |
isCompleted() |
boolean |
isPausable() |
boolean |
isPaused() |
boolean |
isRunning() |
boolean |
isRunRetry()
当前实例是否为重试实例:true-是重试实例;false-非重试实例;
|
boolean |
isTerminal() |
boolean |
isWorkflow() |
boolean |
isWorkflowLead() |
boolean |
isWorkflowNode() |
void |
markTerminated(cn.ponfee.disjob.core.enums.RunState runState,
Date runEndTime) |
int |
obtainRetriedCount() |
long |
obtainRetryOriginalInstanceId() |
long |
obtainRnstanceId()
Obtain root instance id
|
static SchedInstance |
of(SchedInstance parent,
Long wnstanceId,
long instanceId,
long jobId,
cn.ponfee.disjob.core.enums.RunType runType,
long triggerTime,
int retriedCount)
Creates sched instance
|
static SchedInstance |
of(SchedInstance parent,
long instanceId,
long jobId,
cn.ponfee.disjob.core.enums.RunType runType,
long triggerTime,
int retriedCount) |
cn.ponfee.disjob.common.dag.DAGNode |
parseWorkflowCurNode() |
public static SchedInstance of(SchedInstance parent, long instanceId, long jobId, cn.ponfee.disjob.core.enums.RunType runType, long triggerTime, int retriedCount)
public static SchedInstance of(SchedInstance parent, Long wnstanceId, long instanceId, long jobId, cn.ponfee.disjob.core.enums.RunType runType, long triggerTime, int retriedCount)
parent - the parent instancewnstanceId - the workflow instance idinstanceId - the instance idjobId - the job idrunType - the run typetriggerTime - the trigger timeretriedCount - the retried countpublic long obtainRnstanceId()
public long obtainRetryOriginalInstanceId()
public int obtainRetriedCount()
public boolean isWorkflow()
public boolean isWorkflowNode()
public boolean isWorkflowLead()
public boolean isRunning()
public boolean isPausable()
public boolean isPaused()
public boolean isCompleted()
public boolean isTerminal()
public boolean isRunRetry()
true if current is retry instancepublic cn.ponfee.disjob.common.dag.DAGNode parseWorkflowCurNode()
public SchedInstance fillUniqueFlag()
public void markTerminated(cn.ponfee.disjob.core.enums.RunState runState,
Date runEndTime)
Copyright © 2025. All rights reserved.