feature #IBCLUJ Step信息展示改造 && 线程信息的记录

This commit is contained in:
everywhere.z
2025-02-11 21:28:24 +08:00
parent 3dac9f0bd7
commit bfdb321545
2 changed files with 12 additions and 0 deletions

View File

@@ -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();

View File

@@ -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;
}
}