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
FieldsModifier and TypeFieldDescriptionstatic final intContainer format identifier. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractContainerFormatDeserializer(Configuration configuration, IProjectContext projectContext) Creates a new record deserializer. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract List<IMonitoringRecord>decodeRecords(ByteBuffer buffer, int dataSize) Decodes the records from the container's payload.deserializeRecords(ByteBuffer buffer, int dataSize) Deserializes the records contained in the given buffer.protected abstract intMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
Description copied from interface:IMonitoringRecordDeserializerDeserializes 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 List<IMonitoringRecord> decodeRecords(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 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()
-