Class FileSignalChannel
java.lang.Object
io.debezium.pipeline.signal.channels.FileSignalChannel
- All Implemented Interfaces:
SignalChannelReader
The class responsible for processing of signals delivered to Debezium via a file.
The signal message must have the following structure, formatted as json line:
id STRING
- the unique identifier of the signal sent, usually UUID, can be used for deduplicationtype STRING
- the unique logical name of the code executing the signaldata STRING
- the data in JSON format that are passed to the signal code
- Author:
- Ismail Simsek
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
init
(CommonConnectorConfig connectorConfig) name()
read()
private SignalRecord
readSignalString
(String signalLine) void
-
Field Details
-
CONFIGURATION_FIELD_PREFIX_STRING
- See Also:
-
SIGNAL_FILE
-
CHANNEL_NAME
- See Also:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
mapper
com.fasterxml.jackson.databind.ObjectMapper mapper -
signalFile
-
-
Constructor Details
-
FileSignalChannel
public FileSignalChannel()
-
-
Method Details
-
name
- Specified by:
name
in interfaceSignalChannelReader
-
init
- Specified by:
init
in interfaceSignalChannelReader
-
reset
- Specified by:
reset
in interfaceSignalChannelReader
-
read
- Specified by:
read
in interfaceSignalChannelReader
-
readSignalString
private SignalRecord readSignalString(String signalLine) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
close
public void close()- Specified by:
close
in interfaceSignalChannelReader
-