public abstract class AbstractRecordTcpReader extends AbstractTcpReader
logger
Constructor and Description |
---|
AbstractRecordTcpReader(int port,
int bufferCapacity,
Log logger,
ILookup<java.lang.String> stringRegistry,
CachedRecordFactoryCatalog recordFactories) |
AbstractRecordTcpReader(Log logger,
ILookup<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(Log logger, ILookup<java.lang.String> stringRegistry)
port=10133
and bufferCapacity=65535
and new CachedRecordFactoryCatalog()
public AbstractRecordTcpReader(int port, int bufferCapacity, Log logger, ILookup<java.lang.String> stringRegistry, CachedRecordFactoryCatalog recordFactories)
port
- accept connections on this portbufferCapacity
- capacity of the receiving bufferprotected 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 2017 Kieker Project, http://kieker-monitoring.net