Class DelayNotices
java.lang.Object
ecmwf.ecpds.master.plugin.http.controller.monitoring.DelayNotices
ECMWF Product Data Store (OpenECPDS) Project
The register of the delay notices, kept in the DELAY_NOTICE table of the database (see the Master's DataBaseImpl).
The status, creation and version are columns; everything else is a JSON document. References (DLY-YYYY-NNNN) are
allocated atomically by the Master, so several Monitors can register notices at the same time, and modifications use
optimistic locking (the version column) so that two operators changing the same notice cannot overwrite each other.
Notices are kept until an operator deletes them.
- Since:
- 2026-10-12
- Version:
- 8.2.0
- Author:
- Laurent Gougeon - syi@ecmwf.int, ECMWF.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic StringRegisters a new notice; the reference is allocated by the Master.static StringGets the default Bcc recipients.static StringGets the default Cc recipients.static voidDeletes a notice.Gets a notice.list(int limit) Loads the most recent notices.Loads notices created within an inclusive date range.modify(String ref, DelayNotices.Change change) Modifies a notice atomically: the notice is read, changed by the given function and written back only if nobody changed it in the meantime, otherwise the whole operation is retried on the fresh version.static voidsetDefaultBcc(String bcc) Sets the default Bcc recipients.static voidsetDefaultCc(String cc) Sets the default Cc recipients.
-
Method Details
-
list
-
list
-
get
-
create
public static String create(Map<String, Object> notice, String status, String createdBy) throws ExceptionRegisters a new notice; the reference is allocated by the Master.- Parameters:
notice- the content (the "ref" is added to it)status- the initial statuscreatedBy- the user- Returns:
- the reference
- Throws:
Exception- if it cannot be saved
-
modify
Modifies a notice atomically: the notice is read, changed by the given function and written back only if nobody changed it in the meantime, otherwise the whole operation is retried on the fresh version.- Parameters:
ref- the referencechange- the change (it may throw IllegalArgumentException to refuse it and, being possibly run again, must not have side effects)- Returns:
- the notice after the change
- Throws:
Exception- if the notice is unknown, the change is refused or it cannot be saved
-
delete
-
defaultCc
-
setDefaultCc
-
defaultBcc
-
setDefaultBcc
-