Class AbstractContainerFormatDeserializer

java.lang.Object
kieker.analysis.plugin.reader.newio.deserializer.AbstractMonitoringRecordDeserializer
kieker.analysis.plugin.reader.newio.deserializer.AbstractContainerFormatDeserializer
All Implemented Interfaces:
IMonitoringRecordDeserializer
Direct Known Subclasses:
BinaryDeserializer

public abstract class AbstractContainerFormatDeserializer
extends AbstractMonitoringRecordDeserializer
Since:
1.13
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static int CONTAINER_IDENTIFIER
    Container format identifier.
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractContainerFormatDeserializer​(kieker.common.configuration.Configuration configuration, IProjectContext projectContext)
    Creates a new record deserializer.
  • Method Summary

    Modifier and Type Method Description
    protected abstract java.util.List<kieker.common.record.IMonitoringRecord> decodeRecords​(java.nio.ByteBuffer buffer, int dataSize)
    Decodes the records from the container's payload.
    java.util.List<kieker.common.record.IMonitoringRecord> deserializeRecords​(java.nio.ByteBuffer buffer, int dataSize)
    Deserializes the records contained in the given buffer.
    protected abstract int getFormatIdentifier()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface kieker.analysis.plugin.reader.newio.deserializer.IMonitoringRecordDeserializer

    init, terminate
  • Field Details

  • Constructor Details

    • AbstractContainerFormatDeserializer

      public AbstractContainerFormatDeserializer​(kieker.common.configuration.Configuration configuration, IProjectContext projectContext)
      Creates a new record deserializer.
      Parameters:
      configuration - The configuration to use
      projectContext - The project context to use
  • Method Details

    • deserializeRecords

      public java.util.List<kieker.common.record.IMonitoringRecord> deserializeRecords​(java.nio.ByteBuffer buffer, int dataSize)
      Description copied from interface: IMonitoringRecordDeserializer
      Deserializes the records contained in the given buffer.
      Parameters:
      buffer - The buffer to decode the data from
      dataSize - The size of the record data in bytes
      Returns:
      The deserialized records
    • decodeRecords

      protected abstract java.util.List<kieker.common.record.IMonitoringRecord> decodeRecords​(java.nio.ByteBuffer buffer, int dataSize) throws InvalidFormatException
      Decodes the records from the container's payload.
      Parameters:
      buffer - The buffer to decode the data from. It is positioned at the first byte of the payload
      dataSize - The size of the payload data in bytes
      Returns:
      The decoded records
      Throws:
      InvalidFormatException - When an invalid data format is encountered
    • getFormatIdentifier

      protected abstract int getFormatIdentifier()