Class PlainTraceMetadataRewriter
java.lang.Object
kieker.analysis.generic.source.rewriter.PlainTraceMetadataRewriter
- All Implemented Interfaces:
ITraceMetadataRewriter
public class PlainTraceMetadataRewriter extends java.lang.Object implements ITraceMetadataRewriter
This rewriter rewrites trace ids and ignores
ITraceRecord
s which are not preceded by a
TraceMetadata
record.- Since:
- 1.15
- Author:
- Reiner Jung
-
Constructor Summary
Constructors Constructor Description PlainTraceMetadataRewriter()
Create the plain trace rewriter. -
Method Summary
Modifier and Type Method Description void
rewrite(Connection connection, IMonitoringRecord record, long loggingTimestamp, teetime.framework.OutputPort<IMonitoringRecord> outputPort)
Trace data records use unique ids for their respective host.
-
Constructor Details
-
PlainTraceMetadataRewriter
public PlainTraceMetadataRewriter()Create the plain trace rewriter.
-
-
Method Details
-
rewrite
public void rewrite(Connection connection, IMonitoringRecord record, long loggingTimestamp, teetime.framework.OutputPort<IMonitoringRecord> outputPort) throws java.io.IOExceptionTrace data records use unique ids for their respective host. However, in a multi read stage these ids may be used on different hosts. Therefore, they have to be mapped. Fails in case of records appearing out of order, i.e., a ITraceRecord appearing before a TraceMetadata record.- Specified by:
rewrite
in interfaceITraceMetadataRewriter
- Parameters:
record
-connection
- connection used for incoming recordsloggingTimestamp
- the logging timestamp to be usedoutputPort
- the output port for sending the rewritten record- Throws:
java.io.IOException
-