public static interface InstrumentedContext.Listener extends Closeable, Serializable
InstrumentedContext
for more details.Modifier and Type | Interface and Description |
---|---|
static class |
InstrumentedContext.Listener.Phase
The different phases of task evaluation.
|
Modifier and Type | Method and Description |
---|---|
default void |
close()
Called to close resources or connections used by the implementing class.
|
default void |
meta(TaskId task,
Map<String,String> data)
Called to report some piece of task metadata.
|
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. |
void task(Task<?> task)
Task
is discovered.task
- The discovered task objectvoid status(TaskId task, InstrumentedContext.Listener.Phase phase)
task
- The task that is being evaluatedphase
- The phase of evaluationdefault void meta(TaskId task, Map<String,String> data)
task
- The task that is being evaluateddata
- The key-value metadatadefault void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
Copyright © 2020. All rights reserved.