public class StringSerializer extends AbstractMonitoringRecordSerializer
Constructor and Description |
---|
StringSerializer(Configuration configuration)
Creates a new serializer using the given configuration.
|
Modifier and Type | Method and Description |
---|---|
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).
|
int |
serializeRecord(IMonitoringRecord record,
java.nio.ByteBuffer buffer)
Serializes a single record into the given byte buffer.
|
int |
serializeRecords(java.util.Collection<IMonitoringRecord> records,
java.nio.ByteBuffer buffer)
Serializes multiple monitoring records into the given byte buffer.
|
public StringSerializer(Configuration configuration)
configuration
- The configuration to usepublic int serializeRecord(IMonitoringRecord record, java.nio.ByteBuffer buffer)
IMonitoringRecordSerializer
record
- The record to serializebuffer
- The buffer to write topublic int serializeRecords(java.util.Collection<IMonitoringRecord> records, java.nio.ByteBuffer buffer)
IMonitoringRecordSerializer
records
- The records to serializebuffer
- The buffer to write topublic void onInitialization()
IMonitoringRecordSerializer
public void onTermination()
IMonitoringRecordSerializer
Copyright 2017 Kieker Project, http://kieker-monitoring.net