Class MQDataProvider
- java.lang.Object
-
- com.sonymobile.jenkins.plugins.mq.mqnotifier.providers.MQDataProvider
-
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
CauseProvider
,ParameterProvider
public abstract class MQDataProvider extends Object implements ExtensionPoint
Provides data for the notifier to send.- Author:
- Tomas Westling <tomas.westling@axis.com>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description MQDataProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<MQDataProvider>
all()
Returns all MQDataProvider for this Jenkins instance.void
provideCompletedRunData(Run run, net.sf.json.JSONObject json)
Provides data for when a Run is completed.void
provideEnterWaitingQueueData(Queue.WaitingItem wi, net.sf.json.JSONObject json)
Provides data for when an item enters the queue.void
provideLeftQueueData(Queue.LeftItem li, net.sf.json.JSONObject json)
Provides data for when an item leaves the queue.void
provideStartRunData(Run run, net.sf.json.JSONObject json)
Provides data for when a Run starts.
-
-
-
Method Detail
-
provideEnterWaitingQueueData
public void provideEnterWaitingQueueData(Queue.WaitingItem wi, net.sf.json.JSONObject json)
Provides data for when an item enters the queue.- Parameters:
wi
- theQueue.WaitingItem
that has entered the queue.json
- the json object that we should add information to.
-
provideLeftQueueData
public void provideLeftQueueData(Queue.LeftItem li, net.sf.json.JSONObject json)
Provides data for when an item leaves the queue.- Parameters:
li
- theQueue.LeftItem
that has left the queue.json
- the json object that we should add information to.
-
provideStartRunData
public void provideStartRunData(Run run, net.sf.json.JSONObject json)
Provides data for when a Run starts.- Parameters:
run
- theRun
that has started running.json
- the json object that we should add information to.
-
provideCompletedRunData
public void provideCompletedRunData(Run run, net.sf.json.JSONObject json)
Provides data for when a Run is completed.- Parameters:
run
- theRun
that has completed running.json
- the json object that we should add information to.
-
all
public static List<MQDataProvider> all()
Returns all MQDataProvider for this Jenkins instance.- Returns:
- all the MQDataProviders.
-
-