Package ubic.gemma.cli.batch
Class LoggingBatchTaskSummaryWriter
java.lang.Object
ubic.gemma.cli.batch.LoggingBatchTaskSummaryWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,BatchTaskSummaryWriter
Task summary writer that logs the result of a batch task to a logger.
- Author:
- poirigui
-
Constructor Summary
ConstructorsConstructorDescriptionLoggingBatchTaskSummaryWriter(String logCategory) LoggingBatchTaskSummaryWriter(String logCategory, boolean useDebugForSuccess) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the writer and write any remaining results.voidwrite(BatchTaskProcessingResult result) Write the result of a batch task.
-
Constructor Details
-
LoggingBatchTaskSummaryWriter
-
LoggingBatchTaskSummaryWriter
- Parameters:
logCategory- log category to use to report batch processing resultsuseDebugForSuccess- if true, success are reported as debug logs
-
-
Method Details
-
write
Description copied from interface:BatchTaskSummaryWriterWrite the result of a batch task.The actual writing may be deferred until the writer is closed in
BatchTaskSummaryWriter.close().- Specified by:
writein interfaceBatchTaskSummaryWriter- Throws:
IOException
-
close
Description copied from interface:BatchTaskSummaryWriterClose the writer and write any remaining results.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceBatchTaskSummaryWriter- Specified by:
closein interfaceCloseable- Throws:
IOException
-