public class CheckpointingLogFileWriter extends Object implements LogFileWriter<KafkaLogEvent>
| Constructor and Description |
|---|
CheckpointingLogFileWriter(AvroFileWriter avroFileWriter,
CheckpointManager checkpointManager,
long flushIntervalMs) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(List<KafkaLogEvent> events)
Appends a log event to an appropriate Avro file based on LoggingContext.
|
void |
close() |
void |
flush() |
public CheckpointingLogFileWriter(AvroFileWriter avroFileWriter, CheckpointManager checkpointManager, long flushIntervalMs)
public void append(List<KafkaLogEvent> events) throws Exception
LogFileWriterappend in interface LogFileWriter<KafkaLogEvent>events - Log eventIOExceptionExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void flush()
throws IOException
flush in interface FlushableIOExceptionCopyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.