public abstract class AbstractContainerFormatSerializer extends AbstractMonitoringRecordSerializer
| Modifier and Type | Field and Description |
|---|---|
static int |
CONTAINER_IDENTIFIER
Container format identifier.
|
| Constructor and Description |
|---|
AbstractContainerFormatSerializer(Configuration configuration)
Creates a new serializer using the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract int |
getFormatIdentifier()
Returns the format identifier for the contained data format.
|
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.
|
protected abstract int |
writeRecords(java.util.Collection<IMonitoringRecord> records,
java.nio.ByteBuffer buffer)
Write the given records to the given byte buffer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonInitialization, onTerminationpublic static final int CONTAINER_IDENTIFIER
public AbstractContainerFormatSerializer(Configuration configuration)
configuration - The configuration to usepublic final int serializeRecord(IMonitoringRecord record, java.nio.ByteBuffer buffer)
IMonitoringRecordSerializerrecord - The record to serializebuffer - The buffer to write topublic final int serializeRecords(java.util.Collection<IMonitoringRecord> records, java.nio.ByteBuffer buffer)
IMonitoringRecordSerializerrecords - The records to serializebuffer - The buffer to write toprotected abstract int writeRecords(java.util.Collection<IMonitoringRecord> records, java.nio.ByteBuffer buffer)
records - The records to writebuffer - The buffer to write toprotected abstract int getFormatIdentifier()
Copyright 2020 Kieker Project, http://kieker-monitoring.net