Class AbstractTraceEvent

All Implemented Interfaces:
Serializable, Comparable<IMonitoringRecord>, IEventRecord, IFlowRecord, ITraceRecord, IMonitoringRecord
Direct Known Subclasses:
AbstractMonitorEvent, AbstractOperationEvent, ConstructionEvent, JoinEvent, SplitEvent

public abstract class AbstractTraceEvent extends AbstractEvent implements ITraceRecord
Since:
1.5
Author:
Jan Waller API compatibility: Kieker 1.15.0
See Also:
  • Field Details

  • Constructor Details

    • AbstractTraceEvent

      public AbstractTraceEvent(long timestamp, long traceId, int orderIndex)
      Creates a new instance of this class using the given parameters.
      Parameters:
      timestamp - timestamp
      traceId - traceId
      orderIndex - orderIndex
    • AbstractTraceEvent

      public AbstractTraceEvent(IValueDeserializer deserializer) throws RecordInstantiationException
      Parameters:
      deserializer - The deserializer to use
      Throws:
      RecordInstantiationException - when the record could not be deserialized
  • Method Details

    • equals

      public boolean equals(Object obj)

      Performs a null-check, a this-check, and a class-check. Moreover, it checks each attribute for equality.

      Overrides:
      equals in class AbstractEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractEvent
    • getTraceId

      public final long getTraceId()
      Specified by:
      getTraceId in interface ITraceRecord
    • setTraceId

      public final void setTraceId(long traceId)
      Specified by:
      setTraceId in interface ITraceRecord
    • getOrderIndex

      public final int getOrderIndex()
      Specified by:
      getOrderIndex in interface ITraceRecord
    • toString

      public String toString()
      Creates a string representation of this record.

      This method should not be used for serialization purposes since this is not the purpose of Object's toString method.
      Specified by:
      toString in interface IMonitoringRecord
      Overrides:
      toString in class AbstractEvent
      Returns:
      A (human readable) string of this record.