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, serializeRecordspublic BinarySerializer(Configuration configuration)
configuration - The configuration to useprotected int getFormatIdentifier()
AbstractContainerFormatSerializergetFormatIdentifier in class AbstractContainerFormatSerializerprotected int writeRecords(java.util.Collection<IMonitoringRecord> records, java.nio.ByteBuffer buffer)
AbstractContainerFormatSerializerwriteRecords in class AbstractContainerFormatSerializerrecords - The records to writebuffer - The buffer to write topublic void onInitialization()
IMonitoringRecordSerializerpublic void onTermination()
IMonitoringRecordSerializerCopyright 2020 Kieker Project, http://kieker-monitoring.net