Skip to content
Snippets Groups Projects
Commit 7b6190ac authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

removed OldAnalysis

parent 624bb082
No related branches found
No related tags found
No related merge requests found
Showing
with 17 additions and 302 deletions
/***************************************************************************
* 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.");
}
}
......@@ -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();
}
......
......@@ -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();
}
......
......@@ -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();
}
......
......@@ -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();
}
......
......@@ -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();
......
......@@ -85,7 +85,6 @@ public class MethodCallThoughputTimestampAnalysis16Test extends PerformanceTest
analysis.start();
} finally {
this.stopWatch.end();
analysis.onTerminate();
}
this.timestampObjects = ListUtil.merge(analysis.getTimestampObjectsList());
......
......@@ -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();
......
......@@ -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());
......
......@@ -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();
......
/***************************************************************************
* 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;
}
}
......@@ -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());
......
......@@ -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();
......
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();
}
}
......
......@@ -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();
}
}
......
......@@ -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() {
......
......@@ -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() {
......
......@@ -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());
......
......@@ -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();
......
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment