public interface ExecutorListener
Computer.getRetentionStrategy()
or SlaveComputer#getLauncher
may implement this interface.Modifier and Type | Method and Description |
---|---|
void |
taskAccepted(Executor executor,
Queue.Task task)
Called whenever a task is accepted by an executor.
|
void |
taskCompleted(Executor executor,
Queue.Task task,
long durationMS)
Called whenever a task is completed without any problems by an executor.
|
void |
taskCompletedWithProblems(Executor executor,
Queue.Task task,
long durationMS,
Throwable problems)
Called whenever a task is completed with some problems by an executor.
|
void taskAccepted(Executor executor, Queue.Task task)
executor
- The executor.task
- The task.void taskCompleted(Executor executor, Queue.Task task, long durationMS)
executor
- The executor.task
- The task.durationMS
- The number of milliseconds that the task took to complete.void taskCompletedWithProblems(Executor executor, Queue.Task task, long durationMS, Throwable problems)
executor
- The executor.task
- The task.durationMS
- The number of milliseconds that the task took to complete.problems
- The exception that was thrown.Copyright © 2017. All rights reserved.