Class EiffelJobTable
- java.lang.Object
-
- com.axis.jenkins.plugins.eiffel.eiffelbroadcaster.EiffelJobTable
-
public final class EiffelJobTable extends Object
Maintains a table that maps a Jenkins queue ids to the id of theEiffelActivityTriggeredEvent
that was sent when the build was enqueued. This is needed to link the resultingRun
to the right trigger event.- Since:
- 2018-09-24
- Version:
- 1.0
- Author:
- Isac Holm <isac.holm@axis.com>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UUID
getAndClearEventTrigger(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.UUID
getEventTrigger(Long queueId)
Gets the id of theEiffelActivityTriggeredEvent
for a given queue id, or null of no such mapping is known.static EiffelJobTable
getInstance()
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 Detail
-
getInstance
public static EiffelJobTable getInstance()
Gets the singleton instance.
-
getEventTrigger
public UUID getEventTrigger(@NonNull Long queueId)
Gets the id of theEiffelActivityTriggeredEvent
for a given queue id, or null of no such mapping is known.
-
getAndClearEventTrigger
public UUID getAndClearEventTrigger(@NonNull 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.
-
setEventTrigger
public void setEventTrigger(@NonNull Long queueId, @NonNull UUID eiffelEventId)
Update the table with a new mapping from a queue id to the id of aEiffelActivityTriggeredEvent
.
-
-