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 Summary
Fields Modifier and Type Field Description private String
id
The id of the update queue item.private @NotEmpty String
projectId
The id of theDataAcquisitionProject
which needs to be sent to da|ra.private static long
serialVersionUID
private LocalDateTime
updateStartedAt
Timestamp at which the update has been started.private String
updateStartedBy
Id of the process who started the updated. -
Constructor Summary
Constructors Constructor Description DaraUpdateQueueItem(String projectId)
Construct a dara queue item with a project id. -
Method Summary
Methods inherited from class eu.dzhw.fdz.metadatamanagement.common.domain.AbstractRdcDomainObject
getId
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
id
The id of the update queue item. It is generated by the database. -
projectId
The id of theDataAcquisitionProject
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
Timestamp at which the update has been started. -
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
Construct a dara queue item with a project id.- Parameters:
projectId
- The id of a dataPackage.
-