public class FileSerializationEventBusListener extends Object
BuckEventListener that subscribes to IndividualTestEvent.Finished events and
serialize them to outputFile in json-format.| Constructor and Description |
|---|
FileSerializationEventBusListener(Path outputPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Cleanup, output any trace data collected to the backing store.
|
protected void |
scheduleWrite(String line) |
void |
subscribe(IndividualTestEvent.Finished event) |
protected final Logger LOG
public FileSerializationEventBusListener(Path outputPath) throws IOException
IOExceptionpublic void subscribe(IndividualTestEvent.Finished event)
protected final void scheduleWrite(String line)
public void close()
BuckEventListenerclose in interface BuckEventListenerclose in interface Closeableclose in interface AutoCloseable