Class Slf4jReporter
java.lang.Object
org.shakespeareframework.reporting.Slf4jReporter
- All Implemented Interfaces:
LoggingReporter
,QuestionReporter
,Reporter
,TaskReporter
LoggingReporter
that logs to SLF4J.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Reports the unsuccessful finishing of the latest startedQuestion
due to an acknowledged exception.<A> void
Reports the unsuccessful finishing of the latest startedRetryableQuestion
due to an unacceptable answer.void
void
retry
(Actor actor, RetryableQuestion<?> question, Exception cause) Reports the retry of the latest startedRetryableQuestion
due to an ignored exception.<A> void
retry
(Actor actor, RetryableQuestion<A> question, A answer) Reports the retry of the latest startedRetryableQuestion
due to an unacceptable answer.void
retry
(Actor actor, RetryableTask task, Exception cause) Reports the retry of the latest startedRetryableTask
.void
Reports the start of checking the givenQuestion
.void
Reports the start of doing the givenTask
.<A> void
Reports the successful finishing of the lastest startedQuestion
.void
Reports the successful finishing of the latest startedTask
.
-
Constructor Details
-
Slf4jReporter
public Slf4jReporter()
-
-
Method Details
-
start
Description copied from interface:TaskReporter
Reports the start of doing the givenTask
.- Specified by:
start
in interfaceTaskReporter
- Parameters:
actor
- the actingActor
task
- the startedTask
-
start
Description copied from interface:QuestionReporter
Reports the start of checking the givenQuestion
.- Specified by:
start
in interfaceQuestionReporter
- Parameters:
actor
- the actingActor
question
- the startedQuestion
-
retry
Description copied from interface:TaskReporter
Reports the retry of the latest startedRetryableTask
.- Specified by:
retry
in interfaceTaskReporter
- Parameters:
actor
- the actingActor
task
- the retriedTask
cause
- the cause for the retry
-
retry
Description copied from interface:QuestionReporter
Reports the retry of the latest startedRetryableQuestion
due to an unacceptable answer.- Specified by:
retry
in interfaceQuestionReporter
- Type Parameters:
A
- the type of the given answer- Parameters:
actor
- the actingActor
question
- the retried questionanswer
- the current unacceptable answer
-
retry
Description copied from interface:QuestionReporter
Reports the retry of the latest startedRetryableQuestion
due to an ignored exception.- Specified by:
retry
in interfaceQuestionReporter
- Parameters:
actor
- the actingActor
question
- the retried questioncause
- the cause for the retry
-
success
Description copied from interface:TaskReporter
Reports the successful finishing of the latest startedTask
.- Specified by:
success
in interfaceTaskReporter
- Parameters:
actor
- the actingActor
task
- the successfully finishedTask
-
success
Description copied from interface:QuestionReporter
Reports the successful finishing of the lastest startedQuestion
.- Specified by:
success
in interfaceQuestionReporter
- Type Parameters:
A
- the type of the given answer- Parameters:
actor
- the actingActor
question
- the successfully finishedQuestion
answer
- the found answer
-
failure
Description copied from interface:TaskReporter
- Specified by:
failure
in interfaceTaskReporter
- Parameters:
actor
- the actingActor
task
- the unsuccessfully finishedTask
cause
- the cause of the failure
-
failure
Description copied from interface:QuestionReporter
Reports the unsuccessful finishing of the latest startedQuestion
due to an acknowledged exception.- Specified by:
failure
in interfaceQuestionReporter
- Parameters:
actor
- the actingActor
question
- the unsuccessfully finishedQuestion
cause
- the cause of the failure
-
failure
Description copied from interface:QuestionReporter
Reports the unsuccessful finishing of the latest startedRetryableQuestion
due to an unacceptable answer.- Specified by:
failure
in interfaceQuestionReporter
- Type Parameters:
A
- the type of the given answer- Parameters:
actor
- the actingActor
question
- the unsuccessfully finishedQuestion
answer
- the found answer
-