Class BeforeDatabaseEvent

java.lang.Object
kieker.common.record.AbstractMonitoringRecord
kieker.common.record.database.BeforeDatabaseEvent
All Implemented Interfaces:
Serializable, Comparable<IMonitoringRecord>, IClassSignature, IEventRecord, IFlowRecord, ITraceRecord, IMonitoringRecord

public class BeforeDatabaseEvent extends AbstractMonitoringRecord implements IEventRecord, IFlowRecord, IClassSignature, ITraceRecord
Since:
1.14
Author:
Christian Zirkelbach (czi@informatik.uni-kiel.de) API compatibility: Kieker 1.15.0
See Also:
  • Field Details

  • Constructor Details

    • BeforeDatabaseEvent

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

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

    • serialize

      public void serialize(IValueSerializer serializer) throws BufferOverflowException
      This method serializes this record using the given serializer.
      Specified by:
      serialize in interface IMonitoringRecord
      Parameters:
      serializer - The serializer to serialize the record with. *
      Throws:
      BufferOverflowException - If the underlying buffer has insufficient capacity to store this record
    • getValueTypes

      public Class<?>[] getValueTypes()
      This method delivers an array with the classes of the single values for the record.
      Specified by:
      getValueTypes in interface IMonitoringRecord
      Returns:
      The types of the values. This returned array should be treated readonly.
    • getValueNames

      public String[] getValueNames()
      This method delivers an array containing the value names of the record.
      Specified by:
      getValueNames in interface IMonitoringRecord
      Returns:
      The types of the values. This returned array should be treated readonly.
    • getSize

      public int getSize()
      This method should deliver the size of a binary representation of this record.
      Specified by:
      getSize in interface IMonitoringRecord
      Returns:
      The size.
    • 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
    • getClassSignature

      public final String getClassSignature()
      Specified by:
      getClassSignature in interface IClassSignature
    • 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
    • getParameters

      public final String getParameters()
    • getTechnology

      public final String getTechnology()
    • 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.