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 ITraceRecords 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • rewrite

      public void rewrite​(Connection connection, IMonitoringRecord record, long loggingTimestamp, teetime.framework.OutputPort<IMonitoringRecord> outputPort) throws java.io.IOException
      Trace 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 interface ITraceMetadataRewriter
      Parameters:
      record -
      connection - connection used for incoming records
      loggingTimestamp - the logging timestamp to be used
      outputPort - the output port for sending the rewritten record
      Throws:
      java.io.IOException