Class BinaryDeserializer
java.lang.Object
kieker.analysis.plugin.reader.newio.deserializer.AbstractMonitoringRecordDeserializer
kieker.analysis.plugin.reader.newio.deserializer.AbstractContainerFormatDeserializer
kieker.analysis.plugin.reader.newio.deserializer.BinaryDeserializer
- All Implemented Interfaces:
IMonitoringRecordDeserializer
public class BinaryDeserializer extends AbstractContainerFormatDeserializer
- Since:
- 1.13
- Author:
- Holger Knoche
-
Field Summary
Fields Modifier and Type Field Description static intFORMAT_IDENTIFIERFormat identifier.Fields inherited from class kieker.analysis.plugin.reader.newio.deserializer.AbstractContainerFormatDeserializer
CONTAINER_IDENTIFIER -
Constructor Summary
Constructors Constructor Description BinaryDeserializer(Configuration configuration, IProjectContext projectContext)Creates a new record deserializer. -
Method Summary
Modifier and Type Method Description protected java.util.List<IMonitoringRecord>decodeRecords(java.nio.ByteBuffer buffer, int dataSize)Decodes the records from the container's payload.protected intgetFormatIdentifier()voidinit()Lifecycle event, is called before data is read.voidterminate()Lifecycle event, is called when the analysis terminates.Methods inherited from class kieker.analysis.plugin.reader.newio.deserializer.AbstractContainerFormatDeserializer
deserializeRecords
-
Field Details
-
FORMAT_IDENTIFIER
public static final int FORMAT_IDENTIFIERFormat identifier.
-
-
Constructor Details
-
BinaryDeserializer
Creates a new record deserializer.- Parameters:
configuration- The configuration to useprojectContext- The project context to use
-
-
Method Details
-
getFormatIdentifier
protected int getFormatIdentifier()- Specified by:
getFormatIdentifierin classAbstractContainerFormatDeserializer
-
decodeRecords
protected java.util.List<IMonitoringRecord> decodeRecords(java.nio.ByteBuffer buffer, int dataSize) throws InvalidFormatExceptionDescription copied from class:AbstractContainerFormatDeserializerDecodes the records from the container's payload.- Specified by:
decodeRecordsin classAbstractContainerFormatDeserializer- 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
-
init
public void init() throws java.lang.ExceptionDescription copied from interface:IMonitoringRecordDeserializerLifecycle event, is called before data is read.- Throws:
java.lang.Exception- If the initialization fails
-
terminate
public void terminate()Description copied from interface:IMonitoringRecordDeserializerLifecycle event, is called when the analysis terminates.
-