Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions score/launch_manager/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,14 @@ cc_library(
"//score/launch_manager/daemon/src/common:identifier_hash",
],
)

cc_test(
name = "exec_error_domain_UT",
srcs = ["exec_error_domain_UT.cpp"],
visibility = ["//tests:__subpackages__"],
deps = [
":error",
"@googletest//:gtest_main",
"@score_baselibs//score/result",
],
)
43 changes: 0 additions & 43 deletions score/launch_manager/daemon/src/alive_monitor/Monitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,49 +24,6 @@
namespace score::mw::lifecycle
{

/// @brief Enumeration of elementary supervision status
enum class ElementarySupervisionStatus : std::uint32_t
{
/// @brief Supervision is active and no failure is present.
kOK = 0U,
/// @brief A failure was detected but still within tolerance/debouncing.
kFailed = 1U,
/// @brief A failure was detected and qualified.
kExpired = 2U,
/// @brief Supervision is not active.
kDeactivated = 4U
};

/// @brief Enumeration of local supervision status
enum class LocalSupervisionStatus : std::uint32_t
{
/// @brief Supervision is active and no failure is present.
kOK = 0U,
/// @brief A failure was detected but still within tolerance/debouncing.
kFailed = 1U,
/// @brief A failure was detected and qualified.
kExpired = 2U,
/// @brief Supervision is not active.
kDeactivated = 4U
};

/// @brief Enumeration of global supervision status
enum class GlobalSupervisionStatus : std::uint32_t
{
/// @brief All relevant local supervisions are in status KOK or KDeactivated.
kOK = 0U,
/// @brief At least one local supervision is in status kFailed but none in status KExpired.
kFailed = 1U,
/// @brief At least one local supervision is in status kExpired but the number of
/// Supervision Cycles since reaching kExpired has not exceeded the tolerance.
kExpired = 2U,
/// @brief At least one local supervision is in status kExpired and the number of
/// Supervision Cycles since reaching kExpired has exceeded the tolerance.
kStopped = 3U,
/// @brief Supervision is not active.
kDeactivated = 4U
};

/// @brief Monitor Class
template <typename EnumT>
class Monitor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ using Checkpoint = std::uint32_t;
/// @brief Forward Declaration for them Implementation class for Monitor
class MonitorImpl;

/// @brief Forward declaration of enumeration of local supervision status
enum class LocalSupervisionStatus : std::uint32_t;

/// @brief Wrapper of implementation class for score::mw::lifecycle::Monitor class
/// This class is just a wrapper and forwards the calls from score::mw::lifecycle::Monitor class
/// to the actual implementation class, i.e., score::mw::lifecycle::MonitorImpl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace HMFlatBuffer;

// HM version 8.0
// HM version 8.1

file_identifier "BHMT";
file_extension "bin";
Expand All @@ -18,9 +18,6 @@ table HMEcuCfg {
hmMonitorInterface: [HmMonitorInterface] (id:3);
hmSupervisionCheckpoint: [HmSupervisionCheckpoint] (id:4);
hmAliveSupervision: [HmAliveSupervision] (id:5);
hmLocalSupervision: [HmLocalSupervision] (id:6);
hmGlobalSupervision: [HmGlobalSupervision] (id:7);
hmRecoveryNotification: [RecoveryNotification] (id:8);
}

table Process {
Expand Down Expand Up @@ -79,39 +76,4 @@ table HmAliveSupervision {
refProcessGroupStates: [HmRefProcessGroupStates] (id:9);
}

table HmLocalSupervision {
ruleContextKey: string (id:0);
infoRefInterfacePath: string (id:1);
hmRefAliveSupervision: [HmRefAliveSupervision] (id:2);
}

table HmRefAliveSupervision {
ruleContextKey: int (id:0);
refAliveSupervisionIdx: uint32 (id:1);
}

table HmGlobalSupervision {
ruleContextKey: string (id:0);
isSeverityCritical: bool (id:1);
localSupervision: [HmGlobalSupervisionLocalRef] (id:2);
refProcesses: [HmRefProcess] (id:3);
refProcessGroupStates: [HmRefProcessGroupStatesGlobal] (id:4);
}

table HmGlobalSupervisionLocalRef {
refLocalSupervisionIndex: uint32 (id:0);
}

table HmRefProcessGroupStatesGlobal {
identifier: string (id:0);
expiredSupervisionTolerance: double (id:1);
}

table RecoveryNotification {
shortName: string (id:0, required);
processGroupMetaModelIdentifier: string (id:1);
refGlobalSupervisionIndex: uint32 (id:2);
shouldFireWatchdog: bool (id:3);
}

root_type HMEcuCfg;
Loading
Loading