From 7b6190acba6c455b86abc1399a8366a893c7e9fb Mon Sep 17 00:00:00 2001 From: Nelson Tavares de Sousa <stu103017@mail.uni-kiel.de> Date: Tue, 14 Oct 2014 13:58:02 +0200 Subject: [PATCH] removed OldAnalysis --- .../java/teetime/framework/OldAnalysis.java | 38 ---- .../MethodCallThroughputAnalysis9.java | 7 +- .../MethodCallThroughputAnalysis10.java | 7 +- .../MethodCallThroughputAnalysis11.java | 7 +- .../MethodCallThroughputAnalysis14.java | 7 +- .../MethodCallThroughputAnalysis15.java | 7 +- ...dCallThoughputTimestampAnalysis16Test.java | 1 - .../MethodCallThroughputAnalysis16.java | 7 +- ...dCallThoughputTimestampAnalysis17Test.java | 3 +- .../MethodCallThroughputAnalysis17.java | 7 +- .../MethodCallThroughputAnalysis18.java | 171 ------------------ ...dCallThoughputTimestampAnalysis19Test.java | 3 +- .../MethodCallThroughputAnalysis19.java | 7 +- .../examples/kiekerdays/TcpTraceLogging.java | 8 +- .../kiekerdays/TcpTraceLoggingExplorviz.java | 8 +- .../kiekerdays/TcpTraceReconstruction.java | 9 +- .../kiekerdays/TcpTraceReduction.java | 9 +- .../ChwHomeTcpTraceReadingTest.java | 3 +- .../TcpTraceLoggingExtAnalysis.java | 7 +- ...omeTcpTraceReconstructionAnalysisTest.java | 3 +- ...hwHomeTraceReconstructionAnalysisTest.java | 5 +- ...orkTcpTraceReconstructionAnalysisTest.java | 3 +- ...hwWorkTraceReconstructionAnalysisTest.java | 5 +- .../KiekerTraceReconstructionAnalysis.java | 8 +- ...KiekerTraceReconstructionAnalysisTest.java | 3 - .../TcpTraceReconstructionAnalysis.java | 7 +- .../TraceReconstructionAnalysis.java | 7 +- ...TraceReductionAnalysisWithThreadsTest.java | 1 - .../TcpTraceReductionAnalysisWithThreads.java | 7 +- 29 files changed, 24 insertions(+), 341 deletions(-) delete mode 100644 src/main/java/teetime/framework/OldAnalysis.java delete mode 100644 src/performancetest/java/teetime/examples/experiment18/MethodCallThroughputAnalysis18.java diff --git a/src/main/java/teetime/framework/OldAnalysis.java b/src/main/java/teetime/framework/OldAnalysis.java deleted file mode 100644 index 914c52b8..00000000 --- a/src/main/java/teetime/framework/OldAnalysis.java +++ /dev/null @@ -1,38 +0,0 @@ -/*************************************************************************** - * Copyright 2014 Kieker Project (http://kieker-monitoring.net) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ***************************************************************************/ - -package teetime.framework; - -/** - * @author Christian Wulf - * - * @since 1.10 - */ -@Deprecated -public class OldAnalysis { - - public void init() { - System.out.println("Analysis initialized."); - } - - public void start() { - // System.out.println("Analysis started."); - } - - public void onTerminate() { - System.out.println("Analysis stopped."); - } -} diff --git a/src/performancetest/java/teetime/examples/experiment09/MethodCallThroughputAnalysis9.java b/src/performancetest/java/teetime/examples/experiment09/MethodCallThroughputAnalysis9.java index 5ffed1c1..cd600de6 100644 --- a/src/performancetest/java/teetime/examples/experiment09/MethodCallThroughputAnalysis9.java +++ b/src/performancetest/java/teetime/examples/experiment09/MethodCallThroughputAnalysis9.java @@ -19,7 +19,6 @@ import java.util.List; import teetime.framework.HeadPipeline; import teetime.framework.HeadStage; -import teetime.framework.OldAnalysis; import teetime.framework.RunnableStage; import teetime.framework.pipe.CommittablePipe; import teetime.stage.CollectorSink; @@ -35,7 +34,7 @@ import teetime.util.TimestampObject; * * @since 1.10 */ -public class MethodCallThroughputAnalysis9 extends OldAnalysis { +public class MethodCallThroughputAnalysis9 { private int numInputObjects; private ConstructorClosure<TimestampObject> inputObjectCreator; @@ -43,9 +42,7 @@ public class MethodCallThroughputAnalysis9 extends OldAnalysis { private List<TimestampObject> timestampObjects; private Runnable runnable; - @Override public void init() { - super.init(); HeadStage pipeline = this.buildPipeline(); this.runnable = new RunnableStage(pipeline); } @@ -82,9 +79,7 @@ public class MethodCallThroughputAnalysis9 extends OldAnalysis { return pipeline; } - @Override public void start() { - super.start(); this.runnable.run(); } diff --git a/src/performancetest/java/teetime/examples/experiment10/MethodCallThroughputAnalysis10.java b/src/performancetest/java/teetime/examples/experiment10/MethodCallThroughputAnalysis10.java index 4cc544f9..82a31ff2 100644 --- a/src/performancetest/java/teetime/examples/experiment10/MethodCallThroughputAnalysis10.java +++ b/src/performancetest/java/teetime/examples/experiment10/MethodCallThroughputAnalysis10.java @@ -18,7 +18,6 @@ package teetime.examples.experiment10; import java.util.List; import teetime.framework.HeadPipeline; -import teetime.framework.OldAnalysis; import teetime.framework.RunnableStage; import teetime.framework.pipe.SingleElementPipe; import teetime.stage.CollectorSink; @@ -34,7 +33,7 @@ import teetime.util.TimestampObject; * * @since 1.10 */ -public class MethodCallThroughputAnalysis10 extends OldAnalysis { +public class MethodCallThroughputAnalysis10 { private long numInputObjects; private ConstructorClosure<TimestampObject> inputObjectCreator; @@ -42,9 +41,7 @@ public class MethodCallThroughputAnalysis10 extends OldAnalysis { private List<TimestampObject> timestampObjects; private Runnable runnable; - @Override public void init() { - super.init(); this.runnable = this.buildPipeline(); } @@ -79,9 +76,7 @@ public class MethodCallThroughputAnalysis10 extends OldAnalysis { return new RunnableStage(pipeline); } - @Override public void start() { - super.start(); this.runnable.run(); } diff --git a/src/performancetest/java/teetime/examples/experiment11/MethodCallThroughputAnalysis11.java b/src/performancetest/java/teetime/examples/experiment11/MethodCallThroughputAnalysis11.java index 76dc925e..07b681ab 100644 --- a/src/performancetest/java/teetime/examples/experiment11/MethodCallThroughputAnalysis11.java +++ b/src/performancetest/java/teetime/examples/experiment11/MethodCallThroughputAnalysis11.java @@ -19,7 +19,6 @@ import java.util.List; import teetime.framework.HeadPipeline; import teetime.framework.HeadStage; -import teetime.framework.OldAnalysis; import teetime.framework.RunnableStage; import teetime.framework.pipe.UnorderedGrowablePipe; import teetime.stage.CollectorSink; @@ -35,7 +34,7 @@ import teetime.util.TimestampObject; * * @since 1.10 */ -public class MethodCallThroughputAnalysis11 extends OldAnalysis { +public class MethodCallThroughputAnalysis11 { private long numInputObjects; private ConstructorClosure<TimestampObject> inputObjectCreator; @@ -43,9 +42,7 @@ public class MethodCallThroughputAnalysis11 extends OldAnalysis { private List<TimestampObject> timestampObjects; private Runnable runnable; - @Override public void init() { - super.init(); HeadStage pipeline = this.buildPipeline(this.numInputObjects, this.inputObjectCreator); this.runnable = new RunnableStage(pipeline); } @@ -83,9 +80,7 @@ public class MethodCallThroughputAnalysis11 extends OldAnalysis { return pipeline; } - @Override public void start() { - super.start(); this.runnable.run(); } diff --git a/src/performancetest/java/teetime/examples/experiment14/MethodCallThroughputAnalysis14.java b/src/performancetest/java/teetime/examples/experiment14/MethodCallThroughputAnalysis14.java index 3b32e2bd..0853c732 100644 --- a/src/performancetest/java/teetime/examples/experiment14/MethodCallThroughputAnalysis14.java +++ b/src/performancetest/java/teetime/examples/experiment14/MethodCallThroughputAnalysis14.java @@ -19,7 +19,6 @@ import java.util.List; import teetime.framework.HeadPipeline; import teetime.framework.HeadStage; -import teetime.framework.OldAnalysis; import teetime.framework.RunnableStage; import teetime.framework.pipe.IPipeFactory; import teetime.framework.pipe.PipeFactory; @@ -38,7 +37,7 @@ import teetime.util.TimestampObject; * * @since 1.10 */ -public class MethodCallThroughputAnalysis14 extends OldAnalysis { +public class MethodCallThroughputAnalysis14 { private long numInputObjects; private ConstructorClosure<TimestampObject> inputObjectCreator; @@ -47,9 +46,7 @@ public class MethodCallThroughputAnalysis14 extends OldAnalysis { private Runnable runnable; private final PipeFactory pipeFactory = PipeFactory.INSTANCE; - @Override public void init() { - super.init(); HeadStage pipeline = this.buildPipeline(); this.runnable = new RunnableStage(pipeline); } @@ -88,9 +85,7 @@ public class MethodCallThroughputAnalysis14 extends OldAnalysis { return pipeline; } - @Override public void start() { - super.start(); this.runnable.run(); } diff --git a/src/performancetest/java/teetime/examples/experiment15/MethodCallThroughputAnalysis15.java b/src/performancetest/java/teetime/examples/experiment15/MethodCallThroughputAnalysis15.java index acadf1ed..6850f50c 100644 --- a/src/performancetest/java/teetime/examples/experiment15/MethodCallThroughputAnalysis15.java +++ b/src/performancetest/java/teetime/examples/experiment15/MethodCallThroughputAnalysis15.java @@ -19,7 +19,6 @@ import java.util.List; import teetime.framework.HeadPipeline; import teetime.framework.HeadStage; -import teetime.framework.OldAnalysis; import teetime.framework.RunnableStage; import teetime.framework.pipe.OrderedGrowableArrayPipe; import teetime.framework.pipe.SingleElementPipe; @@ -40,7 +39,7 @@ import teetime.util.TimestampObject; * * @since 1.10 */ -public class MethodCallThroughputAnalysis15 extends OldAnalysis { +public class MethodCallThroughputAnalysis15 { // FIXME this analysis sometimes runs infinitely private static final int SPSC_INITIAL_CAPACITY = 4; @@ -54,9 +53,7 @@ public class MethodCallThroughputAnalysis15 extends OldAnalysis { private Runnable runnable; private Clock clock; - @Override public void init() { - super.init(); HeadPipeline<Clock, Sink<Long>> clockPipeline = this.buildClockPipeline(); this.clockRunnable = new RunnableStage(clockPipeline); @@ -115,9 +112,7 @@ public class MethodCallThroughputAnalysis15 extends OldAnalysis { return pipeline; } - @Override public void start() { - super.start(); Thread clockThread = new Thread(this.clockRunnable); clockThread.start(); this.runnable.run(); diff --git a/src/performancetest/java/teetime/examples/experiment16/MethodCallThoughputTimestampAnalysis16Test.java b/src/performancetest/java/teetime/examples/experiment16/MethodCallThoughputTimestampAnalysis16Test.java index 86bb46fb..b0f56fd4 100644 --- a/src/performancetest/java/teetime/examples/experiment16/MethodCallThoughputTimestampAnalysis16Test.java +++ b/src/performancetest/java/teetime/examples/experiment16/MethodCallThoughputTimestampAnalysis16Test.java @@ -85,7 +85,6 @@ public class MethodCallThoughputTimestampAnalysis16Test extends PerformanceTest analysis.start(); } finally { this.stopWatch.end(); - analysis.onTerminate(); } this.timestampObjects = ListUtil.merge(analysis.getTimestampObjectsList()); diff --git a/src/performancetest/java/teetime/examples/experiment16/MethodCallThroughputAnalysis16.java b/src/performancetest/java/teetime/examples/experiment16/MethodCallThroughputAnalysis16.java index 426d108c..c84c2bad 100644 --- a/src/performancetest/java/teetime/examples/experiment16/MethodCallThroughputAnalysis16.java +++ b/src/performancetest/java/teetime/examples/experiment16/MethodCallThroughputAnalysis16.java @@ -20,7 +20,6 @@ import java.util.LinkedList; import java.util.List; import teetime.framework.HeadPipeline; -import teetime.framework.OldAnalysis; import teetime.framework.RunnableStage; import teetime.framework.pipe.SingleElementPipe; import teetime.framework.pipe.SpScPipe; @@ -39,7 +38,7 @@ import teetime.util.TimestampObject; * * @since 1.10 */ -public class MethodCallThroughputAnalysis16 extends OldAnalysis { +public class MethodCallThroughputAnalysis16 { private static final int SPSC_INITIAL_CAPACITY = 100100; private static final int NUM_WORKER_THREADS = Runtime.getRuntime().availableProcessors(); @@ -56,9 +55,7 @@ public class MethodCallThroughputAnalysis16 extends OldAnalysis { private int numWorkerThreads; - @Override public void init() { - super.init(); HeadPipeline<ObjectProducer<TimestampObject>, Distributor<TimestampObject>> producerPipeline = this.buildProducerPipeline(this.numInputObjects, this.inputObjectCreator); this.producerThread = new Thread(new RunnableStage(producerPipeline)); @@ -125,9 +122,7 @@ public class MethodCallThroughputAnalysis16 extends OldAnalysis { return pipeline; } - @Override public void start() { - super.start(); this.producerThread.start(); diff --git a/src/performancetest/java/teetime/examples/experiment17/MethodCallThoughputTimestampAnalysis17Test.java b/src/performancetest/java/teetime/examples/experiment17/MethodCallThoughputTimestampAnalysis17Test.java index 69137f74..28b98f9b 100644 --- a/src/performancetest/java/teetime/examples/experiment17/MethodCallThoughputTimestampAnalysis17Test.java +++ b/src/performancetest/java/teetime/examples/experiment17/MethodCallThoughputTimestampAnalysis17Test.java @@ -24,7 +24,7 @@ import util.PerformanceTest; /** * @author Christian Wulf - * + * * @since 1.10 */ public class MethodCallThoughputTimestampAnalysis17Test extends PerformanceTest { @@ -52,7 +52,6 @@ public class MethodCallThoughputTimestampAnalysis17Test extends PerformanceTest analysis.start(); } finally { this.stopWatch.end(); - analysis.onTerminate(); } this.timestampObjects = ListUtil.merge(analysis.getTimestampObjectsList()); diff --git a/src/performancetest/java/teetime/examples/experiment17/MethodCallThroughputAnalysis17.java b/src/performancetest/java/teetime/examples/experiment17/MethodCallThroughputAnalysis17.java index c1954504..b5a59e24 100644 --- a/src/performancetest/java/teetime/examples/experiment17/MethodCallThroughputAnalysis17.java +++ b/src/performancetest/java/teetime/examples/experiment17/MethodCallThroughputAnalysis17.java @@ -20,7 +20,6 @@ import java.util.LinkedList; import java.util.List; import teetime.framework.HeadPipeline; -import teetime.framework.OldAnalysis; import teetime.framework.RunnableStage; import teetime.framework.StageWithPort; import teetime.framework.pipe.DummyPipe; @@ -45,7 +44,7 @@ import teetime.util.TimestampObject; * * @since 1.10 */ -public class MethodCallThroughputAnalysis17 extends OldAnalysis { +public class MethodCallThroughputAnalysis17 { private static final int SPSC_INITIAL_CAPACITY = 100100; private static final int NUM_WORKER_THREADS = Runtime.getRuntime().availableProcessors(); @@ -60,7 +59,6 @@ public class MethodCallThroughputAnalysis17 extends OldAnalysis { private Thread producerThread; private Thread[] workerThreads; - @Override public void init() { HeadPipeline<ObjectProducer<TimestampObject>, Distributor<TimestampObject>> producerPipeline = this.buildProducerPipeline(this.numInputObjects, this.inputObjectCreator); @@ -107,7 +105,6 @@ public class MethodCallThroughputAnalysis17 extends OldAnalysis { // e1.printStackTrace(); // } - super.init(); } @SuppressWarnings("unchecked") @@ -169,9 +166,7 @@ public class MethodCallThroughputAnalysis17 extends OldAnalysis { return pipeline; } - @Override public void start() { - super.start(); for (Thread workerThread : this.workerThreads) { workerThread.start(); diff --git a/src/performancetest/java/teetime/examples/experiment18/MethodCallThroughputAnalysis18.java b/src/performancetest/java/teetime/examples/experiment18/MethodCallThroughputAnalysis18.java deleted file mode 100644 index e36abb3b..00000000 --- a/src/performancetest/java/teetime/examples/experiment18/MethodCallThroughputAnalysis18.java +++ /dev/null @@ -1,171 +0,0 @@ -/*************************************************************************** - * Copyright 2014 Kieker Project (http://kieker-monitoring.net) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ***************************************************************************/ -package teetime.examples.experiment18; - -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; - -import teetime.framework.HeadPipeline; -import teetime.framework.OldAnalysis; -import teetime.framework.RunnableStage; -import teetime.framework.pipe.SpScPipe; -import teetime.framework.pipe.UnorderedGrowablePipe; -import teetime.stage.CollectorSink; -import teetime.stage.NoopFilter; -import teetime.stage.ObjectProducer; -import teetime.stage.Relay; -import teetime.stage.StartTimestampFilter; -import teetime.stage.StopTimestampFilter; -import teetime.stage.basic.distributor.Distributor; -import teetime.util.ConstructorClosure; -import teetime.util.TimestampObject; - -/** - * @author Christian Wulf - * - * @since 1.10 - */ -public class MethodCallThroughputAnalysis18 extends OldAnalysis { - - private static final int SPSC_INITIAL_CAPACITY = 4; - private static final int NUM_WORKER_THREADS = Runtime.getRuntime().availableProcessors(); - - private int numInputObjects; - private ConstructorClosure<TimestampObject> inputObjectCreator; - private int numNoopFilters; - - private final List<List<TimestampObject>> timestampObjectsList = new LinkedList<List<TimestampObject>>(); - - private Thread producerThread; - - private Thread[] workerThreads; - - private int numWorkerThreads; - - @Override - public void init() { - super.init(); - HeadPipeline<ObjectProducer<TimestampObject>, Distributor<TimestampObject>> producerPipeline = this.buildProducerPipeline(this.numInputObjects, - this.inputObjectCreator); - this.producerThread = new Thread(new RunnableStage(producerPipeline)); - - this.numWorkerThreads = Math.min(NUM_WORKER_THREADS, this.numWorkerThreads); - - this.workerThreads = new Thread[this.numWorkerThreads]; - for (int i = 0; i < this.workerThreads.length; i++) { - List<TimestampObject> resultList = new ArrayList<TimestampObject>(this.numInputObjects); - this.timestampObjectsList.add(resultList); - - HeadPipeline<?, ?> pipeline = this.buildPipeline(producerPipeline, resultList); - this.workerThreads[i] = new Thread(new RunnableStage(pipeline)); - } - } - - private HeadPipeline<ObjectProducer<TimestampObject>, Distributor<TimestampObject>> buildProducerPipeline(final int numInputObjects, - final ConstructorClosure<TimestampObject> inputObjectCreator) { - final ObjectProducer<TimestampObject> objectProducer = new ObjectProducer<TimestampObject>(numInputObjects, inputObjectCreator); - Distributor<TimestampObject> distributor = new Distributor<TimestampObject>(); - - final HeadPipeline<ObjectProducer<TimestampObject>, Distributor<TimestampObject>> pipeline = new HeadPipeline<ObjectProducer<TimestampObject>, Distributor<TimestampObject>>(); - pipeline.setFirstStage(objectProducer); - pipeline.setLastStage(distributor); - - UnorderedGrowablePipe.connect(objectProducer.getOutputPort(), distributor.getInputPort()); - - return pipeline; - } - - /** - * @param numNoopFilters - * @since 1.10 - */ - private HeadPipeline<Relay<TimestampObject>, CollectorSink<TimestampObject>> buildPipeline( - final HeadPipeline<ObjectProducer<TimestampObject>, Distributor<TimestampObject>> previousStage, - final List<TimestampObject> timestampObjects) { - Relay<TimestampObject> relay = new Relay<TimestampObject>(); - @SuppressWarnings("unchecked") - final NoopFilter<TimestampObject>[] noopFilters = new NoopFilter[this.numNoopFilters]; - // create stages - final StartTimestampFilter startTimestampFilter = new StartTimestampFilter(); - for (int i = 0; i < noopFilters.length; i++) { - noopFilters[i] = new NoopFilter<TimestampObject>(); - } - final StopTimestampFilter stopTimestampFilter = new StopTimestampFilter(); - final CollectorSink<TimestampObject> collectorSink = new CollectorSink<TimestampObject>(timestampObjects); - - final HeadPipeline<Relay<TimestampObject>, CollectorSink<TimestampObject>> pipeline = new HeadPipeline<Relay<TimestampObject>, CollectorSink<TimestampObject>>(); - pipeline.setFirstStage(relay); - pipeline.setLastStage(collectorSink); - - SpScPipe.connect(previousStage.getLastStage().getNewOutputPort(), relay.getInputPort(), SPSC_INITIAL_CAPACITY); - - UnorderedGrowablePipe.connect(relay.getOutputPort(), startTimestampFilter.getInputPort()); - - UnorderedGrowablePipe.connect(startTimestampFilter.getOutputPort(), noopFilters[0].getInputPort()); - for (int i = 0; i < noopFilters.length - 1; i++) { - UnorderedGrowablePipe.connect(noopFilters[i].getOutputPort(), noopFilters[i + 1].getInputPort()); - } - UnorderedGrowablePipe.connect(noopFilters[noopFilters.length - 1].getOutputPort(), stopTimestampFilter.getInputPort()); - UnorderedGrowablePipe.connect(stopTimestampFilter.getOutputPort(), collectorSink.getInputPort()); - - return pipeline; - } - - @Override - public void start() { - super.start(); - - for (Thread workerThread : this.workerThreads) { - workerThread.start(); - } - - try { - for (Thread workerThread : this.workerThreads) { - workerThread.join(); - } - } catch (InterruptedException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - - public void setInput(final int numInputObjects, final ConstructorClosure<TimestampObject> inputObjectCreator) { - this.numInputObjects = numInputObjects; - this.inputObjectCreator = inputObjectCreator; - } - - public int getNumNoopFilters() { - return this.numNoopFilters; - } - - public void setNumNoopFilters(final int numNoopFilters) { - this.numNoopFilters = numNoopFilters; - } - - public List<List<TimestampObject>> getTimestampObjectsList() { - return this.timestampObjectsList; - } - - public int getNumWorkerThreads() { - return this.numWorkerThreads; - } - - public void setNumWorkerThreads(final int numWorkerThreads) { - this.numWorkerThreads = numWorkerThreads; - } - -} diff --git a/src/performancetest/java/teetime/examples/experiment19/MethodCallThoughputTimestampAnalysis19Test.java b/src/performancetest/java/teetime/examples/experiment19/MethodCallThoughputTimestampAnalysis19Test.java index 32f76c60..b3e69c82 100644 --- a/src/performancetest/java/teetime/examples/experiment19/MethodCallThoughputTimestampAnalysis19Test.java +++ b/src/performancetest/java/teetime/examples/experiment19/MethodCallThoughputTimestampAnalysis19Test.java @@ -26,7 +26,7 @@ import util.PerformanceTest; /** * @author Christian Wulf - * + * * @since 1.10 */ @FixMethodOrder(MethodSorters.NAME_ASCENDING) @@ -82,7 +82,6 @@ public class MethodCallThoughputTimestampAnalysis19Test extends PerformanceTest analysis.start(); } finally { this.stopWatch.end(); - analysis.onTerminate(); } this.timestampObjects = ListUtil.merge(analysis.getTimestampObjectsList()); diff --git a/src/performancetest/java/teetime/examples/experiment19/MethodCallThroughputAnalysis19.java b/src/performancetest/java/teetime/examples/experiment19/MethodCallThroughputAnalysis19.java index 9f6f95c1..b91a703b 100644 --- a/src/performancetest/java/teetime/examples/experiment19/MethodCallThroughputAnalysis19.java +++ b/src/performancetest/java/teetime/examples/experiment19/MethodCallThroughputAnalysis19.java @@ -20,7 +20,6 @@ import java.util.LinkedList; import java.util.List; import teetime.framework.HeadPipeline; -import teetime.framework.OldAnalysis; import teetime.framework.RunnableStage; import teetime.framework.pipe.OrderedGrowableArrayPipe; import teetime.framework.pipe.SpScPipe; @@ -39,7 +38,7 @@ import teetime.util.TimestampObject; * * @since 1.10 */ -public class MethodCallThroughputAnalysis19 extends OldAnalysis { +public class MethodCallThroughputAnalysis19 { private static final int SPSC_INITIAL_CAPACITY = 100100; private static final int NUM_WORKER_THREADS = Runtime.getRuntime().availableProcessors(); @@ -56,9 +55,7 @@ public class MethodCallThroughputAnalysis19 extends OldAnalysis { private int numWorkerThreads; - @Override public void init() { - super.init(); HeadPipeline<ObjectProducer<TimestampObject>, Distributor<TimestampObject>> producerPipeline = this.buildProducerPipeline(this.numInputObjects, this.inputObjectCreator); this.producerThread = new Thread(new RunnableStage(producerPipeline)); @@ -120,9 +117,7 @@ public class MethodCallThroughputAnalysis19 extends OldAnalysis { return pipeline; } - @Override public void start() { - super.start(); this.producerThread.start(); diff --git a/src/performancetest/java/teetime/examples/kiekerdays/TcpTraceLogging.java b/src/performancetest/java/teetime/examples/kiekerdays/TcpTraceLogging.java index 0f8fce8e..20e61eb6 100644 --- a/src/performancetest/java/teetime/examples/kiekerdays/TcpTraceLogging.java +++ b/src/performancetest/java/teetime/examples/kiekerdays/TcpTraceLogging.java @@ -1,24 +1,19 @@ package teetime.examples.kiekerdays; import teetime.framework.HeadStage; -import teetime.framework.OldAnalysis; import teetime.framework.RunnableStage; import teetime.stage.io.TCPReader; -public class TcpTraceLogging extends OldAnalysis { +public class TcpTraceLogging { private Thread tcpThread; - @Override public void init() { - super.init(); HeadStage tcpPipeline = this.buildTcpPipeline(); this.tcpThread = new Thread(new RunnableStage(tcpPipeline)); } - @Override public void start() { - super.start(); this.tcpThread.start(); @@ -43,7 +38,6 @@ public class TcpTraceLogging extends OldAnalysis { try { analysis.start(); } finally { - analysis.onTerminate(); } } diff --git a/src/performancetest/java/teetime/examples/kiekerdays/TcpTraceLoggingExplorviz.java b/src/performancetest/java/teetime/examples/kiekerdays/TcpTraceLoggingExplorviz.java index 08975c93..9f3eab50 100644 --- a/src/performancetest/java/teetime/examples/kiekerdays/TcpTraceLoggingExplorviz.java +++ b/src/performancetest/java/teetime/examples/kiekerdays/TcpTraceLoggingExplorviz.java @@ -2,7 +2,6 @@ package teetime.examples.kiekerdays; import teetime.framework.HeadPipeline; import teetime.framework.HeadStage; -import teetime.framework.OldAnalysis; import teetime.framework.RunnableStage; import teetime.framework.pipe.SingleElementPipe; import teetime.stage.basic.Sink; @@ -10,20 +9,16 @@ import teetime.stage.explorviz.KiekerRecordTcpReader; import kieker.common.record.IMonitoringRecord; -public class TcpTraceLoggingExplorviz extends OldAnalysis { +public class TcpTraceLoggingExplorviz { private Thread tcpThread; - @Override public void init() { - super.init(); HeadStage tcpPipeline = this.buildTcpPipeline(); this.tcpThread = new Thread(new RunnableStage(tcpPipeline)); } - @Override public void start() { - super.start(); this.tcpThread.start(); @@ -54,7 +49,6 @@ public class TcpTraceLoggingExplorviz extends OldAnalysis { try { analysis.start(); } finally { - analysis.onTerminate(); } } diff --git a/src/performancetest/java/teetime/examples/kiekerdays/TcpTraceReconstruction.java b/src/performancetest/java/teetime/examples/kiekerdays/TcpTraceReconstruction.java index e1fa8409..ccafe970 100644 --- a/src/performancetest/java/teetime/examples/kiekerdays/TcpTraceReconstruction.java +++ b/src/performancetest/java/teetime/examples/kiekerdays/TcpTraceReconstruction.java @@ -6,7 +6,6 @@ import java.util.List; import teetime.framework.HeadPipeline; import teetime.framework.HeadStage; -import teetime.framework.OldAnalysis; import teetime.framework.RunnableStage; import teetime.framework.pipe.SingleElementPipe; import teetime.framework.pipe.SpScPipe; @@ -23,7 +22,7 @@ import kieker.analysis.plugin.filter.flow.TraceEventRecords; import kieker.common.record.IMonitoringRecord; import kieker.common.record.flow.IFlowRecord; -public class TcpTraceReconstruction extends OldAnalysis { +public class TcpTraceReconstruction { private static final int NUM_VIRTUAL_CORES = Runtime.getRuntime().availableProcessors(); private static final int MIO = 1000000; @@ -38,9 +37,7 @@ public class TcpTraceReconstruction extends OldAnalysis { private int numWorkerThreads; - @Override public void init() { - super.init(); HeadPipeline<TCPReader, Distributor<IMonitoringRecord>> tcpPipeline = this.buildTcpPipeline(); this.tcpThread = new Thread(new RunnableStage(tcpPipeline)); @@ -89,9 +86,7 @@ public class TcpTraceReconstruction extends OldAnalysis { return pipeline; } - @Override public void start() { - super.start(); this.tcpThread.start(); @@ -110,14 +105,12 @@ public class TcpTraceReconstruction extends OldAnalysis { } } - @Override public void onTerminate() { int maxNumWaits = 0; for (SpScPipe pipe : this.tcpRelayPipes) { maxNumWaits = Math.max(maxNumWaits, pipe.getNumWaits()); } System.out.println("max #waits of TcpRelayPipes: " + maxNumWaits); - super.onTerminate(); } public List<TraceEventRecords> getElementCollection() { diff --git a/src/performancetest/java/teetime/examples/kiekerdays/TcpTraceReduction.java b/src/performancetest/java/teetime/examples/kiekerdays/TcpTraceReduction.java index 6950e522..a5f86540 100644 --- a/src/performancetest/java/teetime/examples/kiekerdays/TcpTraceReduction.java +++ b/src/performancetest/java/teetime/examples/kiekerdays/TcpTraceReduction.java @@ -8,7 +8,6 @@ import java.util.TreeMap; import teetime.framework.HeadPipeline; import teetime.framework.HeadStage; -import teetime.framework.OldAnalysis; import teetime.framework.RunnableStage; import teetime.framework.pipe.SingleElementPipe; import teetime.framework.pipe.SpScPipe; @@ -29,7 +28,7 @@ import kieker.analysis.plugin.filter.flow.TraceEventRecords; import kieker.common.record.IMonitoringRecord; import kieker.common.record.flow.IFlowRecord; -public class TcpTraceReduction extends OldAnalysis { +public class TcpTraceReduction { private static final int NUM_VIRTUAL_CORES = Runtime.getRuntime().availableProcessors(); private static final int MIO = 1000000; @@ -46,9 +45,7 @@ public class TcpTraceReduction extends OldAnalysis { private int numWorkerThreads; - @Override public void init() { - super.init(); HeadPipeline<TCPReader, Distributor<IMonitoringRecord>> tcpPipeline = this.buildTcpPipeline(); this.tcpThread = new Thread(new RunnableStage(tcpPipeline)); @@ -119,9 +116,7 @@ public class TcpTraceReduction extends OldAnalysis { return pipeline; } - @Override public void start() { - super.start(); this.tcpThread.start(); this.clockThread.start(); @@ -142,14 +137,12 @@ public class TcpTraceReduction extends OldAnalysis { this.clockThread.interrupt(); } - @Override public void onTerminate() { int maxNumWaits = 0; for (SpScPipe pipe : this.tcpRelayPipes) { maxNumWaits = Math.max(maxNumWaits, pipe.getNumWaits()); } System.out.println("max #waits of TcpRelayPipes: " + maxNumWaits); - super.onTerminate(); } public List<TraceEventRecords> getElementCollection() { diff --git a/src/performancetest/java/teetime/examples/traceReading/ChwHomeTcpTraceReadingTest.java b/src/performancetest/java/teetime/examples/traceReading/ChwHomeTcpTraceReadingTest.java index 04f8c1cb..c5f90a27 100644 --- a/src/performancetest/java/teetime/examples/traceReading/ChwHomeTcpTraceReadingTest.java +++ b/src/performancetest/java/teetime/examples/traceReading/ChwHomeTcpTraceReadingTest.java @@ -38,7 +38,7 @@ import util.StatisticsUtil; /** * @author Christian Wulf - * + * * @since 1.10 */ @FixMethodOrder(MethodSorters.NAME_ASCENDING) @@ -71,7 +71,6 @@ public class ChwHomeTcpTraceReadingTest { analysis.start(); } finally { this.stopWatch.end(); - analysis.onTerminate(); } List<Long> recordThroughputs = ListUtil.removeFirstHalfElements(analysis.getRecordThroughputs()); diff --git a/src/performancetest/java/teetime/examples/traceReading/TcpTraceLoggingExtAnalysis.java b/src/performancetest/java/teetime/examples/traceReading/TcpTraceLoggingExtAnalysis.java index 134eb645..fcf14f30 100644 --- a/src/performancetest/java/teetime/examples/traceReading/TcpTraceLoggingExtAnalysis.java +++ b/src/performancetest/java/teetime/examples/traceReading/TcpTraceLoggingExtAnalysis.java @@ -3,7 +3,6 @@ package teetime.examples.traceReading; import java.util.List; import teetime.framework.HeadPipeline; -import teetime.framework.OldAnalysis; import teetime.framework.RunnableStage; import teetime.framework.pipe.SingleElementPipe; import teetime.framework.pipe.SpScPipe; @@ -16,7 +15,7 @@ import teetime.stage.io.TCPReader; import kieker.common.record.IMonitoringRecord; -public class TcpTraceLoggingExtAnalysis extends OldAnalysis { +public class TcpTraceLoggingExtAnalysis { private Thread clockThread; private Thread tcpThread; @@ -59,9 +58,7 @@ public class TcpTraceLoggingExtAnalysis extends OldAnalysis { return pipeline; } - @Override public void init() { - super.init(); HeadPipeline<Clock, Distributor<Long>> clockPipeline = this.buildClockPipeline(1000); this.clockThread = new Thread(new RunnableStage(clockPipeline)); @@ -70,9 +67,7 @@ public class TcpTraceLoggingExtAnalysis extends OldAnalysis { this.tcpThread = new Thread(new RunnableStage(tcpPipeline)); } - @Override public void start() { - super.start(); this.tcpThread.start(); this.clockThread.start(); diff --git a/src/performancetest/java/teetime/examples/traceReconstruction/ChwHomeTcpTraceReconstructionAnalysisTest.java b/src/performancetest/java/teetime/examples/traceReconstruction/ChwHomeTcpTraceReconstructionAnalysisTest.java index e5f30380..977cf394 100644 --- a/src/performancetest/java/teetime/examples/traceReconstruction/ChwHomeTcpTraceReconstructionAnalysisTest.java +++ b/src/performancetest/java/teetime/examples/traceReconstruction/ChwHomeTcpTraceReconstructionAnalysisTest.java @@ -36,7 +36,7 @@ import util.StatisticsUtil; /** * @author Christian Wulf - * + * * @since 1.10 */ public class ChwHomeTcpTraceReconstructionAnalysisTest { @@ -68,7 +68,6 @@ public class ChwHomeTcpTraceReconstructionAnalysisTest { analysis.start(); } finally { this.stopWatch.end(); - analysis.onTerminate(); } List<Long> recordThroughputs = ListUtil.removeFirstHalfElements(analysis.getRecordThroughputs()); diff --git a/src/performancetest/java/teetime/examples/traceReconstruction/ChwHomeTraceReconstructionAnalysisTest.java b/src/performancetest/java/teetime/examples/traceReconstruction/ChwHomeTraceReconstructionAnalysisTest.java index 149c134d..f20679d5 100644 --- a/src/performancetest/java/teetime/examples/traceReconstruction/ChwHomeTraceReconstructionAnalysisTest.java +++ b/src/performancetest/java/teetime/examples/traceReconstruction/ChwHomeTraceReconstructionAnalysisTest.java @@ -37,7 +37,7 @@ import kieker.analysis.plugin.filter.flow.TraceEventRecords; /** * @author Christian Wulf - * + * * @since 1.10 */ public class ChwHomeTraceReconstructionAnalysisTest { @@ -66,7 +66,6 @@ public class ChwHomeTraceReconstructionAnalysisTest { analysis.start(); } finally { this.stopWatch.end(); - analysis.onTerminate(); } StatisticsUtil.removeLeadingZeroThroughputs(analysis.getThroughputs()); @@ -96,7 +95,6 @@ public class ChwHomeTraceReconstructionAnalysisTest { analysis.start(); } finally { this.stopWatch.end(); - analysis.onTerminate(); } StatisticsUtil.removeLeadingZeroThroughputs(analysis.getThroughputs()); @@ -126,7 +124,6 @@ public class ChwHomeTraceReconstructionAnalysisTest { analysis.start(); } finally { this.stopWatch.end(); - analysis.onTerminate(); } StatisticsUtil.removeLeadingZeroThroughputs(analysis.getThroughputs()); diff --git a/src/performancetest/java/teetime/examples/traceReconstruction/ChwWorkTcpTraceReconstructionAnalysisTest.java b/src/performancetest/java/teetime/examples/traceReconstruction/ChwWorkTcpTraceReconstructionAnalysisTest.java index 8f99ad31..e05b673d 100644 --- a/src/performancetest/java/teetime/examples/traceReconstruction/ChwWorkTcpTraceReconstructionAnalysisTest.java +++ b/src/performancetest/java/teetime/examples/traceReconstruction/ChwWorkTcpTraceReconstructionAnalysisTest.java @@ -29,7 +29,7 @@ import util.StatisticsUtil; /** * @author Christian Wulf - * + * * @since 1.10 */ public class ChwWorkTcpTraceReconstructionAnalysisTest { @@ -61,7 +61,6 @@ public class ChwWorkTcpTraceReconstructionAnalysisTest { analysis.start(); } finally { this.stopWatch.end(); - analysis.onTerminate(); } Map<Double, Long> quintiles = StatisticsUtil.calculateQuintiles(analysis.getTraceThroughputs()); diff --git a/src/performancetest/java/teetime/examples/traceReconstruction/ChwWorkTraceReconstructionAnalysisTest.java b/src/performancetest/java/teetime/examples/traceReconstruction/ChwWorkTraceReconstructionAnalysisTest.java index 3c0604ae..335a6447 100644 --- a/src/performancetest/java/teetime/examples/traceReconstruction/ChwWorkTraceReconstructionAnalysisTest.java +++ b/src/performancetest/java/teetime/examples/traceReconstruction/ChwWorkTraceReconstructionAnalysisTest.java @@ -37,7 +37,7 @@ import kieker.analysis.plugin.filter.flow.TraceEventRecords; /** * @author Christian Wulf - * + * * @since 1.10 */ public class ChwWorkTraceReconstructionAnalysisTest { @@ -66,7 +66,6 @@ public class ChwWorkTraceReconstructionAnalysisTest { analysis.start(); } finally { this.stopWatch.end(); - analysis.onTerminate(); } assertEquals(50002, analysis.getNumRecords()); @@ -94,7 +93,6 @@ public class ChwWorkTraceReconstructionAnalysisTest { analysis.start(); } finally { this.stopWatch.end(); - analysis.onTerminate(); } assertEquals(1489902, analysis.getNumRecords()); @@ -124,7 +122,6 @@ public class ChwWorkTraceReconstructionAnalysisTest { analysis.start(); } finally { this.stopWatch.end(); - analysis.onTerminate(); } assertEquals(17371, analysis.getNumRecords()); diff --git a/src/performancetest/java/teetime/examples/traceReconstruction/KiekerTraceReconstructionAnalysis.java b/src/performancetest/java/teetime/examples/traceReconstruction/KiekerTraceReconstructionAnalysis.java index 9e45c3b6..40f0170f 100644 --- a/src/performancetest/java/teetime/examples/traceReconstruction/KiekerTraceReconstructionAnalysis.java +++ b/src/performancetest/java/teetime/examples/traceReconstruction/KiekerTraceReconstructionAnalysis.java @@ -4,8 +4,6 @@ import java.io.File; import java.util.LinkedList; import java.util.List; -import teetime.framework.OldAnalysis; - import kieker.analysis.AnalysisController; import kieker.analysis.IAnalysisController; import kieker.analysis.IProjectContext; @@ -25,7 +23,7 @@ import kieker.analysis.stage.TimeReader; import kieker.common.configuration.Configuration; import kieker.common.record.flow.IFlowRecord; -public class KiekerTraceReconstructionAnalysis extends OldAnalysis { +public class KiekerTraceReconstructionAnalysis { private final IAnalysisController analysisController = new AnalysisController(); @@ -42,9 +40,7 @@ public class KiekerTraceReconstructionAnalysis extends OldAnalysis { this.inputDir = inputDir; } - @Override public void init() { - super.init(); final Configuration clockConfiguration = new Configuration(); clockConfiguration.setProperty(TimeReader.CONFIG_PROPERTY_VALUE_UPDATE_INTERVAL_NS, Integer.toString(50 * 1000 * 1000)); @@ -99,9 +95,7 @@ public class KiekerTraceReconstructionAnalysis extends OldAnalysis { } - @Override public void start() { - super.start(); try { this.analysisController.run(); diff --git a/src/performancetest/java/teetime/examples/traceReconstruction/NieWorkKiekerTraceReconstructionAnalysisTest.java b/src/performancetest/java/teetime/examples/traceReconstruction/NieWorkKiekerTraceReconstructionAnalysisTest.java index 41a7926b..77c352fc 100644 --- a/src/performancetest/java/teetime/examples/traceReconstruction/NieWorkKiekerTraceReconstructionAnalysisTest.java +++ b/src/performancetest/java/teetime/examples/traceReconstruction/NieWorkKiekerTraceReconstructionAnalysisTest.java @@ -63,7 +63,6 @@ public class NieWorkKiekerTraceReconstructionAnalysisTest { analysis.start(); } finally { this.stopWatch.end(); - analysis.onTerminate(); } assertEquals(50002, analysis.getNumRecords()); @@ -89,7 +88,6 @@ public class NieWorkKiekerTraceReconstructionAnalysisTest { analysis.start(); } finally { this.stopWatch.end(); - analysis.onTerminate(); } assertEquals(1489901, analysis.getNumRecords()); @@ -117,7 +115,6 @@ public class NieWorkKiekerTraceReconstructionAnalysisTest { analysis.start(); } finally { this.stopWatch.end(); - analysis.onTerminate(); } assertEquals(17371, analysis.getNumRecords()); diff --git a/src/performancetest/java/teetime/examples/traceReconstruction/TcpTraceReconstructionAnalysis.java b/src/performancetest/java/teetime/examples/traceReconstruction/TcpTraceReconstructionAnalysis.java index e503a3d4..ff835b17 100644 --- a/src/performancetest/java/teetime/examples/traceReconstruction/TcpTraceReconstructionAnalysis.java +++ b/src/performancetest/java/teetime/examples/traceReconstruction/TcpTraceReconstructionAnalysis.java @@ -4,7 +4,6 @@ import java.util.LinkedList; import java.util.List; import teetime.framework.HeadPipeline; -import teetime.framework.OldAnalysis; import teetime.framework.RunnableStage; import teetime.framework.pipe.SingleElementPipe; import teetime.framework.pipe.SpScPipe; @@ -23,7 +22,7 @@ import kieker.analysis.plugin.filter.flow.TraceEventRecords; import kieker.common.record.IMonitoringRecord; import kieker.common.record.flow.IFlowRecord; -public class TcpTraceReconstructionAnalysis extends OldAnalysis { +public class TcpTraceReconstructionAnalysis { private static final int MIO = 1000000; private static final int TCP_RELAY_MAX_SIZE = 2 * MIO; @@ -41,9 +40,7 @@ public class TcpTraceReconstructionAnalysis extends OldAnalysis { private ElementThroughputMeasuringStage<IFlowRecord> recordThroughputFilter; private ElementThroughputMeasuringStage<TraceEventRecords> traceThroughputFilter; - @Override public void init() { - super.init(); HeadPipeline<Clock, Distributor<Long>> clockStage = this.buildClockPipeline(1000); this.clockThread = new Thread(new RunnableStage(clockStage)); @@ -101,9 +98,7 @@ public class TcpTraceReconstructionAnalysis extends OldAnalysis { return pipeline; } - @Override public void start() { - super.start(); this.workerThread.start(); // this.clockThread.start(); diff --git a/src/performancetest/java/teetime/examples/traceReconstruction/TraceReconstructionAnalysis.java b/src/performancetest/java/teetime/examples/traceReconstruction/TraceReconstructionAnalysis.java index 68708496..dd4545c8 100644 --- a/src/performancetest/java/teetime/examples/traceReconstruction/TraceReconstructionAnalysis.java +++ b/src/performancetest/java/teetime/examples/traceReconstruction/TraceReconstructionAnalysis.java @@ -5,7 +5,6 @@ import java.util.LinkedList; import java.util.List; import teetime.framework.HeadPipeline; -import teetime.framework.OldAnalysis; import teetime.framework.RunnableStage; import teetime.framework.pipe.SingleElementPipe; import teetime.framework.pipe.SpScPipe; @@ -30,7 +29,7 @@ import kieker.analysis.plugin.filter.flow.TraceEventRecords; import kieker.common.record.IMonitoringRecord; import kieker.common.record.flow.IFlowRecord; -public class TraceReconstructionAnalysis extends OldAnalysis { +public class TraceReconstructionAnalysis { private final List<TraceEventRecords> elementCollection = new LinkedList<TraceEventRecords>(); @@ -46,9 +45,7 @@ public class TraceReconstructionAnalysis extends OldAnalysis { private File inputDir; - @Override public void init() { - super.init(); Clock clockStage = this.buildClockPipeline(); this.clockThread = new Thread(new RunnableStage(clockStage)); @@ -108,9 +105,7 @@ public class TraceReconstructionAnalysis extends OldAnalysis { return pipeline; } - @Override public void start() { - super.start(); this.clockThread.start(); this.workerThread.start(); diff --git a/src/performancetest/java/teetime/examples/traceReductionWithThreads/ChwWorkTcpTraceReductionAnalysisWithThreadsTest.java b/src/performancetest/java/teetime/examples/traceReductionWithThreads/ChwWorkTcpTraceReductionAnalysisWithThreadsTest.java index 340b4161..41d1eab0 100644 --- a/src/performancetest/java/teetime/examples/traceReductionWithThreads/ChwWorkTcpTraceReductionAnalysisWithThreadsTest.java +++ b/src/performancetest/java/teetime/examples/traceReductionWithThreads/ChwWorkTcpTraceReductionAnalysisWithThreadsTest.java @@ -108,7 +108,6 @@ public class ChwWorkTcpTraceReductionAnalysisWithThreadsTest { analysis.start(); } finally { this.stopWatch.end(); - analysis.onTerminate(); } System.out.println("#waits of tcp-relay pipe: " + analysis.getTcpRelayPipe().getNumWaits()); diff --git a/src/performancetest/java/teetime/examples/traceReductionWithThreads/TcpTraceReductionAnalysisWithThreads.java b/src/performancetest/java/teetime/examples/traceReductionWithThreads/TcpTraceReductionAnalysisWithThreads.java index 8879fc23..7153c5cc 100644 --- a/src/performancetest/java/teetime/examples/traceReductionWithThreads/TcpTraceReductionAnalysisWithThreads.java +++ b/src/performancetest/java/teetime/examples/traceReductionWithThreads/TcpTraceReductionAnalysisWithThreads.java @@ -9,7 +9,6 @@ import java.util.Map; import java.util.TreeMap; import teetime.framework.HeadPipeline; -import teetime.framework.OldAnalysis; import teetime.framework.RunnableStage; import teetime.framework.StageWithPort; import teetime.framework.pipe.SingleElementPipe; @@ -36,7 +35,7 @@ import kieker.common.record.IMonitoringRecord; import kieker.common.record.flow.IFlowRecord; import kieker.common.record.flow.trace.TraceMetadata; -public class TcpTraceReductionAnalysisWithThreads extends OldAnalysis { +public class TcpTraceReductionAnalysisWithThreads { private static final int NUM_VIRTUAL_CORES = Runtime.getRuntime().availableProcessors(); private static final int MIO = 1000000; @@ -52,9 +51,7 @@ public class TcpTraceReductionAnalysisWithThreads extends OldAnalysis { private SpScPipe tcpRelayPipe; private int numWorkerThreads; - @Override public void init() { - super.init(); HeadPipeline<TCPReader, Distributor<IMonitoringRecord>> tcpPipeline = this.buildTcpPipeline(); this.tcpThread = new Thread(new RunnableStage(tcpPipeline)); @@ -197,9 +194,7 @@ public class TcpTraceReductionAnalysisWithThreads extends OldAnalysis { return pipeline; } - @Override public void start() { - super.start(); this.tcpThread.start(); this.clockThread.start(); -- GitLab