public class LoggingListener extends Object implements InstrumentedContext.Listener
InstrumentedContext.Listener
that prints to an slf4j Logger.InstrumentedContext.Listener.Phase
Constructor and Description |
---|
LoggingListener() |
Modifier and Type | Method and Description |
---|---|
void |
status(TaskId task,
InstrumentedContext.Listener.Phase phase)
Called when a task starts and finished it's evaluation.
|
void |
task(Task<?> task)
Called when a
Task is discovered. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, meta
public void task(Task<?> task)
InstrumentedContext.Listener
Task
is discovered.task
in interface InstrumentedContext.Listener
task
- The discovered task objectpublic void status(TaskId task, InstrumentedContext.Listener.Phase phase)
InstrumentedContext.Listener
status
in interface InstrumentedContext.Listener
task
- The task that is being evaluatedphase
- The phase of evaluationCopyright © 2020. All rights reserved.