Class AbstractJVMRecord

java.lang.Object
kieker.common.record.AbstractMonitoringRecord
kieker.common.record.jvm.AbstractJVMRecord
All Implemented Interfaces:
Serializable, Comparable<IMonitoringRecord>, IMonitoringRecord
Direct Known Subclasses:
ClassLoadingRecord, CompilationRecord, GCRecord, MemoryRecord, ThreadsStatusRecord, UptimeRecord

public abstract class AbstractJVMRecord extends AbstractMonitoringRecord
Since:
1.10
Author:
Nils Christian Ehmke API compatibility: Kieker 1.15.0
See Also:
  • Field Details

  • Constructor Details

    • AbstractJVMRecord

      public AbstractJVMRecord(long timestamp, String hostname, String vmName)
      Creates a new instance of this class using the given parameters.
      Parameters:
      timestamp - timestamp
      hostname - hostname
      vmName - vmName
    • AbstractJVMRecord

      public AbstractJVMRecord(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()
    • getHostname

      public final String getHostname()
    • getVmName

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