Class DaraUpdateQueueItem

java.lang.Object
eu.dzhw.fdz.metadatamanagement.common.domain.AbstractRdcDomainObject
eu.dzhw.fdz.metadatamanagement.projectmanagement.domain.DaraUpdateQueueItem
All Implemented Interfaces:
Serializable

@CompoundIndexes(@CompoundIndex(def="{updateStartedAt: 1, updateStartedBy: 1, createdDate: 1}"))
public class DaraUpdateQueueItem
extends AbstractRdcDomainObject
Publishing metadata to da|ra will be done asynchronously and repeated as long as the update queue item has not been processed successfully and has therefore been deleted.
See Also:
Serialized Form
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
      Constant Field Values
    • id

      private String id
      The id of the update queue item. It is generated by the database.
    • projectId

      @NotEmpty private @NotEmpty String projectId
      The id of the DataAcquisitionProject which needs to be sent to da|ra. Must not be empty and there must be at most one update queue item in the database for any project.
    • updateStartedAt

      private LocalDateTime updateStartedAt
      Timestamp at which the update has been started.
    • updateStartedBy

      private String updateStartedBy
      Id of the process who started the updated. Stored in order to avoid having multiple concurrent processes sending data to da|ra.
  • Constructor Details

    • DaraUpdateQueueItem

      public DaraUpdateQueueItem​(String projectId)
      Construct a dara queue item with a project id.
      Parameters:
      projectId - The id of a dataPackage.