public class ExceptionsInTextBatchResultReporter extends Object implements BatchResultReporter<String>
BatchResultReporter that generates a text table if the result accounts for failures. Otherwise it
returns an empty String| Constructor and Description |
|---|
ExceptionsInTextBatchResultReporter() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildReport(BatchJob job,
com.mulesoft.mule.runtime.module.batch.api.BatchJobResult jobResult)
If the given
BatchJobResult accounts for errors, then a table formatted
String is returned with the following columns: Exception Type, Step name, and Count (how many times the
given exception type was found for that step). |
public String buildReport(BatchJob job, com.mulesoft.mule.runtime.module.batch.api.BatchJobResult jobResult)
BatchJobResult accounts for errors, then a table formatted
String is returned with the following columns: Exception Type, Step name, and Count (how many times the
given exception type was found for that step).
If the given BatchJobResult doesn't report errors, then an empty String is
returned insteadbuildReport in interface BatchResultReporter<String>job - the executed BatchJobjobResult - the obtained BatchJobResultStringCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.