Class Slf4jReporter
- java.lang.Object
-
- org.shakespeareframework.reporting.Slf4jReporter
-
- All Implemented Interfaces:
LoggingReporter
,QuestionReporter
,Reporter
,TaskReporter
public class Slf4jReporter extends java.lang.Object implements LoggingReporter
-
-
Constructor Summary
Constructors Constructor Description Slf4jReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
failure(Actor actor, Question<?> question, java.lang.Exception cause)
Reports the unsuccessful finishing of the latest startedQuestion
due to an acknowledged exception.<A> void
failure(Actor actor, Question<A> question, A answer)
Reports the unsuccessful finishing of the latest startedRetryableQuestion
due to an unacceptable answer.void
failure(Actor actor, Task task, java.lang.Exception cause)
void
retry(Actor actor, RetryableQuestion<?> question, java.lang.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, java.lang.Exception cause)
Reports the retry of the latest startedRetryableTask
.void
start(Actor actor, Question<?> question)
Reports the start of checking the givenQuestion
.void
start(Actor actor, Task task)
Reports the start of doing the givenTask
.<A> void
success(Actor actor, Question<A> question, A answer)
Reports the successful finishing of the lastest startedQuestion
.void
success(Actor actor, Task task)
Reports the successful finishing of the latest startedTask
.
-
-
-
Method Detail
-
start
public void start(Actor actor, Task task)
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
public void start(Actor actor, Question<?> question)
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
public void retry(Actor actor, RetryableTask task, java.lang.Exception cause)
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
public <A> void retry(Actor actor, RetryableQuestion<A> question, A answer)
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
public void retry(Actor actor, RetryableQuestion<?> question, java.lang.Exception cause)
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
public void success(Actor actor, Task task)
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
public <A> void success(Actor actor, Question<A> question, A answer)
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
public void failure(Actor actor, Task task, java.lang.Exception cause)
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
public void failure(Actor actor, Question<?> question, java.lang.Exception cause)
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
public <A> void failure(Actor actor, Question<A> question, A answer)
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
-
-