Interface IMonitoringRecordSerializer
- All Known Implementing Classes:
AbstractContainerFormatSerializer
,AbstractMonitoringRecordSerializer
,BinarySerializer
,StringSerializer
public interface IMonitoringRecordSerializer
Interface for monitoring record serializers.
- Since:
- 1.13
- Author:
- Holger Knoche
-
Method Summary
Modifier and Type Method 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.
-
Method Details
-
serializeRecord
Serializes a single record into the given byte buffer.- Parameters:
record
- The record to serializebuffer
- The buffer to write to- Returns:
- The number of bytes written to the buffer
- Since:
- 1.13
-
serializeRecords
Serializes multiple monitoring records into the given byte buffer.- Parameters:
records
- The records to serializebuffer
- The buffer to write to- Returns:
- The number of bytes written to the buffer
- Since:
- 1.13
-
onInitialization
void onInitialization()Called by the collector during initialization (before any records are written).- Since:
- 1.13
-
onTermination
void onTermination()Called by the collector upon termination (after remaining records have been flushed).- Since:
- 1.13
-