public abstract class AbstractRawDataReader extends AbstractReaderPlugin
IPlugin.PluginInputPortReference, IPlugin.STATE
CONFIG_NAME, configuration, log, LOG, projectContext, recordsTimeUnitFromProjectContext
Constructor and Description |
---|
AbstractRawDataReader(Configuration configuration,
IProjectContext projectContext,
java.lang.String deserializerClassName)
Creates a new reader using the given data.
|
Modifier and Type | Method and Description |
---|---|
protected void |
decodeAndDeliverRecords(byte[] rawData,
java.lang.String outputPortName)
Decodes the given raw data using the configured deserializer and delivers them to the
given output port.
|
protected void |
decodeAndDeliverRecords(java.nio.ByteBuffer rawData,
int dataSize,
java.lang.String outputPortName)
Decodes the given raw data using the configured deserializer and delivers
them to the given output port.
|
init
areAllRepositoryPortsConnected, connect, connect, deliver, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getDefaultConfiguration, getIncomingPlugins, getPluginDescription, getPluginName, getRepository, getState, isConnectionAllowed, notifyNewIncomingConnection, notifyNewOutgoingConnection, shutdown, start
getCurrentConfiguration, getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read
connect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentConfiguration, getCurrentRepositories, getName, getPluginDescription, getPluginName, getState, terminate
public AbstractRawDataReader(Configuration configuration, IProjectContext projectContext, java.lang.String deserializerClassName)
configuration
- The configuration to useprojectContext
- The project context the reader runs indeserializerClassName
- The class name of the deserializer to useprotected void decodeAndDeliverRecords(byte[] rawData, java.lang.String outputPortName)
rawData
- The raw data to decodeoutputPortName
- The output port name to send the decoded records toprotected void decodeAndDeliverRecords(java.nio.ByteBuffer rawData, int dataSize, java.lang.String outputPortName)
rawData
- The raw data to decodedataSize
- The size of the data to decodeoutputPortName
- The output port name to send the decoded records toCopyright 2017 Kieker Project, http://kieker-monitoring.net