|
ifw-daq 3.1.0
IFW Data Acquisition modules
|
Namespaces | |
| namespace | alert |
| namespace | config |
| namespace | dpm |
| namespace | error |
| namespace | fits |
| namespace | json |
| namespace | op |
| namespace | test |
| namespace | v1 |
| namespace | v2 |
Classes | |
| struct | ActionEvent |
| Event related to an action being requested or performed. More... | |
| struct | Alert |
| Describes an active Data Acquisition alert. More... | |
| struct | AlertId |
| Uniquely identfies an alert. More... | |
| class | AsyncProcess |
| Represents a subprocess as an asynchronous operation. More... | |
| class | AsyncProcessIf |
| Interface to asynchronous process. More... | |
| class | CommonDaqController |
| Implements common behaviour of OcmDaqController and DpmDaqController. More... | |
| struct | DaqContext |
| Structure carrying context needed to start a Data Acquisition and construct a Data Product Specification needed to execute merge. More... | |
| class | DaqController |
| Controls the execution of single data acquisition that ultimately result in a set of FITS keywords and/or FITS files. More... | |
| class | DaqControllerFactory |
| Abstract factory for DaqControllers. More... | |
| class | DaqControllerFactoryDefault |
| Default factory producing "real" implementations. More... | |
| struct | DaqControllerFactoryFake |
| Factory that creates mock versions. More... | |
| struct | DaqControllerMock |
| Mock version of daq::DaqController. More... | |
| class | DaqOperationAborted |
| Started operation was aborted. More... | |
| class | DaqOperationTimeout |
| Started operation timed out. More... | |
| struct | DaqReplyMock |
| class | DaqSourceError |
| Represents error in single source. More... | |
| class | DaqSourceErrors |
| Exception thrown to carry reply errors. More... | |
| class | DaqSources |
| Data acquisition sources. More... | |
| struct | DaqStatusFake |
| struct | DaqStatusMock |
| struct | DaqStopReplyMock |
| class | DictKeywordFormatter |
| Format (and validate) keyword according to loaded dictionary. More... | |
| class | DpmClient |
| Interface to DPM server. More... | |
| class | DpmClientImpl |
| class | DpmClientMock |
| Combined mock and fake of interface to DPM server. More... | |
| struct | DpmClientParams |
| Connection parameters for DPM. More... | |
| struct | DpmDaqControlAsyncMock |
| class | DpmDaqController |
| Implements behaviour from the state NotScheduled to Completed. More... | |
| class | DpPart |
| Provides information of the location and source of a FITS file or keywords produced by a data acquisition. More... | |
| struct | ErrorEvent |
| struct | EventLog |
| Represents a collection of events. More... | |
| class | EventLogObserverLogger |
| A simple daq::ObservableEventLog observer that logs observed events to provided logger. More... | |
| struct | GenericEvent |
| Represents a generic event if a more specific event is not usable. More... | |
| struct | InvalidDaqId |
| Exception indicating the DAQ id was invalid. More... | |
| struct | JsonObject |
| struct | JsonObject< E, bool > |
| struct | JsonObject< E, double > |
| struct | JsonObject< E, std::string > |
| struct | KeywordFormatterMock |
| class | LogCaptureLast |
| Logs output to logger and keeps last N lines in circular buffer for later retrival. More... | |
| struct | LogLevel |
| ly typed log4cplus::LogLevel (which is an alias to int) More... | |
| struct | MakeDpSpecV1 |
| struct | MakeDpSpecV2 |
| class | Manager |
| Manager owns DaqController and FitsController (active data acquisitions) instances and multiplexes requests to them. More... | |
| class | ManagerImpl |
Implements daq::Manager. More... | |
| struct | ManagerParams |
| Configurations parameters directly related to manager. More... | |
| struct | MetaDaqAsyncMock |
| class | MetaSource |
| Keeps relevant state to be able to communicate with a primary data source. More... | |
| struct | MockAsyncProcess |
| Combined fake/mock. More... | |
| struct | MockRsyncAsyncProcess |
| struct | MockWorkspace |
| class | ObservableEventLog |
| Stores data acquisition status and allows subscription to status changes. More... | |
| class | ObservableStatus |
| Stores data acquisition status and allows subscription to status changes. More... | |
| struct | OcmAsyncOperations |
| OCM Async operations. More... | |
| class | OcmDaqController |
Implements daq::DaqController for states responsible to be executed by OCM. More... | |
| class | PendingReplies |
| Simple class that allows you to keep track of how many replies are pending. More... | |
| class | PrimSource |
| Keeps relevant state to be able to communicate with a primary data source. More... | |
| struct | PutTimeStruct |
| struct | RecCmdsAsyncMock |
| struct | ReceiverStatus |
| Persistent status for receiver delivery. More... | |
| struct | RecStatusMock |
| class | ReplyToken |
| Token representing a not-yet-received reply. More... | |
| class | Resource |
| class | ResourceToken |
| RAII token. More... | |
| struct | Result |
| Utility class that represents a result and an error. More... | |
| struct | Result< void > |
| class | RsyncAsyncProcess |
| Represents an rsync process as an asynchronous operation. More... | |
| class | RsyncAsyncProcessIf |
More specialized version for rsync which also monitors transfer progress. More... | |
| struct | RsyncOptions |
| Options controlling rsync invocation. More... | |
| struct | RsyncProgress |
| Describes file transfer progress,. More... | |
| struct | Source |
| Simple class that holds the source and associated state. More... | |
| struct | Status |
| Non observable status object that keeps stores status of data acquisition. More... | |
| class | StatusSignal |
| Observes any status. More... | |
| struct | SubscriberMock |
| class | TestDpmClient |
| class | TestDpmDaqController |
| Fixture for daq::DaqController life cycle tests. More... | |
| class | TestFormatEsoKeyword |
| class | TestFormatKeyword |
| class | TestFormatLiteralKeyword |
| class | TestFormatValueKeyword |
| class | TestSource |
| Test fixture for source tests. More... | |
| class | Trim |
| Trim string from whitespace (' ', ' ') More... | |
| struct | UserActionEvent |
| Event directly related to user action, such as a command to do something. More... | |
| class | Workspace |
| Interface to interact with DPM workspace. More... | |
| class | WorkspaceImpl |
| Implementation of daq::Workspace. More... | |
Typedefs | |
| using | DaqReplyPtr = std::shared_ptr< daqif::DaqReply > |
| using | DpParts = std::vector< DpPart > |
| using | SourceVariant = std::variant< PrimSource, MetaSource > |
| using | Alerts = std::vector< Alert > |
Enumerations | |
| enum class | ErrorPolicy { Strict = 0 , Tolerant } |
| Error policy supported by certain operations. More... | |
| enum class | State { DAQ states handled by OCM. , NotStarted = 0 , Starting = 1 , Acquiring = 2 , Stopping = 3 , Stopped = 4 , NotScheduled = 10 , AbortingAcquiring = 2001 , Scheduled = 11 , Collecting = 12 , Merging = 13 , Releasing = 14 , AbortingMerging = 2010 , Aborted = 2000 , Completed = 3000 } |
| Observable states of the data acquisition process. More... | |
Functions | |
| std::ostream & | operator<< (std::ostream &os, AsyncProcessIf const &proc) |
Formats proc representation in the form [<pid>] <args> | |
| std::ostream & | operator<< (std::ostream &os, LogCaptureLast const &lines) |
| daqif::DaqStatus & | operator<< (daqif::DaqStatus &status, Status const &rhs) |
| Convert daq::Status -> daqif::DaqStatus by populating from rhs. | |
| Status & | operator<< (Status &status, daqif::DaqStatus const &rhs) |
| Convert daqif::DaqStatus -> daq::Status by populating from rhs. | |
| daqif::InternalDaqStatus & | operator<< (daqif::InternalDaqStatus &status, Status const &rhs) |
| Convert daq::Status -> daqif::InternalDaqStatus by populating from rhs. | |
| Status & | operator<< (Status &status, daqif::InternalDaqStatus const &rhs) |
| Convert daqif::InternalDaqStatus -> daq::Status by populating from rhs. | |
| std::filesystem::space_info & | operator<< (std::filesystem::space_info &space, daqif::StorageStatus const &rhs) |
| Populate space from rhs. | |
| daqif::StorageStatus & | operator<< (daqif::StorageStatus &storage, std::filesystem::space_info &rhs) |
| Populate storage from rhs. | |
| daqif::FullState | MakeState (State state) noexcept |
| Converts daq::State to DaqSubstate. | |
| State | MakeState (daqif::FullState state) noexcept |
| Converts the full state to daq::State. | |
| std::string_view | ToString (daqif::DaqState state) noexcept |
| std::string_view | ToString (daqif::DaqSubState state) noexcept |
| bool | operator== (DaqContext const &lhs, DaqContext const &rhs) noexcept |
| bool | operator== (DaqContext::Source const &lhs, DaqContext::Source const &rhs) noexcept |
| void | UpdateKeywords (fits::KeywordVector &out, fits::KeywordVector const &in, fits::KeywordFormatter const &fmt) |
| Updates (adds or replaces) primary HDU keywords. | |
| void | UpdateKeywords (DaqContext &ctx, fits::KeywordVector const &keywords, fits::KeywordFormatter const &fmt) |
| Updates (adds or replaces) primary HDU keywords. | |
| void | AddDpParts (DaqContext &ctx, std::vector< DpPart > const &parts) |
| std::ostream & | operator<< (std::ostream &os, DaqController const &daq) |
| std::ostream & | operator<< (std::ostream &os, DpPart const &part) noexcept |
| std::ostream & | operator<< (std::ostream &os, ErrorPolicy policy) |
| std::ostream & | operator<< (std::ostream &os, GenericEvent const &s) |
| std::ostream & | operator<< (std::ostream &os, ErrorEvent const &s) |
| template<class Clock , class Duration = typename Clock::duration> | |
| double | FromTimePoint (std::chrono::time_point< Clock, Duration > const &time) |
| template<class Clock , class Duration = typename Clock::duration> | |
| std::chrono::time_point< Clock, Duration > | ToTimePoint (double time) |
| NLOHMANN_JSON_SERIALIZE_ENUM (State, { {State::NotStarted, "NotStarted"}, {State::Starting, "Starting"}, {State::Acquiring, "Acquiring"}, {State::Stopping, "Stopping"}, {State::Stopped, "Stopped"}, {State::NotScheduled, "NotScheduled"}, {State::Scheduled, "Scheduled"}, {State::Collecting, "Collecting"}, {State::Merging, "Merging"}, {State::Releasing, "Releasing"}, {State::AbortingAcquiring, "AbortingAcquiring"}, {State::AbortingMerging, "AbortingMerging"}, {State::Aborted, "Aborted"}, {State::Completed, "Completed"}, }) NLOHMANN_JSON_SERIALIZE_ENUM(ReceiverStatus | |
| void | to_json (nlohmann::json &j, Status const &p) |
| void | to_json (nlohmann::json &j, Alert const &p) |
| void | to_json (nlohmann::json &j, ReceiverStatus const &p) |
| void | to_json (nlohmann::json &j, DaqContext const &p) |
| void | to_json (nlohmann::json &j, DaqContext::Source const &p) |
| void | to_json (nlohmann::json &j, DpPart const &p) |
| void | from_json (nlohmann::json const &j, Status &p) |
| void | from_json (nlohmann::json const &j, Alert &p) |
| void | from_json (nlohmann::json const &j, ReceiverStatus &p) |
| void | from_json (nlohmann::json const &j, DaqContext &p) |
| void | from_json (nlohmann::json const &j, DaqContext::Source &p) |
| void | from_json (nlohmann::json const &j, DpPart &p) |
| std::istream & | operator>> (std::istream &is, LogLevel &level) |
| Parse log level from string. | |
| std::ostream & | operator<< (std::ostream &os, LogLevel level) |
| Format log level to stream. | |
| json::DpSpec | MakeDataProductSpecification (DaqContext const &ctx, log4cplus::Logger &logger) |
| Creates a Data Product Specification as serialized JSON from the provided DaqContext. | |
| std::string | MakeIdCandidate (char const *instrument_id, unsigned jitter=0, std::chrono::system_clock::time_point *out=nullptr) |
| Creates a DAQ id candidate that may or may not be unique. | |
| std::optional< RsyncProgress > | ParseRsyncProgress (std::string const &line) noexcept |
| Parse progress update from rsync. | |
| std::ostream & | operator<< (std::ostream &os, State state) |
| Prints state string representation to os. | |
| bool | IsFinalState (State state) noexcept |
| Query whether state is in a final state. | |
| bool | IsAbortableState (State state) noexcept |
| Query whether state is in an abortable state. | |
| bool | IsActiveDpmState (State state) noexcept |
| Query whether state is an active (non-final) state executed by DPM. | |
| bool | IsSubsequentState (State state1, State state2) noexcept |
| Compares states and returns whether state1 occurs after state2. | |
| bool | operator== (AlertId const &lhs, AlertId const &rhs) noexcept |
| bool | operator!= (AlertId const &lhs, AlertId const &rhs) noexcept |
| std::ostream & | operator<< (std::ostream &os, AlertId const &s) |
| std::ostream & | operator<< (std::ostream &os, PutTimeStruct const &t) |
| PutTimeStruct | PutTime (std::chrono::system_clock::time_point const &time) |
| Alert | MakeAlert (std::string_view category, std::string key, std::string description) |
| Construct alert. | |
| Alert | MakeAlert (AlertId id, std::string description) |
| AlertId | MakeAlertId (std::string_view category, std::string key) |
| bool | operator== (Alert const &lhs, Alert const &rhs) noexcept |
| Comparison operator for Alert. | |
| bool | operator== (Alert const &lhs, AlertId const &rhs) noexcept |
| bool | operator== (AlertId const &lhs, Alert const &rhs) noexcept |
| bool | operator!= (Alert const &lhs, Alert const &rhs) noexcept |
| std::ostream & | operator<< (std::ostream &os, Alert const &s) |
| std::ostream & | operator<< (std::ostream &os, Alerts const &s) |
| void | SetAlert (std::vector< Alert > &alerts, Alert alert) |
| Set alert. | |
| bool | ClearAlert (std::vector< Alert > &alerts, AlertId const &alert) |
| Clear alert. | |
| bool | operator== (ReceiverStatus const &lhs, ReceiverStatus const &rhs) noexcept |
| bool | operator!= (ReceiverStatus const &lhs, ReceiverStatus const &rhs) noexcept |
| std::ostream & | operator<< (std::ostream &os, ReceiverStatus::State state) |
| bool | HasError (Status const &status) noexcept |
| std::ostream & | operator<< (std::ostream &os, Status const &s) |
| std::ostream & | operator<< (std::ostream &os, ObservableStatus const &s) |
| std::ostream & | operator<< (std::ostream &os, Trim const &trim) |
| std::string | MakeOcmName (DaqContext const &ctx) |
| json::FitsKeywordsSource | MakeOcmKeywords (DaqContext const &ctx, log4cplus::Logger &logger) |
| Make OCM keywords source. | |
| bool | IsStale (ManagerParams const ¶ms, State state, std::chrono::system_clock::time_point creation_time) |
| std::ostream & | operator<< (std::ostream &os, std::vector< Alert > const &alerts) |
| TEST (TestDaqContext, Files) | |
| MATCHER_P2 (KeywordEq, name, type, "keyword name and type equality") | |
| TEST (TestDaqContext, Keywords) | |
| TEST_F (TestDpmClient, StartMonitoringSendsRequestAndReceivesReply) | |
| TEST_F (TestDpmClient, StartMonitoringSendsRequestAndRetriesOnTimeout) | |
| TEST_F (TestDpmDaqController, StatusUpdateInNotScheduledSucceeds) | |
| TEST_F (TestDpmDaqController, StatusOverrideFromOcmAbortedToDpmMergingSucceeds) | |
| Test that DPM can override status of OCM as it is the authoratitive source of DAQ status. | |
| TEST_F (TestDpmDaqController, StartAsyncThrows) | |
| TEST_F (TestDpmDaqController, StopAsyncThrows) | |
| TEST_F (TestDpmDaqController, UpdateKeywordsThrows) | |
| TEST_F (TestDpmDaqController, ScheduleMergeAsyncSucceedsIfDpmSucceeds) | |
| TEST_F (TestDpmDaqController, ScheduleMergeAsyncSucceedsIfDpmSucceedsWithStatusSignalReceivedBeforeReply) | |
| TEST_F (TestDpmDaqController, ScheduleMergeAsyncFailsIfDpmFails) | |
| TEST_F (TestDpmDaqController, ScheduleMergeAsyncFailsIfTimeout) | |
| TEST_F (TestDpmDaqController, ScheduleMergeAsyncFailsIfAlreadyScheduled) | |
| TEST_F (TestDpmDaqController, AbortAsyncAbortImmediatelyIfNoPendingRequestsExist) | |
| TEST_F (TestDpmDaqController, AbortAsyncWithStrictPolicyAbortsIfDpmAborts) | |
| TEST_F (TestDpmDaqController, AbortAsyncWithStrictPolicyDoesNothingIfDpmAbortFails) | |
| TEST (TestJson, SerializeStatus) | |
| TEST (TestJson, DaqContext) | |
| TEST (TestJson, DaqContextWithSpecification) | |
| TEST_F (MakeDpSpecV1, DefaultDaqContextFails) | |
| TEST_F (MakeDpSpecV1, Success) | |
| TEST_F (MakeDpSpecV2, DefaultDaqContextFails) | |
| TEST_F (MakeDpSpecV2, SuccessWithMergeTarget) | |
| TEST_F (MakeDpSpecV2, SuccessWithoutMergeTarget) | |
| TEST_F (TestSource, Constructors) | |
| TEST_F (TestSource, Accessors) | |
| TEST_F (TestSource, PrimSourceConstructionFailsIfRrClientIsInvalid) | |
| TEST_F (TestSource, PrimSourceConstructionFailsIfNameIsEmpty) | |
| TEST_F (TestSource, MetaSourceConstructionFailsIfRrClientIsInvalid) | |
| TEST_F (TestSource, MetaSourceConstructionFailsIfNameIsEmpty) | |
| template<class E , class... Args> | |
| E | MakeParseException (JsonPointer const &ptr, Args &&... args) |
| template<class E , char const * > | |
| E | MakeParseException (JsonPointer const &ptr, char const *str) |
| template<class E > | |
| E | MakeValueMissingException (JsonPointer const &ptr) |
| template<class E > | |
| E | MakeWrongTypeException (JsonPointer const &ptr, char const *expected_type, char const *actual_type) |
| template<class E > | |
| E | MakeUnknownVariantException (JsonPointer const &ptr, char const *known_variants, char const *actual_variant) |
| template<class E > | |
| std::pair< Json const &, JsonPointer > | GetMember (Json const &json, char const *name, JsonPointer const &breadcrumb) |
| template<class E , class BinaryFunction > | |
| std::pair< Json const &, JsonPointer > | GetMember (Json const &json, char const *name, JsonPointer const &breadcrumb, BinaryFunction const &f) |
| template<class E > | |
| void | AssertIsObject (Json const &json, JsonPointer const &breadcrumb) |
| template<class E > | |
| void | AssertIsArray (Json const &json, JsonPointer const &breadcrumb) |
| template<class E > | |
| std::vector< std::string > | ParseArrayOfString (Json const &json, JsonPointer const &breadcrumb) |
| auto | Format (fits::KeywordVariant const &kw, core::dit::did::Record const &record) -> fits::LiteralKeyword |
| Format and validates using keyword dictionary record. | |
| TEST_F (TestFormatLiteralKeyword, StringIsWrongType) | |
| TEST_F (TestFormatLiteralKeyword, InvalidStrings) | |
| TEST_F (TestFormatLiteralKeyword, InvalidFloat) | |
| TEST_F (TestFormatLiteralKeyword, InvalidInteger) | |
| TEST_F (TestFormatLiteralKeyword, InvalidBool) | |
| TEST_F (TestFormatLiteralKeyword, ValidStrings) | |
| TEST_F (TestFormatLiteralKeyword, ValidFloatsAreReformatted) | |
| TEST_F (TestFormatLiteralKeyword, ValidFloatsWithoutFormatKeepsFormatting) | |
| TEST_F (TestFormatLiteralKeyword, ValidBool) | |
| TEST_F (TestFormatValueKeyword, ValidStrings) | |
| TEST_F (TestFormatValueKeyword, ValidBool) | |
| TEST_F (TestFormatValueKeyword, ValidFloat) | |
| TEST_F (TestFormatValueKeyword, ValidFloatNoDecimalDigits) | |
| TEST_F (TestFormatValueKeyword, ValidInteger) | |
| TEST_F (TestFormatValueKeyword, NoRecordCommentCoverage) | |
| TEST_F (TestFormatValueKeyword, StringIsWrongType) | |
| TEST_F (TestFormatValueKeyword, DoubleIsWrongType) | |
| TEST_F (TestFormatEsoKeyword, DoubleIsWrongType) | |
| TEST_F (TestFormatEsoKeyword, StringIsWrongType) | |
| TEST_F (TestFormatEsoKeyword, IntegersAreTheWrongType) | |
| TEST_F (TestFormatEsoKeyword, BoolIsTheWrongType) | |
| struct daq::Alert |
Describes an active Data Acquisition alert.
category and key make up the unique identifier of an alert.
Definition at line 95 of file status.hpp.
| Class Members | ||
|---|---|---|
| typedef system_clock | Clock | |
| typedef time_point | TimePoint | |
| Class Members | ||
|---|---|---|
| string | description | |
| AlertId | id | |
| TimePoint | timestamp | |
| struct daq::AlertId |
Uniquely identfies an alert.
Definition at line 68 of file status.hpp.
| Class Members | ||
|---|---|---|
| string | category | Standardized category. |
| string | key | Unique key for each alert. |
| struct daq::DpmClientParams |
Connection parameters for DPM.
Definition at line 93 of file dpmClient.hpp.
| Class Members | ||
|---|---|---|
| string | ps_uri | |
| string | rr_uri | |
| seconds | status_retry_interval = std::chrono::seconds(15) | |
| seconds | timeout = std::chrono::seconds(5) | |
| struct daq::LogLevel |
ly typed log4cplus::LogLevel (which is an alias to int)
Definition at line 23 of file log4cplus.hpp.
| Class Members | ||
|---|---|---|
| LogLevel | value | |
| struct daq::ManagerParams |
Configurations parameters directly related to manager.
Definition at line 46 of file manager.hpp.
| struct daq::PutTimeStruct |
Definition at line 83 of file status.hpp.
| Class Members | ||
|---|---|---|
| time_point | time | |
| struct daq::Result |
Utility class that represents a result and an error.
Definition at line 17 of file utility.hpp.
| Class Members | ||
|---|---|---|
| ErrorType | error | |
| T | result | |
| struct daq::Result< void > |
Definition at line 23 of file utility.hpp.
| Class Members | ||
|---|---|---|
| bool | error | |
| struct daq::RsyncOptions |
Options controlling rsync invocation.
Definition at line 28 of file rsyncAsyncProcess.hpp.
| struct daq::RsyncProgress |
Describes file transfer progress,.
Definition at line 59 of file rsyncAsyncProcess.hpp.
| using daq::Alerts = typedef std::vector<Alert> |
Definition at line 104 of file status.hpp.
| using daq::DaqReplyPtr = typedef std::shared_ptr<daqif::DaqReply> |
Definition at line 23 of file dpmClient.cpp.
| using daq::DpParts = typedef std::vector<DpPart> |
Definition at line 66 of file dpPart.hpp.
| using daq::SourceVariant = typedef std::variant<PrimSource, MetaSource> |
Definition at line 181 of file source.hpp.
|
strong |
Error policy supported by certain operations.
Fatal for any policy refers to the operation is aborted and reported as failed (typically using exceptions).
|
strong |
Observable states of the data acquisition process.
Final states are either Completed* or Aborted*.
life-cycle is fully sequential apart from Aborting and Aborted:
The states implemented in OCM are:
NotStarted -> Starting -> Acquiring -> Stopping -> Stopped -> <NotScheduled>
and the remaining in DPM for executing the merging (handover is done in state NotScheduled):
<NotScheduled> -> Scheduled -> Collecting -> Merging -> Releasing -> Completed*
Each state apart from Completed may transition (optionally via Aborting) to Aborted*.
Aborting -> Aborted*.
Where the state
| void daq::AddDpParts | ( | DaqContext & | ctx, |
| std::vector< DpPart > const & | parts | ||
| ) |
Definition at line 47 of file daqContext.cpp.
| void daq::AssertIsArray | ( | Json const & | json, |
| JsonPointer const & | breadcrumb | ||
| ) |
Definition at line 151 of file internalParseUtils.hpp.
| void daq::AssertIsObject | ( | Json const & | json, |
| JsonPointer const & | breadcrumb | ||
| ) |
Definition at line 144 of file internalParseUtils.hpp.
Clear alert.
| alerts | Container of alert to modify. |
| alert | to clear. If key is '*' then all alerts with matching category is cleared. |
Definition at line 31 of file status.cpp.
| auto daq::Format | ( | fits::KeywordVariant const & | kw, |
| core::dit::did::Record const & | record | ||
| ) | -> fits::LiteralKeyword |
Format and validates using keyword dictionary record.
Given the keyword the function will check:
When parsing floating point value from a LiteralKeyword there is no check that the parsed value has more or equal number of decimal places than the requested formatting.
Definition at line 293 of file dictKeywordFormatter.cpp.
| void daq::from_json | ( | nlohmann::json const & | j, |
| Alert & | p | ||
| ) |
| void daq::from_json | ( | nlohmann::json const & | j, |
| DaqContext & | p | ||
| ) |
| void daq::from_json | ( | nlohmann::json const & | j, |
| DaqContext::Source & | p | ||
| ) |
| void daq::from_json | ( | nlohmann::json const & | j, |
| DpPart & | p | ||
| ) |
| void daq::from_json | ( | nlohmann::json const & | j, |
| ReceiverStatus & | p | ||
| ) |
| void daq::from_json | ( | nlohmann::json const & | j, |
| Status & | p | ||
| ) |
| double daq::FromTimePoint | ( | std::chrono::time_point< Clock, Duration > const & | time | ) |
Definition at line 80 of file conversion.hpp.
| std::pair< Json const &, JsonPointer > daq::GetMember | ( | Json const & | json, |
| char const * | name, | ||
| JsonPointer const & | breadcrumb | ||
| ) |
Definition at line 62 of file internalParseUtils.hpp.
| std::pair< Json const &, JsonPointer > daq::GetMember | ( | Json const & | json, |
| char const * | name, | ||
| JsonPointer const & | breadcrumb, | ||
| BinaryFunction const & | f | ||
| ) |
Definition at line 71 of file internalParseUtils.hpp.
|
noexcept |
Definition at line 179 of file status.cpp.
|
noexcept |
|
noexcept |
|
noexcept |
| bool daq::IsStale | ( | ManagerParams const & | params, |
| State | state, | ||
| std::chrono::system_clock::time_point | creation_time | ||
| ) |
Definition at line 39 of file manager.cpp.
Compares states and returns whether state1 occurs after state2.
If states are the same it returns false.
This is e.g. useful to decide when an await condition is fulfillled or when to reject a wait condition because will never occur.
Definition at line 51 of file status.cpp.
| Alert daq::MakeAlert | ( | std::string_view | category, |
| std::string | key, | ||
| std::string | description | ||
| ) |
Construct alert.
Definition at line 45 of file status.cpp.
| AlertId daq::MakeAlertId | ( | std::string_view | category, |
| std::string | key | ||
| ) |
Definition at line 55 of file status.cpp.
| json::DpSpec daq::MakeDataProductSpecification | ( | DaqContext const & | ctx, |
| log4cplus::Logger & | logger | ||
| ) |
Creates a Data Product Specification as serialized JSON from the provided DaqContext.
DaqContext::specification influences:
Definition at line 282 of file makeDpSpec.cpp.
| std::string daq::MakeIdCandidate | ( | char const * | instrument_id, |
| unsigned | jitter = 0, |
||
| std::chrono::system_clock::time_point * | out = nullptr |
||
| ) |
Creates a DAQ id candidate that may or may not be unique.
| instrument_id | The instrument ID to use for the id. Only the 5 first characters will be used if the name is longer than 5. |
| jitter | Jitter is a millisecond component added to the current time. This is meant to be used to find a unique id by adding jitter until a unique id is found. |
Definition at line 56 of file manager.cpp.
| json::FitsKeywordsSource daq::MakeOcmKeywords | ( | DaqContext const & | ctx, |
| log4cplus::Logger & | logger | ||
| ) |
Make OCM keywords source.
Definition at line 27 of file makeDpSpec.cpp.
| std::string daq::MakeOcmName | ( | DaqContext const & | ctx | ) |
Definition at line 20 of file makeDpSpec.cpp.
| E daq::MakeParseException | ( | JsonPointer const & | ptr, |
| Args &&... | args | ||
| ) |
Definition at line 24 of file internalParseUtils.hpp.
| E daq::MakeParseException | ( | JsonPointer const & | ptr, |
| char const * | str | ||
| ) |
Definition at line 30 of file internalParseUtils.hpp.
|
noexcept |
Converts the full state to daq::State.
Definition at line 117 of file conversion.cpp.
|
noexcept |
Converts daq::State to DaqSubstate.
Definition at line 77 of file conversion.cpp.
| E daq::MakeUnknownVariantException | ( | JsonPointer const & | ptr, |
| char const * | known_variants, | ||
| char const * | actual_variant | ||
| ) |
Definition at line 50 of file internalParseUtils.hpp.
| E daq::MakeValueMissingException | ( | JsonPointer const & | ptr | ) |
Definition at line 35 of file internalParseUtils.hpp.
| E daq::MakeWrongTypeException | ( | JsonPointer const & | ptr, |
| char const * | expected_type, | ||
| char const * | actual_type | ||
| ) |
Definition at line 40 of file internalParseUtils.hpp.
| daq::MATCHER_P2 | ( | KeywordEq | , |
| name | , | ||
| type | , | ||
| "keyword name and type equality" | |||
| ) |
Definition at line 37 of file testDaqContext.cpp.
| daq::NLOHMANN_JSON_SERIALIZE_ENUM | ( | State | , |
| { {State::NotStarted, "NotStarted"}, {State::Starting, "Starting"}, {State::Acquiring, "Acquiring"}, {State::Stopping, "Stopping"}, {State::Stopped, "Stopped"}, {State::NotScheduled, "NotScheduled"}, {State::Scheduled, "Scheduled"}, {State::Collecting, "Collecting"}, {State::Merging, "Merging"}, {State::Releasing, "Releasing"}, {State::AbortingAcquiring, "AbortingAcquiring"}, {State::AbortingMerging, "AbortingMerging"}, {State::Aborted, "Aborted"}, {State::Completed, "Completed"}, } | |||
| ) |
Definition at line 84 of file status.cpp.
Definition at line 63 of file status.cpp.
|
noexcept |
Definition at line 127 of file status.cpp.
| daqif::DaqStatus & daq::operator<< | ( | daqif::DaqStatus & | status, |
| daq::Status const & | rhs | ||
| ) |
Convert daq::Status -> daqif::DaqStatus by populating from rhs.
Definition at line 20 of file conversion.cpp.
| daqif::InternalDaqStatus & daq::operator<< | ( | daqif::InternalDaqStatus & | status, |
| Status const & | rhs | ||
| ) |
Convert daq::Status -> daqif::InternalDaqStatus by populating from rhs.
Definition at line 49 of file conversion.cpp.
| daqif::StorageStatus & daq::operator<< | ( | daqif::StorageStatus & | storage, |
| std::filesystem::space_info & | rhs | ||
| ) |
Populate storage from rhs.
Definition at line 70 of file conversion.cpp.
Convert daqif::DaqStatus -> daq::Status by populating from rhs.
Definition at line 38 of file conversion.cpp.
Convert daqif::InternalDaqStatus -> daq::Status by populating from rhs.
Definition at line 55 of file conversion.cpp.
| std::filesystem::space_info & daq::operator<< | ( | std::filesystem::space_info & | space, |
| daqif::StorageStatus const & | rhs | ||
| ) |
Populate space from rhs.
Definition at line 62 of file conversion.cpp.
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| Alert const & | s | ||
| ) |
Definition at line 105 of file status.cpp.
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| AlertId const & | s | ||
| ) |
Definition at line 67 of file status.cpp.
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| Alerts const & | s | ||
| ) |
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| AsyncProcessIf const & | proc | ||
| ) |
Formats proc representation in the form [<pid>] <args>
| os | Ostream to format to. |
| proc | instance to format. |
Definition at line 24 of file asyncProcess.cpp.
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| DaqController const & | daq | ||
| ) |
Definition at line 120 of file daqController.cpp.
|
noexcept |
Definition at line 6 of file dpPart.cpp.
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| ErrorEvent const & | s | ||
| ) |
Definition at line 50 of file eventLog.cpp.
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| ErrorPolicy | policy | ||
| ) |
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| GenericEvent const & | s | ||
| ) |
Definition at line 44 of file eventLog.cpp.
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| LogCaptureLast const & | lines | ||
| ) |
Definition at line 174 of file asyncProcess.cpp.
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| LogLevel | level | ||
| ) |
Format log level to stream.
Definition at line 29 of file log4cplus.cpp.
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| ObservableStatus const & | s | ||
| ) |
Definition at line 386 of file status.cpp.
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| PutTimeStruct const & | t | ||
| ) |
Definition at line 88 of file status.cpp.
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| ReceiverStatus::State | state | ||
| ) |
Definition at line 131 of file status.cpp.
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| State | state | ||
| ) |
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| Status const & | s | ||
| ) |
Definition at line 183 of file status.cpp.
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| std::vector< Alert > const & | alerts | ||
| ) |
Definition at line 110 of file status.cpp.
| std::ostream & daq::operator<< | ( | std::ostream & | os, |
| Trim const & | trim | ||
| ) |
| os | output stream to output to. |
| reporter | Reporter adapter to format. |
Definition at line 35 of file log4cplus.cpp.
Comparison operator for Alert.
Definition at line 72 of file status.cpp.
Definition at line 76 of file status.cpp.
Definition at line 80 of file status.cpp.
Definition at line 59 of file status.cpp.
|
noexcept |
Definition at line 12 of file daqContext.cpp.
|
noexcept |
Definition at line 20 of file daqContext.cpp.
|
noexcept |
Definition at line 123 of file status.cpp.
| std::istream & daq::operator>> | ( | std::istream & | is, |
| LogLevel & | level | ||
| ) |
Parse log level from string.
Definition at line 17 of file log4cplus.cpp.
| std::vector< std::string > daq::ParseArrayOfString | ( | Json const & | json, |
| JsonPointer const & | breadcrumb | ||
| ) |
Definition at line 158 of file internalParseUtils.hpp.
|
noexcept |
Parse progress update from rsync.
| line | a single line in the format rsync outputs with option --info=progress2. |
Definition at line 63 of file rsyncAsyncProcess.cpp.
| PutTimeStruct daq::PutTime | ( | std::chrono::system_clock::time_point const & | time | ) |
Definition at line 101 of file status.cpp.
Set alert.
| alerts | Container of alert to modify. |
| alert | to set. |
Definition at line 20 of file status.cpp.
| daq::TEST | ( | TestDaqContext | , |
| Files | |||
| ) |
Definition at line 16 of file testDaqContext.cpp.
| daq::TEST | ( | TestDaqContext | , |
| Keywords | |||
| ) |
Definition at line 43 of file testDaqContext.cpp.
| daq::TEST | ( | TestJson | , |
| DaqContext | |||
| ) |
Definition at line 34 of file testJson.cpp.
| daq::TEST | ( | TestJson | , |
| DaqContextWithSpecification | |||
| ) |
Definition at line 52 of file testJson.cpp.
| daq::TEST | ( | TestJson | , |
| SerializeStatus | |||
| ) |
Definition at line 17 of file testJson.cpp.
| daq::TEST_F | ( | MakeDpSpecV1 | , |
| DefaultDaqContextFails | |||
| ) |
Definition at line 98 of file testMakeDpSpec.cpp.
| daq::TEST_F | ( | MakeDpSpecV1 | , |
| Success | |||
| ) |
Definition at line 103 of file testMakeDpSpec.cpp.
| daq::TEST_F | ( | MakeDpSpecV2 | , |
| DefaultDaqContextFails | |||
| ) |
Definition at line 113 of file testMakeDpSpec.cpp.
| daq::TEST_F | ( | MakeDpSpecV2 | , |
| SuccessWithMergeTarget | |||
| ) |
Definition at line 118 of file testMakeDpSpec.cpp.
| daq::TEST_F | ( | MakeDpSpecV2 | , |
| SuccessWithoutMergeTarget | |||
| ) |
Definition at line 167 of file testMakeDpSpec.cpp.
| daq::TEST_F | ( | TestDpmClient | , |
| StartMonitoringSendsRequestAndReceivesReply | |||
| ) |
Definition at line 80 of file testDpmClient.cpp.
| daq::TEST_F | ( | TestDpmClient | , |
| StartMonitoringSendsRequestAndRetriesOnTimeout | |||
| ) |
Definition at line 98 of file testDpmClient.cpp.
| daq::TEST_F | ( | TestDpmDaqController | , |
| AbortAsyncAbortImmediatelyIfNoPendingRequestsExist | |||
| ) |
Definition at line 237 of file testDpmDaqController.cpp.
| daq::TEST_F | ( | TestDpmDaqController | , |
| AbortAsyncWithStrictPolicyAbortsIfDpmAborts | |||
| ) |
Definition at line 251 of file testDpmDaqController.cpp.
| daq::TEST_F | ( | TestDpmDaqController | , |
| AbortAsyncWithStrictPolicyDoesNothingIfDpmAbortFails | |||
| ) |
Definition at line 278 of file testDpmDaqController.cpp.
| daq::TEST_F | ( | TestDpmDaqController | , |
| ScheduleMergeAsyncFailsIfAlreadyScheduled | |||
| ) |
Definition at line 222 of file testDpmDaqController.cpp.
| daq::TEST_F | ( | TestDpmDaqController | , |
| ScheduleMergeAsyncFailsIfDpmFails | |||
| ) |
Definition at line 176 of file testDpmDaqController.cpp.
| daq::TEST_F | ( | TestDpmDaqController | , |
| ScheduleMergeAsyncFailsIfTimeout | |||
| ) |
Definition at line 199 of file testDpmDaqController.cpp.
| daq::TEST_F | ( | TestDpmDaqController | , |
| ScheduleMergeAsyncSucceedsIfDpmSucceeds | |||
| ) |
Definition at line 124 of file testDpmDaqController.cpp.
| daq::TEST_F | ( | TestDpmDaqController | , |
| ScheduleMergeAsyncSucceedsIfDpmSucceedsWithStatusSignalReceivedBeforeReply | |||
| ) |
Definition at line 147 of file testDpmDaqController.cpp.
| daq::TEST_F | ( | TestDpmDaqController | , |
| StartAsyncThrows | |||
| ) |
Definition at line 102 of file testDpmDaqController.cpp.
| daq::TEST_F | ( | TestDpmDaqController | , |
| StatusOverrideFromOcmAbortedToDpmMergingSucceeds | |||
| ) |
Test that DPM can override status of OCM as it is the authoratitive source of DAQ status.
Definition at line 81 of file testDpmDaqController.cpp.
| daq::TEST_F | ( | TestDpmDaqController | , |
| StatusUpdateInNotScheduledSucceeds | |||
| ) |
Definition at line 65 of file testDpmDaqController.cpp.
| daq::TEST_F | ( | TestDpmDaqController | , |
| StopAsyncThrows | |||
| ) |
Definition at line 110 of file testDpmDaqController.cpp.
| daq::TEST_F | ( | TestDpmDaqController | , |
| UpdateKeywordsThrows | |||
| ) |
Definition at line 119 of file testDpmDaqController.cpp.
| daq::TEST_F | ( | TestFormatEsoKeyword | , |
| BoolIsTheWrongType | |||
| ) |
Definition at line 406 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatEsoKeyword | , |
| DoubleIsWrongType | |||
| ) |
Definition at line 383 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatEsoKeyword | , |
| IntegersAreTheWrongType | |||
| ) |
Definition at line 395 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatEsoKeyword | , |
| StringIsWrongType | |||
| ) |
Definition at line 389 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatLiteralKeyword | , |
| InvalidBool | |||
| ) |
Definition at line 140 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatLiteralKeyword | , |
| InvalidFloat | |||
| ) |
Definition at line 91 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatLiteralKeyword | , |
| InvalidInteger | |||
| ) |
Definition at line 112 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatLiteralKeyword | , |
| InvalidStrings | |||
| ) |
Definition at line 80 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatLiteralKeyword | , |
| StringIsWrongType | |||
| ) |
Definition at line 74 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatLiteralKeyword | , |
| ValidBool | |||
| ) |
Definition at line 279 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatLiteralKeyword | , |
| ValidFloatsAreReformatted | |||
| ) |
Definition at line 197 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatLiteralKeyword | , |
| ValidFloatsWithoutFormatKeepsFormatting | |||
| ) |
Definition at line 238 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatLiteralKeyword | , |
| ValidStrings | |||
| ) |
Definition at line 158 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatValueKeyword | , |
| DoubleIsWrongType | |||
| ) |
Definition at line 377 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatValueKeyword | , |
| NoRecordCommentCoverage | |||
| ) |
Definition at line 362 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatValueKeyword | , |
| StringIsWrongType | |||
| ) |
Definition at line 371 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatValueKeyword | , |
| ValidBool | |||
| ) |
Definition at line 314 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatValueKeyword | , |
| ValidFloat | |||
| ) |
Definition at line 322 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatValueKeyword | , |
| ValidFloatNoDecimalDigits | |||
| ) |
Definition at line 335 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatValueKeyword | , |
| ValidInteger | |||
| ) |
Definition at line 349 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestFormatValueKeyword | , |
| ValidStrings | |||
| ) |
Definition at line 306 of file testDictKeywordFormatter.cpp.
| daq::TEST_F | ( | TestSource | , |
| Accessors | |||
| ) |
Definition at line 51 of file testSource.cpp.
| daq::TEST_F | ( | TestSource | , |
| Constructors | |||
| ) |
Definition at line 34 of file testSource.cpp.
| daq::TEST_F | ( | TestSource | , |
| MetaSourceConstructionFailsIfNameIsEmpty | |||
| ) |
Definition at line 77 of file testSource.cpp.
| daq::TEST_F | ( | TestSource | , |
| MetaSourceConstructionFailsIfRrClientIsInvalid | |||
| ) |
Definition at line 73 of file testSource.cpp.
| daq::TEST_F | ( | TestSource | , |
| PrimSourceConstructionFailsIfNameIsEmpty | |||
| ) |
Definition at line 68 of file testSource.cpp.
| daq::TEST_F | ( | TestSource | , |
| PrimSourceConstructionFailsIfRrClientIsInvalid | |||
| ) |
Definition at line 64 of file testSource.cpp.
| void daq::to_json | ( | nlohmann::json & | j, |
| DaqContext const & | p | ||
| ) |
| void daq::to_json | ( | nlohmann::json & | j, |
| DaqContext::Source const & | p | ||
| ) |
| void daq::to_json | ( | nlohmann::json & | j, |
| ReceiverStatus const & | p | ||
| ) |
|
noexcept |
Definition at line 160 of file conversion.cpp.
|
noexcept |
Definition at line 176 of file conversion.cpp.
| std::chrono::time_point< Clock, Duration > daq::ToTimePoint | ( | double | time | ) |
Definition at line 86 of file conversion.hpp.
| void daq::UpdateKeywords | ( | DaqContext & | ctx, |
| fits::KeywordVector const & | keywords, | ||
| fits::KeywordFormatter const & | fmt | ||
| ) |
Updates (adds or replaces) primary HDU keywords.
| ctx | Context to modify |
| keywords | Keywords to format and update from. |
| fmt | Keyword formatter. |
| fits::UnknownKeyword | if keyword is unknown. |
| std::invalid_argument | if an invalid keyword is encountered. |
Definition at line 41 of file daqContext.cpp.
| void daq::UpdateKeywords | ( | fits::KeywordVector & | out, |
| fits::KeywordVector const & | in, | ||
| fits::KeywordFormatter const & | fmt | ||
| ) |
Updates (adds or replaces) primary HDU keywords.
| out | Keywords to update to. |
| in | Keywords to format and update from. |
| fmt | Keyword formatter. |
| fits::UnknownKeyword | if keyword is unknown. |
| std::invalid_argument | if an invalid keyword is encountered. |
Definition at line 24 of file daqContext.cpp.