去除节点打印start和end的标识

This commit is contained in:
bryan.zhang
2020-07-06 02:10:54 +08:00
parent 7bb6d3410b
commit 34a9663342
8 changed files with 10 additions and 22 deletions

View File

@@ -9,7 +9,7 @@
<parent>
<groupId>com.yomahub</groupId>
<artifactId>liteflow</artifactId>
<version>2.3.0</version>
<version>2.3.1</version>
</parent>
<dependencies>

View File

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

View File

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