public abstract class AbstractContainerFormatDeserializer extends AbstractMonitoringRecordDeserializer
Modifier and Type | Field and Description |
---|---|
static int |
CONTAINER_IDENTIFIER
Container format identifier.
|
Constructor and Description |
---|
AbstractContainerFormatDeserializer(Configuration configuration,
IProjectContext projectContext)
Creates a new record deserializer.
|
Modifier and Type | Method and Description |
---|---|
protected abstract java.util.List<IMonitoringRecord> |
decodeRecords(java.nio.ByteBuffer buffer,
int dataSize)
Decodes the records from the container's payload.
|
java.util.List<IMonitoringRecord> |
deserializeRecords(java.nio.ByteBuffer buffer,
int dataSize)
Deserializes the records contained in the given buffer.
|
protected abstract int |
getFormatIdentifier() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init, terminate
public static final int CONTAINER_IDENTIFIER
public AbstractContainerFormatDeserializer(Configuration configuration, IProjectContext projectContext)
configuration
- The configuration to useprojectContext
- The project context to usepublic java.util.List<IMonitoringRecord> deserializeRecords(java.nio.ByteBuffer buffer, int dataSize)
IMonitoringRecordDeserializer
buffer
- The buffer to decode the data fromdataSize
- The size of the record data in bytesprotected abstract java.util.List<IMonitoringRecord> decodeRecords(java.nio.ByteBuffer buffer, int dataSize) throws InvalidFormatException
buffer
- The buffer to decode the data from. It is positioned at the
first byte of the payloaddataSize
- The size of the payload data in bytesInvalidFormatException
- When an invalid data format is encounteredprotected abstract int getFormatIdentifier()
Copyright 2017 Kieker Project, http://kieker-monitoring.net