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
IOException
public void subscribe(IndividualTestEvent.Finished event)
protected final void scheduleWrite(String line)
public void close()
BuckEventListener
close
in interface BuckEventListener
close
in interface Closeable
close
in interface AutoCloseable