mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 20:22:07 +08:00
去除节点打印start和end的标识
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<parent>
|
||||
<groupId>com.yomahub</groupId>
|
||||
<artifactId>liteflow</artifactId>
|
||||
<version>2.3.0</version>
|
||||
<version>2.3.1</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
|
||||
@@ -36,7 +36,7 @@ public abstract class NodeComponent {
|
||||
public void execute() throws Exception{
|
||||
Slot slot = this.getSlot();
|
||||
LOG.info("[{}]:[O]start component[{}] execution",slot.getRequestId(),this.getClass().getSimpleName());
|
||||
slot.addStep(new CmpStep(nodeId, CmpStepType.START));
|
||||
slot.addStep(new CmpStep(nodeId, CmpStepType.SINGLE));
|
||||
StopWatch stopWatch = new StopWatch();
|
||||
stopWatch.start();
|
||||
|
||||
@@ -45,7 +45,7 @@ public abstract class NodeComponent {
|
||||
stopWatch.stop();
|
||||
long timeSpent = stopWatch.getTime();
|
||||
|
||||
slot.addStep(new CmpStep(nodeId, CmpStepType.END));
|
||||
// slot.addStep(new CmpStep(nodeId, CmpStepType.END));
|
||||
|
||||
//性能统计
|
||||
CompStatistics statistics = new CompStatistics();
|
||||
|
||||
@@ -105,12 +105,7 @@ public abstract class AbsSlot implements Slot{
|
||||
}
|
||||
|
||||
public void addStep(CmpStep step){
|
||||
CmpStep lastStep = this.executeSteps.peekLast();
|
||||
if(lastStep != null && lastStep.equals(step)) {
|
||||
lastStep.setStepType(CmpStepType.SINGLE);
|
||||
}else {
|
||||
this.executeSteps.add(step);
|
||||
}
|
||||
this.executeSteps.add(step);
|
||||
}
|
||||
|
||||
public void printStep(){
|
||||
|
||||
Reference in New Issue
Block a user