Class Slf4jReporter
java.lang.Object
org.shakespeareframework.reporting.Slf4jReporter
- All Implemented Interfaces:
LoggingReporter,QuestionReporter,Reporter,TaskReporter
LoggingReporter that logs to SLF4J.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReports the unsuccessful finishing of the latest startedQuestiondue to an acknowledged exception.<A> voidReports the unsuccessful finishing of the latest startedRetryableQuestiondue to an unacceptable answer.voidvoidretry(Actor actor, RetryableQuestion<?> question, Exception cause) Reports the retry of the latest startedRetryableQuestiondue to an ignored exception.<A> voidretry(Actor actor, RetryableQuestion<A> question, A answer) Reports the retry of the latest startedRetryableQuestiondue to an unacceptable answer.voidretry(Actor actor, RetryableTask task, Exception cause) Reports the retry of the latest startedRetryableTask.voidReports the start of checking the givenQuestion.voidReports the start of doing the givenTask.<A> voidReports the successful finishing of the lastest startedQuestion.voidReports the successful finishing of the latest startedTask.
-
Constructor Details
-
Slf4jReporter
public Slf4jReporter()
-
-
Method Details
-
start
Description copied from interface:TaskReporterReports the start of doing the givenTask.- Specified by:
startin interfaceTaskReporter- Parameters:
actor- the actingActortask- the startedTask
-
start
Description copied from interface:QuestionReporterReports the start of checking the givenQuestion.- Specified by:
startin interfaceQuestionReporter- Parameters:
actor- the actingActorquestion- the startedQuestion
-
retry
Description copied from interface:TaskReporterReports the retry of the latest startedRetryableTask.- Specified by:
retryin interfaceTaskReporter- Parameters:
actor- the actingActortask- the retriedTaskcause- the cause for the retry
-
retry
Description copied from interface:QuestionReporterReports the retry of the latest startedRetryableQuestiondue to an unacceptable answer.- Specified by:
retryin interfaceQuestionReporter- Type Parameters:
A- the type of the given answer- Parameters:
actor- the actingActorquestion- the retried questionanswer- the current unacceptable answer
-
retry
Description copied from interface:QuestionReporterReports the retry of the latest startedRetryableQuestiondue to an ignored exception.- Specified by:
retryin interfaceQuestionReporter- Parameters:
actor- the actingActorquestion- the retried questioncause- the cause for the retry
-
success
Description copied from interface:TaskReporterReports the successful finishing of the latest startedTask.- Specified by:
successin interfaceTaskReporter- Parameters:
actor- the actingActortask- the successfully finishedTask
-
success
Description copied from interface:QuestionReporterReports the successful finishing of the lastest startedQuestion.- Specified by:
successin interfaceQuestionReporter- Type Parameters:
A- the type of the given answer- Parameters:
actor- the actingActorquestion- the successfully finishedQuestionanswer- the found answer
-
failure
Description copied from interface:TaskReporter- Specified by:
failurein interfaceTaskReporter- Parameters:
actor- the actingActortask- the unsuccessfully finishedTaskcause- the cause of the failure
-
failure
Description copied from interface:QuestionReporterReports the unsuccessful finishing of the latest startedQuestiondue to an acknowledged exception.- Specified by:
failurein interfaceQuestionReporter- Parameters:
actor- the actingActorquestion- the unsuccessfully finishedQuestioncause- the cause of the failure
-
failure
Description copied from interface:QuestionReporterReports the unsuccessful finishing of the latest startedRetryableQuestiondue to an unacceptable answer.- Specified by:
failurein interfaceQuestionReporter- Type Parameters:
A- the type of the given answer- Parameters:
actor- the actingActorquestion- the unsuccessfully finishedQuestionanswer- the found answer
-