Class ExecutorListenerImpl
- java.lang.Object
-
- com.sonymobile.jenkins.plugins.mq.mqnotifier.ExecutorListenerImpl
-
- All Implemented Interfaces:
ExtensionPoint
,ExecutorListener
@Extension public class ExecutorListenerImpl extends Object implements ExecutorListener
A listener for task related events from executors.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ExecutorListenerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
populateCommon(net.sf.json.JSONObject json, Executor e, Queue.Task t)
Populates the json with common data for Executor and Task items.void
taskAccepted(Executor executor, Queue.Task task)
void
taskCompleted(Executor executor, Queue.Task task, long durationMS)
void
taskCompletedWithProblems(Executor executor, Queue.Task task, long durationMS, Throwable problems)
void
taskStarted(Executor executor, Queue.Task task)
-
-
-
Method Detail
-
populateCommon
public void populateCommon(net.sf.json.JSONObject json, Executor e, Queue.Task t)
Populates the json with common data for Executor and Task items.- Parameters:
json
- The resulting JSONObjecte
- executort
- task
-
taskStarted
public void taskStarted(Executor executor, Queue.Task task)
- Specified by:
taskStarted
in interfaceExecutorListener
-
taskAccepted
public void taskAccepted(Executor executor, Queue.Task task)
- Specified by:
taskAccepted
in interfaceExecutorListener
-
taskCompleted
public void taskCompleted(Executor executor, Queue.Task task, long durationMS)
- Specified by:
taskCompleted
in interfaceExecutorListener
-
taskCompletedWithProblems
public void taskCompletedWithProblems(Executor executor, Queue.Task task, long durationMS, Throwable problems)
- Specified by:
taskCompletedWithProblems
in interfaceExecutorListener
-
-