Class EiffelJobTable
java.lang.Object
com.axis.jenkins.plugins.eiffel.eiffelbroadcaster.EiffelJobTable
Maintains a table that maps a Jenkins queue ids to the id of the
EiffelActivityTriggeredEvent
that was sent when the build was enqueued. This is needed to link the resulting
Run
to the right trigger event.- Since:
- 2018-09-24
- Version:
- 1.0
- Author:
- Isac Holm <isac.holm@axis.com>
-
Method Summary
Modifier and TypeMethodDescriptiongetAndClearEventTrigger
(Long queueId) Gets the id of theEiffelActivityTriggeredEvent
for a given queue id, or null if no such mapping is known, and immediately clears that entry from the table.getEventTrigger
(Long queueId) Gets the id of theEiffelActivityTriggeredEvent
for a given queue id, or null of no such mapping is known.static EiffelJobTable
Gets the singleton instance.void
setEventTrigger
(Long queueId, UUID eiffelEventId) Update the table with a new mapping from a queue id to the id of aEiffelActivityTriggeredEvent
.
-
Method Details
-
getInstance
Gets the singleton instance. -
getEventTrigger
Gets the id of theEiffelActivityTriggeredEvent
for a given queue id, or null of no such mapping is known. -
getAndClearEventTrigger
Gets the id of theEiffelActivityTriggeredEvent
for a given queue id, or null if no such mapping is known, and immediately clears that entry from the table. -
setEventTrigger
Update the table with a new mapping from a queue id to the id of aEiffelActivityTriggeredEvent
.
-