Skip to content
Snippets Groups Projects
Commit 0fe6dd16 authored by Christian Wulf's avatar Christian Wulf
Browse files

fixed TcpTraceLoggingExtAnalysisConfiguration

parent ab6e659d
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,6 @@ import java.util.List; ...@@ -4,7 +4,6 @@ import java.util.List;
import teetime.framework.AnalysisConfiguration; import teetime.framework.AnalysisConfiguration;
import teetime.framework.IStage; import teetime.framework.IStage;
import teetime.framework.RunnableStage;
import teetime.framework.pipe.IPipeFactory; import teetime.framework.pipe.IPipeFactory;
import teetime.framework.pipe.PipeFactoryRegistry; import teetime.framework.pipe.PipeFactoryRegistry;
import teetime.framework.pipe.PipeFactoryRegistry.PipeOrdering; import teetime.framework.pipe.PipeFactoryRegistry.PipeOrdering;
...@@ -21,9 +20,6 @@ import kieker.common.record.IMonitoringRecord; ...@@ -21,9 +20,6 @@ import kieker.common.record.IMonitoringRecord;
public class TcpTraceLoggingExtAnalysisConfiguration extends AnalysisConfiguration { public class TcpTraceLoggingExtAnalysisConfiguration extends AnalysisConfiguration {
private Thread clockThread;
private Thread tcpThread;
private Counter<IMonitoringRecord> recordCounter; private Counter<IMonitoringRecord> recordCounter;
private ElementThroughputMeasuringStage<IMonitoringRecord> recordThroughputStage; private ElementThroughputMeasuringStage<IMonitoringRecord> recordThroughputStage;
private final IPipeFactory intraThreadPipeFactory; private final IPipeFactory intraThreadPipeFactory;
...@@ -32,6 +28,11 @@ public class TcpTraceLoggingExtAnalysisConfiguration extends AnalysisConfigurati ...@@ -32,6 +28,11 @@ public class TcpTraceLoggingExtAnalysisConfiguration extends AnalysisConfigurati
public TcpTraceLoggingExtAnalysisConfiguration() { public TcpTraceLoggingExtAnalysisConfiguration() {
intraThreadPipeFactory = PipeFactoryRegistry.INSTANCE.getPipeFactory(ThreadCommunication.INTRA, PipeOrdering.ARBITRARY, false); intraThreadPipeFactory = PipeFactoryRegistry.INSTANCE.getPipeFactory(ThreadCommunication.INTRA, PipeOrdering.ARBITRARY, false);
interThreadPipeFactory = PipeFactoryRegistry.INSTANCE.getPipeFactory(ThreadCommunication.INTER, PipeOrdering.QUEUE_BASED, false); interThreadPipeFactory = PipeFactoryRegistry.INSTANCE.getPipeFactory(ThreadCommunication.INTER, PipeOrdering.QUEUE_BASED, false);
final Pipeline<Distributor<Long>> clockPipeline = this.buildClockPipeline(1000);
addThreadableStage(clockPipeline);
final IStage tcpPipeline = this.buildTcpPipeline(clockPipeline.getLastStage());
addThreadableStage(tcpPipeline);
} }
private Pipeline<Distributor<Long>> buildClockPipeline(final long intervalDelayInMs) { private Pipeline<Distributor<Long>> buildClockPipeline(final long intervalDelayInMs) {
...@@ -61,14 +62,6 @@ public class TcpTraceLoggingExtAnalysisConfiguration extends AnalysisConfigurati ...@@ -61,14 +62,6 @@ public class TcpTraceLoggingExtAnalysisConfiguration extends AnalysisConfigurati
return tcpReader; return tcpReader;
} }
public void init() {
Pipeline<Distributor<Long>> clockPipeline = this.buildClockPipeline(1000);
this.clockThread = new Thread(new RunnableStage(clockPipeline));
IStage tcpPipeline = this.buildTcpPipeline(clockPipeline.getLastStage());
this.tcpThread = new Thread(new RunnableStage(tcpPipeline));
}
public int getNumRecords() { public int getNumRecords() {
return this.recordCounter.getNumElementsPassed(); return this.recordCounter.getNumElementsPassed();
} }
......
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