Class ParameterProvider
- java.lang.Object
-
- com.sonymobile.jenkins.plugins.mq.mqnotifier.providers.MQDataProvider
-
- com.sonymobile.jenkins.plugins.mq.mqnotifier.providers.ParameterProvider
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class ParameterProvider extends MQDataProvider
Provides the notifier with build parameters.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_PARAMETERS
Params Key.
-
Constructor Summary
Constructors Constructor Description ParameterProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class com.sonymobile.jenkins.plugins.mq.mqnotifier.providers.MQDataProvider
all, provideTaskAcceptedData, provideTaskCompletedData, provideTaskCompletedWithProblemsData, provideTaskStartedData
-
-
-
-
Field Detail
-
KEY_PARAMETERS
public static final String KEY_PARAMETERS
Params Key.- See Also:
- Constant Field Values
-
-
Method Detail
-
provideStartRunData
public void provideStartRunData(Run run, net.sf.json.JSONObject json)
Description copied from class:MQDataProvider
Provides data for when a Run starts.- Overrides:
provideStartRunData
in classMQDataProvider
- 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)
Description copied from class:MQDataProvider
Provides data for when a Run is completed.- Overrides:
provideCompletedRunData
in classMQDataProvider
- Parameters:
run
- theRun
that has completed running.json
- the json object that we should add information to.
-
provideEnterWaitingQueueData
public void provideEnterWaitingQueueData(Queue.WaitingItem wi, net.sf.json.JSONObject json)
Description copied from class:MQDataProvider
Provides data for when an item enters the queue.- Overrides:
provideEnterWaitingQueueData
in classMQDataProvider
- 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)
Description copied from class:MQDataProvider
Provides data for when an item leaves the queue.- Overrides:
provideLeftQueueData
in classMQDataProvider
- Parameters:
li
- theQueue.LeftItem
that has left the queue.json
- the json object that we should add information to.
-
-