hudson.model
Interface ExecutorListener

All Known Implementing Classes:
AbstractCloudComputer, Computer, Hudson.MasterComputer, Jenkins.MasterComputer, SlaveComputer

public interface ExecutorListener

A listener for task related events from Executors

Since:
17-Jun-2008 18:58:12
Author:
Stephen Connolly

Method Summary
 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 without any problems by an executor.
 

Method Detail

taskAccepted

void taskAccepted(Executor executor,
                  Queue.Task task)
Called whenever a task is accepted by an executor.

Parameters:
executor - The executor.
task - The task.

taskCompleted

void taskCompleted(Executor executor,
                   Queue.Task task,
                   long durationMS)
Called whenever a task is completed without any problems by an executor.

Parameters:
executor - The executor.
task - The task.
durationMS - The number of milliseconds that the task took to complete.

taskCompletedWithProblems

void taskCompletedWithProblems(Executor executor,
                               Queue.Task task,
                               long durationMS,
                               Throwable problems)
Called whenever a task is completed without any problems by an executor.

Parameters:
executor - The executor.
task - The task.
durationMS - The number of milliseconds that the task took to complete.
problems - The exception that was thrown.


Copyright © 2004-2013. All Rights Reserved.