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 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 Details

    • getInstance

      public static EiffelJobTable getInstance()
      Gets the singleton instance.
    • getEventTrigger

      public UUID getEventTrigger(@NonNull Long queueId)
      Gets the id of the EiffelActivityTriggeredEvent for a given queue id, or null of no such mapping is known.
    • getAndClearEventTrigger

      public UUID getAndClearEventTrigger(@NonNull Long queueId)
      Gets the id of the EiffelActivityTriggeredEvent 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 a EiffelActivityTriggeredEvent.