public abstract class AbstractRecordTcpReader extends AbstractTcpReader
logger
Constructor and Description |
---|
AbstractRecordTcpReader(int port,
int bufferCapacity,
org.slf4j.Logger logger,
ReaderRegistry<java.lang.String> stringRegistry,
CachedRecordFactoryCatalog recordFactories) |
AbstractRecordTcpReader(org.slf4j.Logger logger,
ReaderRegistry<java.lang.String> stringRegistry)
Default constructor with
port=10133 and bufferCapacity=65535 and new CachedRecordFactoryCatalog() . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
onBufferReceived(java.nio.ByteBuffer buffer) |
protected abstract void |
onRecordReceived(IMonitoringRecord record) |
getPort, run, terminate
public AbstractRecordTcpReader(org.slf4j.Logger logger, ReaderRegistry<java.lang.String> stringRegistry)
port=10133
and bufferCapacity=65535
and new CachedRecordFactoryCatalog()
.logger
- logger for the TCP readerstringRegistry
- string registry for the readerpublic AbstractRecordTcpReader(int port, int bufferCapacity, org.slf4j.Logger logger, ReaderRegistry<java.lang.String> stringRegistry, CachedRecordFactoryCatalog recordFactories)
port
- accept connections on this portbufferCapacity
- capacity of the receiving bufferlogger
- logger for the TCP readerstringRegistry
- string registry for the readerrecordFactories
- cache for record factoriesprotected final boolean onBufferReceived(java.nio.ByteBuffer buffer)
onBufferReceived
in class AbstractTcpReader
buffer
- to be read fromtrue
when there were enough bytes to perform the read operation
false
otherwise. In this case, the buffer is reset, compacted, and filled with new content.
protected abstract void onRecordReceived(IMonitoringRecord record)
Copyright 2020 Kieker Project, http://kieker-monitoring.net