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

removed endStage from TCPReaderSink

parent 9d24f613
No related branches found
No related tags found
No related merge requests found
package teetime.variant.methodcallWithPorts.stage; package teetime.variant.methodcallWithPorts.stage;
import java.util.LinkedList;
import java.util.List;
import java.util.UUID; import java.util.UUID;
import teetime.util.ConstructorClosure; import teetime.util.ConstructorClosure;
...@@ -14,9 +12,9 @@ public class EndStage<T> implements StageWithPort<T, T> { ...@@ -14,9 +12,9 @@ public class EndStage<T> implements StageWithPort<T, T> {
private final InputPort<T> inputPort = new InputPort<T>(this); private final InputPort<T> inputPort = new InputPort<T>(this);
public int count; // public int count;
public ConstructorClosure<?> closure; public ConstructorClosure<?> closure;
public List<Object> list = new LinkedList<Object>(); // public List<Object> list = new LinkedList<Object>();
private final String id; private final String id;
...@@ -31,13 +29,12 @@ public class EndStage<T> implements StageWithPort<T, T> { ...@@ -31,13 +29,12 @@ public class EndStage<T> implements StageWithPort<T, T> {
@Override @Override
public StageWithPort<?, ?> getParentStage() { public StageWithPort<?, ?> getParentStage() {
// TODO Auto-generated method stub
return null; return null;
} }
@Override @Override
public void setParentStage(final StageWithPort<?, ?> parentStage, final int index) { public void setParentStage(final StageWithPort<?, ?> parentStage, final int index) {
// TODO Auto-generated method stub // do nothing
} }
...@@ -53,7 +50,6 @@ public class EndStage<T> implements StageWithPort<T, T> { ...@@ -53,7 +50,6 @@ public class EndStage<T> implements StageWithPort<T, T> {
@Override @Override
public OutputPort<T> getOutputPort() { public OutputPort<T> getOutputPort() {
// TODO Auto-generated method stub
return null; return null;
} }
...@@ -68,8 +64,7 @@ public class EndStage<T> implements StageWithPort<T, T> { ...@@ -68,8 +64,7 @@ public class EndStage<T> implements StageWithPort<T, T> {
@Override @Override
public void onStart() { public void onStart() {
// TODO Auto-generated method stub // do nothing
} }
@Override @Override
......
...@@ -45,7 +45,6 @@ public class TCPReaderSink extends ProducerStage<Void, IMonitoringRecord> { ...@@ -45,7 +45,6 @@ public class TCPReaderSink extends ProducerStage<Void, IMonitoringRecord> {
private static final int MESSAGE_BUFFER_SIZE = 65535; private static final int MESSAGE_BUFFER_SIZE = 65535;
// BETTER use a non thread-safe implementation to increase performance. A thread-safe version is not necessary.
private final ILookup<String> stringRegistry = new Lookup<String>(); private final ILookup<String> stringRegistry = new Lookup<String>();
private int port1 = 10133; private int port1 = 10133;
private int port2 = 10134; private int port2 = 10134;
......
package teetime.variant.methodcallWithPorts.examples.kiekerdays; package teetime.variant.methodcallWithPorts.examples.kiekerdays;
import teetime.variant.explicitScheduling.framework.core.Analysis; import teetime.variant.explicitScheduling.framework.core.Analysis;
import teetime.variant.methodcallWithPorts.framework.core.Pipeline;
import teetime.variant.methodcallWithPorts.framework.core.RunnableStage; import teetime.variant.methodcallWithPorts.framework.core.RunnableStage;
import teetime.variant.methodcallWithPorts.framework.core.StageWithPort; import teetime.variant.methodcallWithPorts.framework.core.StageWithPort;
import teetime.variant.methodcallWithPorts.framework.core.pipe.SingleElementPipe;
import teetime.variant.methodcallWithPorts.stage.EndStage;
import kieker.common.record.IMonitoringRecord; import kieker.common.record.IMonitoringRecord;
...@@ -35,15 +32,15 @@ public class TcpTraceLogging extends Analysis { ...@@ -35,15 +32,15 @@ public class TcpTraceLogging extends Analysis {
private StageWithPort<Void, IMonitoringRecord> buildTcpPipeline() { private StageWithPort<Void, IMonitoringRecord> buildTcpPipeline() {
TCPReaderSink tcpReader = new TCPReaderSink(); TCPReaderSink tcpReader = new TCPReaderSink();
EndStage<IMonitoringRecord> endStage = new EndStage<IMonitoringRecord>(); // EndStage<IMonitoringRecord> endStage = new EndStage<IMonitoringRecord>();
//
SingleElementPipe.connect(tcpReader.getOutputPort(), endStage.getInputPort()); // SingleElementPipe.connect(tcpReader.getOutputPort(), endStage.getInputPort());
//
// create and configure pipeline // // create and configure pipeline
Pipeline<Void, IMonitoringRecord> pipeline = new Pipeline<Void, IMonitoringRecord>(); // Pipeline<Void, IMonitoringRecord> pipeline = new Pipeline<Void, IMonitoringRecord>();
pipeline.setFirstStage(tcpReader); // pipeline.setFirstStage(tcpReader);
pipeline.setLastStage(endStage); // pipeline.setLastStage(endStage);
return pipeline; return tcpReader;
} }
public static void main(final String[] args) { public static void main(final String[] args) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment