Class QueueListenerImpl
- java.lang.Object
-
- hudson.model.queue.QueueListener
-
- com.sonymobile.jenkins.plugins.mq.mqnotifier.QueueListenerImpl
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class QueueListenerImpl extends QueueListener
Receives notifications about when tasks are submitted to the queue and publishes messages on configured MQ server.- Author:
- Tomas Westling <tomas.westling@sonymobile.com>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description QueueListenerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onEnterWaiting(Queue.WaitingItem wi)
void
onLeft(Queue.LeftItem li)
void
populateCommon(net.sf.json.JSONObject json, Queue.Item i)
Populates the json with common data for Queue items.-
Methods inherited from class hudson.model.queue.QueueListener
all, onEnterBlocked, onEnterBuildable, onLeaveBlocked, onLeaveBuildable, onLeaveWaiting
-
-
-
-
Method Detail
-
populateCommon
public void populateCommon(net.sf.json.JSONObject json, Queue.Item i)
Populates the json with common data for Queue items.- Parameters:
json
- The resulting JSONObjecti
- queue item
-
onEnterWaiting
public void onEnterWaiting(Queue.WaitingItem wi)
- Overrides:
onEnterWaiting
in classQueueListener
-
onLeft
public void onLeft(Queue.LeftItem li)
- Overrides:
onLeft
in classQueueListener
-
-