Class AbstractMonitorEvent

All Implemented Interfaces:
Serializable, Comparable<IMonitoringRecord>, IEventRecord, IFlowRecord, ITraceRecord, IMonitoringRecord
Direct Known Subclasses:
MonitorEntryEvent, MonitorExitEvent, MonitorNotifyAllEvent, MonitorNotifyEvent, MonitorRequestEvent, MonitorWaitEvent

public abstract class AbstractMonitorEvent extends AbstractTraceEvent
Since:
1.8
Author:
Jan Waller API compatibility: Kieker 1.15.0
See Also:
  • Field Details

  • Constructor Details

    • AbstractMonitorEvent

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

      public AbstractMonitorEvent(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 AbstractTraceEvent
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractTraceEvent
    • getLockId

      public final int getLockId()
    • 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 AbstractTraceEvent
      Returns:
      A (human readable) string of this record.