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
- Author:
- Holger Knoche
-
Field Summary
Fields Modifier and Type Field Description static int
CONTAINER_IDENTIFIER
Container format identifier. -
Constructor Summary
Constructors Constructor Description AbstractContainerFormatDeserializer(Configuration configuration, IProjectContext projectContext)
Creates a new record deserializer. -
Method Summary
Modifier and Type Method Description protected abstract java.util.List<IMonitoringRecord>
decodeRecords(java.nio.ByteBuffer buffer, int dataSize)
Decodes the records from the container's payload.java.util.List<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
-
CONTAINER_IDENTIFIER
public static final int CONTAINER_IDENTIFIERContainer format identifier.
-
-
Constructor Details
-
AbstractContainerFormatDeserializer
public AbstractContainerFormatDeserializer(Configuration configuration, IProjectContext projectContext)Creates a new record deserializer.- Parameters:
configuration
- The configuration to useprojectContext
- The project context to use
-
-
Method Details
-
deserializeRecords
public java.util.List<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 fromdataSize
- The size of the record data in bytes- Returns:
- The deserialized records
-
decodeRecords
protected abstract java.util.List<IMonitoringRecord> decodeRecords(java.nio.ByteBuffer buffer, int dataSize) throws InvalidFormatExceptionDecodes 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 payloaddataSize
- 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()
-