mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 04:02:09 +08:00
feature #IBCLUJ Step信息展示改造 && 线程信息的记录
This commit is contained in:
@@ -91,6 +91,7 @@ public abstract class NodeComponent{
|
||||
cmpStep.setInstance(this);
|
||||
cmpStep.setRefNode(this.getRefNode());
|
||||
cmpStep.setStartTime(new Date());
|
||||
cmpStep.setThreadName(Thread.currentThread().getName());
|
||||
slot.addStep(cmpStep);
|
||||
|
||||
StopWatch stopWatch = new StopWatch();
|
||||
|
||||
@@ -59,6 +59,9 @@ public class CmpStep {
|
||||
// 自定义步骤数据
|
||||
private Object stepData;
|
||||
|
||||
// 运行线程名称
|
||||
private String threadName;
|
||||
|
||||
|
||||
public CmpStep(String nodeId, String nodeName, CmpStepTypeEnum stepType) {
|
||||
this.nodeId = nodeId;
|
||||
@@ -273,4 +276,12 @@ public class CmpStep {
|
||||
public void setStepData(Object stepData) {
|
||||
this.stepData = stepData;
|
||||
}
|
||||
|
||||
public String getThreadName() {
|
||||
return threadName;
|
||||
}
|
||||
|
||||
public void setThreadName(String threadName) {
|
||||
this.threadName = threadName;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user