public class BinaryDeserializer extends AbstractContainerFormatDeserializer
Modifier and Type | Field and Description |
---|---|
static int |
FORMAT_IDENTIFIER
Format identifier.
|
CONTAINER_IDENTIFIER
Constructor and Description |
---|
BinaryDeserializer(Configuration configuration,
IProjectContext projectContext)
Creates a new record deserializer.
|
Modifier and Type | Method and 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.
|
deserializeRecords
public BinaryDeserializer(Configuration configuration, IProjectContext projectContext)
configuration
- The configuration to useprojectContext
- The project context to useprotected int getFormatIdentifier()
getFormatIdentifier
in class AbstractContainerFormatDeserializer
protected java.util.List<IMonitoringRecord> decodeRecords(java.nio.ByteBuffer buffer, int dataSize) throws InvalidFormatException
AbstractContainerFormatDeserializer
decodeRecords
in class AbstractContainerFormatDeserializer
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 bytesInvalidFormatException
- When an invalid data format is encounteredpublic void init() throws java.lang.Exception
IMonitoringRecordDeserializer
java.lang.Exception
- If the initialization failspublic void terminate()
IMonitoringRecordDeserializer
Copyright 2017 Kieker Project, http://kieker-monitoring.net