public class BinarySerializer extends AbstractContainerFormatSerializer
Modifier and Type | Field and Description |
---|---|
static int |
FORMAT_IDENTIFIER
Format identifier.
|
CONTAINER_IDENTIFIER
Constructor and Description |
---|
BinarySerializer(Configuration configuration)
Creates a new serializer using the given configuration.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getFormatIdentifier()
Returns the format identifier for the contained data format.
|
void |
onInitialization()
Called by the collector during initialization (before any records are written).
|
void |
onTermination()
Called by the collector upon termination (after remaining records have been flushed).
|
protected int |
writeRecords(java.util.Collection<IMonitoringRecord> records,
java.nio.ByteBuffer buffer)
Write the given records to the given byte buffer.
|
serializeRecord, serializeRecords
public BinarySerializer(Configuration configuration)
configuration
- The configuration to useprotected int getFormatIdentifier()
AbstractContainerFormatSerializer
getFormatIdentifier
in class AbstractContainerFormatSerializer
protected int writeRecords(java.util.Collection<IMonitoringRecord> records, java.nio.ByteBuffer buffer)
AbstractContainerFormatSerializer
writeRecords
in class AbstractContainerFormatSerializer
records
- The records to writebuffer
- The buffer to write topublic void onInitialization()
IMonitoringRecordSerializer
public void onTermination()
IMonitoringRecordSerializer
Copyright 2017 Kieker Project, http://kieker-monitoring.net