ifw-daq
2.1.0-pre1
IFW Data Acquisition modules
|
Namespaces | |
alert | |
config | |
dpm | |
error | |
fits | |
op | |
test | |
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 | DaqStatusMock |
struct | DaqStopReplyMock |
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... | |
struct | DpPart |
Provides information of the location and origin of a FITS file or keywords produced by a data acquisition. More... | |
struct | DpSpec |
Close representation of the JSON structure but with stronger types. More... | |
struct | DpSpecError |
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 | LogLevel |
ly typed log4cplus::LogLevel (which is an alias to int) More... | |
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... | |
struct | Origin |
Describes parsed origin string into its components "host" and "path". 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 | RecCmdsAsyncMock |
struct | RecStatusMock |
class | ReplyToken |
Token representing a not-yet-received reply. 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... | |
class | TestDpmDaqController |
Fixture for daq::DaqController life cycle tests. More... | |
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 | json = nlohmann::json |
Enumerations | |
enum | ErrorPolicy { ErrorPolicy::Strict = 0, ErrorPolicy::Tolerant } |
Error policy supported by certain operations. More... | |
enum | State { State::DAQ states handled by OCM., State::NotStarted = 0, State::Starting = 1, State::Acquiring = 2, State::Stopping = 3, State::Stopped = 4, State::NotScheduled = 10, State::AbortingAcquiring = 2001, State::Scheduled = 11, State::Transferring = 12, State::Merging = 13, State::Releasing = 14, State::AbortingMerging = 2010, State::Aborted = 2000, State::Completed = 3000 } |
Observable states of the data acquisition process. More... | |
Functions | |
daqif::DaqStatus & | operator<< (daqif::DaqStatus &status, Status const &rhs) |
Convert daq::Status -> daqif::DaqStatus by populating from rhs. More... | |
Status & | operator<< (Status &status, daqif::DaqStatus const &rhs) |
Convert daqif::DaqStatus -> daq::Status by populating from rhs. More... | |
std::filesystem::space_info & | operator<< (std::filesystem::space_info &space, daqif::StorageStatus const &rhs) |
Populate space from rhs. More... | |
daqif::StorageStatus & | operator<< (daqif::StorageStatus &storage, std::filesystem::space_info &rhs) |
Populate storage from rhs. More... | |
daqif::FullState | MakeState (State state) noexcept |
Converts daq::State to DaqSubstate. More... | |
State | MakeState (daqif::FullState state) |
Converts DaqSubstate to daq::State. More... | |
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 (DaqContext &ctx, fits::KeywordVector const &keywords) |
Updates (adds or replaces) primary HDU keywords. More... | |
void | AddDpParts (DaqContext &ctx, std::vector< DpPart > const &parts) |
std::ostream & | operator<< (std::ostream &os, DaqController const &daq) |
nlohmann::json | CreateDataProductSpecification (DaqContext const &ctx, log4cplus::Logger &logger) |
Creates a Data Product Specification as serialized JSON from the provided DaqContext. More... | |
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) |
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::Transferring, "Transferring"}, {State::Merging, "Merging"}, {State::Releasing, "Releasing"}, {State::AbortingAcquiring, "AbortingAcquiring"}, {State::AbortingMerging, "AbortingMerging"}, {State::Aborted, "Aborted"}, {State::Completed, "Completed"}, }) void to_json(nlohmann void | to_json (nlohmann::json &j, Alert 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, 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. More... | |
std::ostream & | operator<< (std::ostream &os, LogLevel level) |
Format log level to stream. More... | |
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. More... | |
std::optional< RsyncProgress > | ParseRsyncProgress (std::string const &line) noexcept |
Parse progress update from rsync. More... | |
std::ostream & | operator<< (std::ostream &os, State state) |
Prints state string representation to os. More... | |
bool | IsFinalState (State state) noexcept |
Query whether state is in a final state. More... | |
bool | IsSubsequentState (State state1, State state2) noexcept |
Compares states and returns whether state1 occurs after state2. More... | |
bool | operator== (AlertId const &lhs, AlertId const &rhs) noexcept |
bool | operator!= (AlertId const &lhs, AlertId const &rhs) noexcept |
Alert | MakeAlert (std::string_view category, std::string key, std::string description) |
Construct alert. More... | |
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. More... | |
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 |
void | SetAlert (std::vector< Alert > &alerts, Alert alert) |
Set alert. More... | |
bool | ClearAlert (std::vector< Alert > &alerts, AlertId const &alert) |
Clear alert. More... | |
std::ostream & | operator<< (std::ostream &os, Status const &s) |
std::ostream & | operator<< (std::ostream &os, ObservableStatus const &s) |
void | to_json (json &j, Status const &p) |
std::ostream & | operator<< (std::ostream &os, Trim const &trim) |
bool | IsStale (ManagerParams const ¶ms, State state, std::chrono::system_clock::time_point creation_time) |
TEST (TestDaqContext, Files) | |
TEST (TestDaqContext, Keywords) | |
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. More... | |
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_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... Args> | |
DpSpecError | MakeParseException (JsonPointer const &ptr, Args &&... args) |
template<char const * > | |
DpSpecError | MakeParseException (JsonPointer const &ptr, char const *str) |
DpSpecError | MakeValueMissingException (JsonPointer const &ptr) |
DpSpecError | MakeWrongTypeException (JsonPointer const &ptr, char const *expected_type, char const *actual_type) |
DpSpecError | MakeUnknownVariantException (JsonPointer const &ptr, char const *known_variants, char const *actual_variant) |
template<class T > | |
T | GetMember (Json const &json, char const *name, JsonPointer const &breadcrumb, bool allow_empty=true) |
template<> | |
std::string | GetMember< std::string > (Json const &json, char const *name, JsonPointer const &breadcrumb, bool allow_empty) |
void | AssertIsObject (Json const &json, JsonPointer const &breadcrumb) |
void | AssertIsArray (Json const &json, JsonPointer const &breadcrumb) |
std::vector< std::string > | ParseArrayOfString (Json const &json, JsonPointer const &breadcrumb) |
DpSpec::Filter | ParseFilter (Json const &json, JsonPointer const &breadcrumb) |
DpSpec::Transform | ParseTransform (Json const &json, JsonPointer const &breadcrumb) |
DpSpec::KeywordRules | ParseKeywordRules (Json const &json, JsonPointer const &breadcrumb) |
DpSpec::SourceFitsKeywords | ParseSourceFitsKeywords (Json const &json, JsonPointer const &breadcrumb) |
DpSpec::SourceFitsFile | ParseSourceFitsFile (Json const &json, JsonPointer const &breadcrumb) |
DpSpec::Target | ParseTarget (Json const &json, JsonPointer const &breadcrumb) |
DpSpec::SourceTypes | ParseSource (Json const &json, JsonPointer const &breadcrumb) |
DpSpec | ParseDpSpec (nlohmann::json const &spec) |
Parse JSON to construct the DpSpec structure. More... | |
Origin | ParseSourceOrigin (std::string const &origin) |
Parse origin string from DpSpec into component parts. More... | |
struct daq::Alert |
Describes an active Data Acquisition alert.
category and key make up the unique identifier of an alert.
Definition at line 71 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 52 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 74 of file dpmClient.hpp.
Class Members | ||
---|---|---|
string | ps_uri | |
string | rr_uri | |
seconds | timeout |
struct daq::DpSpec |
Close representation of the JSON structure but with stronger types.
Definition at line 28 of file dpSpec.hpp.
Class Members | ||
---|---|---|
typedef variant< Filter, Transform > | KeywordRule | |
typedef vector< KeywordRule > | KeywordRules | |
typedef variant< SourceFitsKeywords, SourceFitsFile > | SourceTypes |
Class Members | ||
---|---|---|
string | id | |
vector< SourceTypes > | sources | |
Target | target |
struct daq::LogLevel |
ly typed log4cplus::LogLevel (which is an alias to int)
Definition at line 22 of file log4cplus.hpp.
Class Members | ||
---|---|---|
LogLevel | value |
struct daq::ManagerParams |
Configurations parameters directly related to manager.
Definition at line 35 of file manager.hpp.
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 55 of file rsyncAsyncProcess.hpp.
using daq::DaqReplyPtr = typedef std::shared_ptr<daqif::DaqReply> |
Definition at line 19 of file dpmClient.cpp.
using daq::DpParts = typedef std::vector<DpPart> |
Definition at line 49 of file dpPart.hpp.
using daq::SourceVariant = typedef std::variant<PrimSource, MetaSource> |
Definition at line 179 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 -> Transferring -> 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 35 of file daqContext.cpp.
void daq::AssertIsArray | ( | Json const & | json, |
JsonPointer const & | breadcrumb | ||
) |
Definition at line 84 of file dpSpec.cpp.
void daq::AssertIsObject | ( | Json const & | json, |
JsonPointer const & | breadcrumb | ||
) |
Definition at line 78 of file dpSpec.cpp.
Clear alert.
alerts | Container of alert to modify. |
alert | to set. |
Definition at line 20 of file status.cpp.
nlohmann::json daq::CreateDataProductSpecification | ( | DaqContext const & | ctx, |
log4cplus::Logger & | logger | ||
) |
Creates a Data Product Specification as serialized JSON from the provided DaqContext.
Definition at line 917 of file daqController.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, |
Status & | p | ||
) |
T daq::GetMember | ( | Json const & | json, |
char const * | name, | ||
JsonPointer const & | breadcrumb, | ||
bool | allow_empty = true |
||
) |
std::string daq::GetMember< std::string > | ( | Json const & | json, |
char const * | name, | ||
JsonPointer const & | breadcrumb, | ||
bool | allow_empty | ||
) |
Definition at line 60 of file dpSpec.cpp.
|
noexcept |
bool daq::IsStale | ( | ManagerParams const & | params, |
State | state, | ||
std::chrono::system_clock::time_point | creation_time | ||
) |
Definition at line 29 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 35 of file status.cpp.
Alert daq::MakeAlert | ( | std::string_view | category, |
std::string | key, | ||
std::string | description | ||
) |
Construct alert.
Definition at line 29 of file status.cpp.
AlertId daq::MakeAlertId | ( | std::string_view | category, |
std::string | key | ||
) |
Definition at line 39 of file status.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 46 of file manager.cpp.
DpSpecError daq::MakeParseException | ( | JsonPointer const & | ptr, |
Args &&... | args | ||
) |
Definition at line 19 of file dpSpec.cpp.
DpSpecError daq::MakeParseException | ( | JsonPointer const & | ptr, |
char const * | str | ||
) |
Definition at line 26 of file dpSpec.cpp.
daq::State daq::MakeState | ( | daqif::FullState | state | ) |
Converts DaqSubstate to daq::State.
This assumes daqif::DaqState is Acquiring.
std::invalid_argument | if state is not convertible. |
Definition at line 103 of file conversion.cpp.
|
noexcept |
Converts daq::State to DaqSubstate.
Definition at line 63 of file conversion.cpp.
DpSpecError daq::MakeUnknownVariantException | ( | JsonPointer const & | ptr, |
char const * | known_variants, | ||
char const * | actual_variant | ||
) |
Definition at line 43 of file dpSpec.cpp.
DpSpecError daq::MakeValueMissingException | ( | JsonPointer const & | ptr | ) |
Definition at line 30 of file dpSpec.cpp.
DpSpecError daq::MakeWrongTypeException | ( | JsonPointer const & | ptr, |
char const * | expected_type, | ||
char const * | actual_type | ||
) |
Definition at line 35 of file dpSpec.cpp.
Definition at line 63 of file status.cpp.
Definition at line 47 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 18 of file conversion.cpp.
daqif::StorageStatus & daq::operator<< | ( | daqif::StorageStatus & | storage, |
std::filesystem::space_info & | rhs | ||
) |
Populate storage from rhs.
Definition at line 56 of file conversion.cpp.
Convert daqif::DaqStatus -> daq::Status by populating from rhs.
Definition at line 36 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 48 of file conversion.cpp.
std::ostream & daq::operator<< | ( | std::ostream & | os, |
DaqController const & | daq | ||
) |
Definition at line 109 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 48 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 42 of file eventLog.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 255 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 95 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 36 of file log4cplus.cpp.
Comparison operator for Alert.
Definition at line 51 of file status.cpp.
Definition at line 55 of file status.cpp.
Definition at line 59 of file status.cpp.
Definition at line 43 of file status.cpp.
|
noexcept |
Definition at line 12 of file daqContext.cpp.
|
noexcept |
Definition at line 24 of file daqContext.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 90 of file dpSpec.cpp.
DpSpec daq::ParseDpSpec | ( | nlohmann::json const & | spec | ) |
Parse JSON to construct the DpSpec structure.
spec | Data Product Specification to parse. |
DpSpecError | if JSON structure is invalid. Exception may be nested. |
Definition at line 211 of file dpSpec.cpp.
DpSpec::Filter daq::ParseFilter | ( | Json const & | json, |
JsonPointer const & | breadcrumb | ||
) |
Definition at line 108 of file dpSpec.cpp.
DpSpec::KeywordRules daq::ParseKeywordRules | ( | Json const & | json, |
JsonPointer const & | breadcrumb | ||
) |
Definition at line 132 of file dpSpec.cpp.
|
noexcept |
Parse progress update from rsync.
line | a single line in the format rsync outputs with option --info=progress2 . |
Definition at line 60 of file rsyncAsyncProcess.cpp.
DpSpec::SourceTypes daq::ParseSource | ( | Json const & | json, |
JsonPointer const & | breadcrumb | ||
) |
Definition at line 198 of file dpSpec.cpp.
DpSpec::SourceFitsFile daq::ParseSourceFitsFile | ( | Json const & | json, |
JsonPointer const & | breadcrumb | ||
) |
Definition at line 173 of file dpSpec.cpp.
DpSpec::SourceFitsKeywords daq::ParseSourceFitsKeywords | ( | Json const & | json, |
JsonPointer const & | breadcrumb | ||
) |
Definition at line 152 of file dpSpec.cpp.
Origin daq::ParseSourceOrigin | ( | std::string const & | origin | ) |
Parse origin string from DpSpec into component parts.
Origin string use the format host:path
, e.g. 10.0.0.1:/path/to/file
with host being optional.
Definition at line 251 of file dpSpec.cpp.
DpSpec::Target daq::ParseTarget | ( | Json const & | json, |
JsonPointer const & | breadcrumb | ||
) |
Definition at line 185 of file dpSpec.cpp.
DpSpec::Transform daq::ParseTransform | ( | Json const & | json, |
JsonPointer const & | breadcrumb | ||
) |
Definition at line 119 of file dpSpec.cpp.
Set alert.
alerts | Container of alert to modify. |
alert | to set. |
Definition at line 9 of file status.cpp.
daq::TEST | ( | TestDaqContext | , |
Files | |||
) |
Definition at line 16 of file testDaqContext.cpp.
daq::TEST | ( | TestDaqContext | , |
Keywords | |||
) |
Definition at line 37 of file testDaqContext.cpp.
daq::TEST | ( | TestJson | , |
DaqContext | |||
) |
Definition at line 31 of file testJson.cpp.
daq::TEST | ( | TestJson | , |
SerializeStatus | |||
) |
Definition at line 17 of file testJson.cpp.
daq::TEST_F | ( | TestDpmDaqController | , |
AbortAsyncAbortImmediatelyIfNoPendingRequestsExist | |||
) |
Definition at line 228 of file testDpmDaqController.cpp.
daq::TEST_F | ( | TestDpmDaqController | , |
AbortAsyncWithStrictPolicyAbortsIfDpmAborts | |||
) |
Definition at line 242 of file testDpmDaqController.cpp.
daq::TEST_F | ( | TestDpmDaqController | , |
AbortAsyncWithStrictPolicyDoesNothingIfDpmAbortFails | |||
) |
Definition at line 269 of file testDpmDaqController.cpp.
daq::TEST_F | ( | TestDpmDaqController | , |
ScheduleMergeAsyncFailsIfAlreadyScheduled | |||
) |
Definition at line 213 of file testDpmDaqController.cpp.
daq::TEST_F | ( | TestDpmDaqController | , |
ScheduleMergeAsyncFailsIfDpmFails | |||
) |
Definition at line 167 of file testDpmDaqController.cpp.
daq::TEST_F | ( | TestDpmDaqController | , |
ScheduleMergeAsyncFailsIfTimeout | |||
) |
Definition at line 190 of file testDpmDaqController.cpp.
daq::TEST_F | ( | TestDpmDaqController | , |
ScheduleMergeAsyncSucceedsIfDpmSucceeds | |||
) |
Definition at line 115 of file testDpmDaqController.cpp.
daq::TEST_F | ( | TestDpmDaqController | , |
ScheduleMergeAsyncSucceedsIfDpmSucceedsWithStatusSignalReceivedBeforeReply | |||
) |
Definition at line 138 of file testDpmDaqController.cpp.
daq::TEST_F | ( | TestDpmDaqController | , |
StartAsyncThrows | |||
) |
Definition at line 92 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 76 of file testDpmDaqController.cpp.
daq::TEST_F | ( | TestDpmDaqController | , |
StatusUpdateInNotScheduledSucceeds | |||
) |
Definition at line 60 of file testDpmDaqController.cpp.
daq::TEST_F | ( | TestDpmDaqController | , |
StopAsyncThrows | |||
) |
Definition at line 100 of file testDpmDaqController.cpp.
daq::TEST_F | ( | TestDpmDaqController | , |
UpdateKeywordsThrows | |||
) |
Definition at line 109 of file testDpmDaqController.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 | ||
) |
|
noexcept |
Definition at line 142 of file conversion.cpp.
|
noexcept |
Definition at line 158 of file conversion.cpp.
void daq::UpdateKeywords | ( | DaqContext & | ctx, |
fits::KeywordVector const & | keywords | ||
) |
Updates (adds or replaces) primary HDU keywords.
ctx | Context to modify |
keywords | Keywords to update with. |
Definition at line 28 of file daqContext.cpp.