Class AbstractEvent

java.lang.Object
kieker.common.record.AbstractMonitoringRecord
kieker.common.record.flow.AbstractEvent
All Implemented Interfaces:
Serializable, Comparable<IMonitoringRecord>, IEventRecord, IFlowRecord, IMonitoringRecord
Direct Known Subclasses:
AbstractThreadBasedEvent, AbstractTraceEvent

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

  • Constructor Details

    • AbstractEvent

      public AbstractEvent(long timestamp)
      Creates a new instance of this class using the given parameters.
      Parameters:
      timestamp - timestamp
    • AbstractEvent

      public AbstractEvent(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 AbstractMonitoringRecord
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractMonitoringRecord
    • getTimestamp

      public final long getTimestamp()
      Specified by:
      getTimestamp in interface IEventRecord
    • setTimestamp

      public final void setTimestamp(long timestamp)
      Specified by:
      setTimestamp in interface IEventRecord
    • 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 Object
      Returns:
      A (human readable) string of this record.