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 int
FORMAT_IDENTIFIER
Format 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 int
getFormatIdentifier()
void
init()
Lifecycle event, is called before data is read.void
terminate()
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:
getFormatIdentifier
in classAbstractContainerFormatDeserializer
-
decodeRecords
protected java.util.List<IMonitoringRecord> decodeRecords(java.nio.ByteBuffer buffer, int dataSize) throws InvalidFormatExceptionDescription copied from class:AbstractContainerFormatDeserializer
Decodes the records from the container's payload.- Specified by:
decodeRecords
in 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:IMonitoringRecordDeserializer
Lifecycle event, is called before data is read.- Throws:
java.lang.Exception
- If the initialization fails
-
terminate
public void terminate()Description copied from interface:IMonitoringRecordDeserializer
Lifecycle event, is called when the analysis terminates.
-