public class FileEventConsumer extends Object implements EventConsumer
| Modifier and Type | Method and Description |
|---|---|
void |
applyDDL(Sequenced<DDLEvent> event) |
void |
applyDML(Sequenced<DMLEvent> event) |
static List<? extends ChangeEvent> |
readEvents(File filePath,
int instanceId)
Read events that were consumed by the target.
|
void |
start() |
void |
stop() |
public void start()
start in interface EventConsumerpublic void stop()
stop in interface EventConsumerpublic void applyDDL(Sequenced<DDLEvent> event) throws IOException
applyDDL in interface EventConsumerIOExceptionpublic void applyDML(Sequenced<DMLEvent> event) throws IOException
applyDML in interface EventConsumerIOExceptionpublic static List<? extends ChangeEvent> readEvents(File filePath, int instanceId) throws IOException
filePath - path to read events frominstanceId - instance id that wrote the eventsIOException - if there was an issue reading the fileCopyright © 2020 CDAP Licensed under the Apache License, Version 2.0.