DEENESPTFRRUARHIKOZHNL

क्लास ara::phm::RecoveryAction

[SWS_PHM_01140] Upstream: RS_HM_09159

class RecoveryAction {...};

RecoveryAction abstract class.

Header-Datei#include "ara/phm/recovery_action.h"
Forwarding-Header#include "ara/phm/phm_fwd.h"
Scopenamespace ara::phm

उपयोगकर्ता गाइडएआई जनित

PHM निगरानी त्रुटियों के मामले में पुनर्प्राप्ति उपायों के प्रावधान और निष्पादन के लिए अनुप्रयोगों की सेवा करता है।
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 1c1f80bf2db1 उद्गम खुले प्रश्न (2)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

PHM निगरानी त्रुटियों के मामले में पुनर्प्राप्ति उपायों के प्रावधान और निष्पादन के लिए अनुप्रयोगों की सेवा करता है।

सार क्लास ara::phm::RecoveryAction अनुप्रयोगों को Platform Health Management के लिए एप्लिकेशन-विशिष्ट पुनर्प्राप्ति उपाय प्रदान करने में सक्षम बनाती है [SWS_PHM_01141]। इंस्टेंसिएशन के बाद, Offer() का कॉल Phm डेमॉन के लिए रिसेप्शन तत्परता को सक्षम करता है, ताकि पता चली निगरानी त्रुटियों की स्थिति में ओवरराइड की गई विधि RecoveryHandler को कॉल किया जा सके [SWS_PHM_01143]। यदि त्रुटि को एप्लिकेशन पक्ष पर हल नहीं किया जा सकता है, तो सिस्टम वॉचडॉग को ट्रिगर करके समस्या को आगे बढ़ाता है। सुरक्षा कारणों से कॉपी और मूव संचालन पूरी तरह से अवरुद्ध हैं, और Offer() जैसे प्रबंधन कॉल थ्रेड-सुरक्षित नहीं हैं।

संदर्भ

क्लास ara::phm::RecoveryAction AUTOSAR Adaptive Platform के Platform Health Management (PHM) मॉड्यूल में एक सार बेस क्लास है। यह कार्यात्मक अनुप्रयोगों के लिए विशिष्ट पुनर्प्राप्ति और त्रुटि प्रबंधन उपाय प्रदान करने के लिए एक मानकीकृत इंटरफ़ेस के रूप में कार्य करती है, जो PHM द्वारा पता लगाई गई निगरानी त्रुटियों पर ट्रिगर होते हैं।

आवश्यक इंटरैक्शन भागीदारों में शामिल हैं:

  • व्युत्पन्न एप्लिकेशन घटक: व्याख्या: यह आमतौर पर State Management में स्थित होना चाहिए, क्योंकि यह समन्वित सिस्टम प्रतिक्रियाओं के लिए ज़िम्मेदार है और त्रुटि संदर्भ में सीधे नामित है। प्रश्न Q-714ff81a33aa3e92 (खुला) एप्लिकेशन विधि RecoveryHandler [SWS_PHM_01142] को ओवरराइड करके एप्लिकेशन-विशिष्ट त्रुटि समाधान लागू करता है।
  • Phm डेमॉन: Offer [SWS_PHM_01143] के माध्यम से पुनर्प्राप्ति क्रियाओं के पंजीकरण का प्रबंधन करता है और त्रुटियों का पता चलने पर पंजीकृत हैंडलर [SWS_PHM_01142] के कॉल को नियंत्रित करता है।
  • वॉचडॉग: यदि एप्लिकेशन-पक्षीय पुनर्प्राप्ति सफलतापूर्वक नहीं की जा सकती है, तो PHM आगे की त्रुटि प्रबंधन का कार्यभार संभालता है और सुरक्षा के लिए वॉचडॉग को ट्रिगर करता है [SWS_PHM_01142]।

AUTOSAR मॉडल के साथ तार्किक लिंकेज इंस्टेंसिएशन के समय ara::core::InstanceSpecifier के माध्यम से होता है, जिसे PhmRecoveryAction इंटरफ़ेस के PPortPrototype को संदर्भित करना चाहिए [SWS_PHM_01141]।

जीवनचक्र

एक इंस्टेंस उपयुक्त इंस्टेंस विनिर्देशक पास करके स्पष्ट कंस्ट्रक्टर के माध्यम से बनाया जाता है [SWS_PHM_01141]। यह कंस्ट्रक्टर थ्रेड-सुरक्षित (thread-safe) और अपवाद-सुरक्षित (noexcept) है।

चूँकि एक RecoveryAction एक विशिष्ट पोर्ट से मजबूती से बंधी होती है, इसलिए कॉपी और मूव संचालन पूरी तरह से अवरुद्ध हैं: कॉपी कंस्ट्रक्टर [SWS_PHM_01150] और कॉपी असाइनमेंट ऑपरेटर [SWS_PHM_01152] दोनों हटा दिए गए हैं (= delete)। इसी तरह, मूव कंस्ट्रक्टर [SWS_PHM_01149] और मूव असाइनमेंट ऑपरेटर [SWS_PHM_01151] भी हटा दिए गए हैं। विनिर्देश इसे उचित ठहराता है कि इंस्टेंस की पेशकश करने के बाद मूव करने से व्युत्पन्न क्लास के पूर्ण निर्माण से पहले RecoveryHandler को कॉल किया जा सकता है, जिसके परिणामस्वरूप अनिर्दिष्ट व्यवहार या अनियंत्रित अपवाद हो सकते हैं और सिस्टम सुरक्षा को खतरा हो सकता है [SWS_PHM_01149], [SWS_PHM_01151]।

जीवनचक्र में दो अलग-अलग स्थितियाँ शामिल हैं:

  • प्रस्तुत नहीं किया गया: निर्माण के तुरंत बाद और StopOffer [SWS_PHM_01144] के कॉल के बाद, इंस्टेंस निष्क्रिय होता है। RecoveryHandler के कॉल अवरुद्ध हैं।
  • प्रस्तुत किया गया: Offer() [SWS_PHM_01143] को कॉल करके, Phm डेमॉन में कार्रवाई सक्रिय हो जाती है और हैंडलर कॉल के लिए सक्षम हो जाती है।

ऑब्जेक्ट को वर्चुअल डिस्ट्रक्टर [SWS_PHM_01145] के माध्यम से रिलीज़ किया जाता है। समवर्तीता के संबंध में, कंस्ट्रक्टर और RecoveryHandler थ्रेड-सुरक्षित निर्दिष्ट हैं, जबकि Offer(), StopOffer() और डिस्ट्रक्टर थ्रेड-सुरक्षित नहीं हैं (not thread-safe) [SWS_PHM_01141], [SWS_PHM_01142], [SWS_PHM_01143], [SWS_PHM_01144], [SWS_PHM_01145]। व्याख्या: किसी इंस्टेंस के विनाश से पहले, ऑब्जेक्ट के विनाश के दौरान अतुल्यकालिक हैंडलर कॉल को सुरक्षित रूप से बाहर करने के लिए व्यवहार में हमेशा StopOffer() को कॉल किया जाना चाहिए। प्रश्न Q-a1f47898bed925fd (खुला)

diag_recovery_lifecycle NichtAngeboten प्रस्तावित नहीं है Angeboten Angeboten NichtAngeboten->Angeboten Offer() Angeboten->NichtAngeboten StopOffer() Angeboten->Angeboten RecoveryHandler()

स्थिति आरेख: Offer द्वारा सक्रियण और StopOffer द्वारा निष्क्रियण के साथ RecoveryAction की जीवनचक्र स्थितियाँ। स्रोत: [SWS_PHM_01141], [SWS_PHM_01143], [SWS_PHM_01144], [SWS_PHM_01145]

उपयोग पथ

विशिष्ट उपयोग को एक निश्चित कॉल अनुक्रम में संरचित किया गया है:

  1. एक व्युत्पन्न क्लास की परिभाषा जो शुद्ध वर्चुअल सदस्य फ़ंक्शन RecoveryHandler को लागू करती है [SWS_PHM_01142]।
  2. इंस्टेंस विनिर्देशक [SWS_PHM_01141] निर्दिष्ट करते हुए व्युत्पन्न ऑब्जेक्ट का इंस्टेंसिएशन।
  3. Phm डेमॉन को पुनर्प्राप्ति क्रिया प्रदान करने के लिए Offer() का कॉल [SWS_PHM_01143]।
  4. त्रुटियों पर प्रतिक्रिया: यदि PHM किसी त्रुटि का पता लगाता है, तो यह RecoveryHandler(executionError, supervision) को कॉल करता है [SWS_PHM_01142]। विधि एक ara::core::Future<void> प्रदान करती है, जिसके माध्यम से त्रुटि समाधान के परिणाम की सूचना दी जाती है।
  5. जैसे ही इंस्टेंस को पुनर्प्राप्ति क्रियाओं को आगे निष्पादित नहीं करना होता है, StopOffer() का कॉल [SWS_PHM_01144]।
  6. डिस्ट्रक्टर [SWS_PHM_01145] के माध्यम से ऑब्जेक्ट का विनाश।
Nutzungsablauf von ara::phm::RecoveryActionएप्लिकेशनRecoveryActionPhm-DaemonRecoveryAction(instance)Offer()Aktion anmeldenBestaetigungResult<void> (Erfolg)Use Case: Fehlerbehandlung durch PHMRecoveryHandler(executionError, supervision)Future<void>Use Case: पंजीकरण रद्द करना और टियरडाउनStopOffer()~RecoveryAction()

अनुक्रम आरेख: किसी पुनर्प्राप्ति क्रिया के पंजीकरण, त्रुटि अधिसूचना और अपंजीकरण के दौरान विशिष्ट कॉल अनुक्रम। स्रोत: [SWS_PHM_01141], [SWS_PHM_01142], [SWS_PHM_01143], [SWS_PHM_01144], [SWS_PHM_01145]

त्रुटि परिदृश्य

मॉडल कॉन्फ़िगरेशन और संचालन के हिस्से के रूप में, विशिष्ट त्रुटि स्थितियों पर विचार किया जाना चाहिए:

  • निर्माण के समय मॉडल और सत्यापन उल्लंघन [SWS_PHM_01141]:
    • AraNotInitializedViolation: ARA रनटाइम परिवेश को इंस्टैंशिएशन से पहले प्रारंभ नहीं किया गया था।
    • InstanceSpecifierMappingIntegrityViolation: Instance-Specifier को मॉडल में हल नहीं किया जा सकता है या यह किसी PortPrototype को संदर्भित नहीं करता है।
    • PortInterfaceMappingViolation: RecoveryNotificationToPPortPrototypeMapping के माध्यम से संदर्भित Port-Prototype किसी PhmSupervisionRecoveryNotificationInterface द्वारा टाइप किया हुआ नहीं है।
    • ProcessMappingViolation: रनटाइम पर Instance-Ref के लिए उपयुक्त रूप से मॉडल की गई कोई प्रक्रिया मौजूद नहीं है।
    • InstanceSpecifierAlreadyInUseViolation: वर्तमान प्रक्रिया के भीतर Instance-Specifier का पहले से ही उपयोग किया जा रहा है।
  • प्रस्ताव (offering) के दौरान संचार त्रुटि [SWS_PHM_01143]:\n यदि Phm-Daemon के साथ संचार विफल हो जाता है, तो Offer() त्रुटि कोड PhmErrc::kOfferFailed के साथ एक परिणाम देता है।
  • पुनर्प्राप्ति में असाध्य त्रुटियां [SWS_PHM_01142]:\n यदि State Management रिपोर्ट की गई त्रुटि का समाधान नहीं कर सकता है, तो RecoveryHandler द्वारा लौटाया गया Future त्रुटि PhmErrc::kSMCanNotHandleRecovery लौटाता है। इसके बाद Platform Health Management हस्तक्षेप करता है और वॉचडॉग को ट्रिगर करता है।

यह क्लास गाइड एक AI-क्यूरेशन सहायक द्वारा AUTOSAR R25-11 विनिर्देश के आधार पर तैयार किया गया था।

सदस्य मानचित्र

कंस्ट्रक्टर और डिस्ट्रक्टर

2

ऑपरेटर

1

क्लास आरेख

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__phm__RecoveryAction85 RecoveryAction + RecoveryAction() + operator=() + ~RecoveryAction() + Offer() + RecoveryHandler() + StopOffer()

विवरण दृश्य

रूपरेखा में कोई प्रविष्टि चुनें।

कंस्ट्रक्टर और डिस्ट्रक्टर

RecoveryAction फ़ंक्शन 3

Creation of an RecoveryAction.

ओवरलोड RecoveryAction 3
explicit RecoveryAction (const ara::core::InstanceSpecifier &instance) noexcept; SWS_PHM_01141
RecoveryAction (RecoveryAction &&ra)=delete; SWS_PHM_01149
RecoveryAction (const RecoveryAction &)=delete; SWS_PHM_01150
~RecoveryAction फ़ंक्शन

Destructor for RecoveryAction.

virtual ~RecoveryAction () noexcept;

मेथड

Offer फ़ंक्शन

Enables potential invocations of RecoveryHandler.

ara::core::Result< void > Offer () noexcept;
RecoveryHandler फ़ंक्शन

RecoveryHandler to be invoked by PHM. The handler invocation needs to be enabled before by a call of RecoveryAction::Offer.

virtual ara::core::Future< void > RecoveryHandler (const ara::exec::ExecutionErrorEvent &executionError, TypeOfSupervision supervision) noexcept=0;
StopOffer फ़ंक्शन

Disables invocations of RecoveryHandler.

void StopOffer () noexcept;

ऑपरेटर

operator= फ़ंक्शन 2

The move assignment operator for the RecoveryAction shall not be used. Rationale: Using the move assignment after a RecoveryAction instance has been offered may result in premature invocation of RecoveryHandler before the derived class is fully constructed. This can lead to undefined behavior or unhandled exceptions, compromising system stability and safety.

ओवरलोड = 2
RecoveryAction & operator= (RecoveryAction &&ra)=delete; SWS_PHM_01151
RecoveryAction & operator= (const RecoveryAction &)=delete; SWS_PHM_01152

मेथड का प्रलेखन

फ़ंक्शन Offer [SWS_PHM_01143] Upstream: RS_HM_09159, RS_AP_00159

ara::core::Result< void > Offer () noexcept;

Enables potential invocations of RecoveryHandler.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: e0343e0b39c4 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

पैरामीटर-रहित विधि Offer क्लास ara::phm::RecoveryAction से संबंधित है और इसे हेडर फ़ाइल ara/phm/recovery_action.h के माध्यम से शामिल किया जाता है [SWS_PHM_01143]। इसका उद्देश्य Platform Health Management (PHM) को सेवा प्रदान करना है, ताकि बाद में RecoveryHandler के कॉल सक्षम हो सकें [SWS_PHM_01143]। कॉल तुल्यकालिक (synchronous) रूप से होता है और कोई पैरामीटर स्वीकार नहीं करता है [SWS_PHM_01143]।

निष्पादन का परिणाम ara::core::Result<void> के रूप में वापस किया जाता है [SWS_PHM_01143]। त्रुटि-रहित स्थिति में यह Result खाली होता है। यदि PHM डेमॉन के साथ संचार विफल हो जाता है, तो सेवा की पेशकश नहीं की जा सकती और फ़ंक्शन रोलबैक सिमेंटिक्स के साथ त्रुटि कोड PhmErrc::kOfferFailed वापस करता है [SWS_PHM_01143]।

निष्पादन सुरक्षा के संबंध में, विधि को noexcept और अपवाद-सुरक्षित (exception safe) के रूप में निर्दिष्ट किया गया है [SWS_PHM_01143]। हालाँकि, इसे स्पष्ट रूप से गैर-थ्रेड-सुरक्षित (not thread-safe) के रूप में परिभाषित किया गया है [SWS_PHM_01143]।

सिस्टम संयोजन में त्रुटि प्रबंधन के साथ सीधा जुड़ाव होता है: क्लास ara::phm::RecoveryAction का RecoveryHandler निष्पादन त्रुटियों (ara::exec::ExecutionErrorEvent) और निगरानी त्रुटियों (TypeOfSupervision) पर प्रतिक्रिया देने के लिए कार्य करता है [SWS_PHM_01142]। PHM इस हैंडलर को केवल तभी कॉल कर सकता है जब सक्रियण को पहले RecoveryAction::Offer के माध्यम से स्पष्ट रूप से सक्षम किया गया हो [SWS_PHM_01142]।

यह उपयोग नोट विनिर्देश के आधार पर स्वचालित रूप से जनरेट किया गया था।

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
ara::core::Result< void >A Result, being either empty or containing any of the errors defined below.

Fehler

FehlercodeBeschreibung
PhmErrc::kOfferFailedrollback_semantics Service could not be offered due to failure of communication with Phm daemon

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PHM_01143
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01143@rel:R25-11#48cb0ba6
Content hash
48cb0ba6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01143
Status: valid/unmigrated Version: rel:R25-11#d8dd83b4 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PHM_01143@rel:R25-11#d8dd83b4
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#857c7b2e2026-09-30
  • R19-11rel:R19-11#ca5925372026-10-14
  • R20-11rel:R20-11#17739ebd2026-10-14
  • R21-11rel:R21-11#da1133fa2026-10-14
  • R22-11rel:R22-11#cf1368c72026-10-14
  • R23-11rel:R23-11#86ed8de42026-10-14
  • R24-11rel:R24-11#d8dd83b42026-10-14
  • R25-11rel:R25-11#d8dd83b42026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन RecoveryAction [SWS_PHM_01141] Upstream: RS_HM_09159, RS_AP_00159, RS_AP_00170, RS_AP_00171, RS_AP_00172, RS_AP_00173

explicit RecoveryAction (const ara::core::InstanceSpecifier &instance) noexcept;

Creation of an RecoveryAction.

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe
Verletzungen (Violations)AraNotInitialized- Violation message that is sent in case a constructor or function Violation checks for an initialized ara and identifies that ara is not initialized. InstanceSpeci- InstanceSpecifier either cannot be resolved in the model in the fierMappingIn- context of your executable, or it refers to a model element other tegrityViolation than a PortPrototype. PortInterfaceMap- A PortPrototype that is referenced by a pingViolation RecoveryNotificationToPPortPrototypeMapping needs to be typed by a PhmSupervisionRecoveryNotificationInterface. ProcessMappingVio- Matching InstanceRef exists, but no matching (modelled) Process lation found that matches the (runtime) process. InstanceSpecifier- Violation message that is sent in case a constructor in the ara AlreadyInUseViola- framework was called with an InstanceSpecifier already in use in tion this process.

Parameter (in)

ParameterBeschreibung
instanceinstance specifier to the PPortPrototype of a PhmRecoveryAction Interface

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PHM_01141
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01141@rel:R25-11#6e6fa511
Content hash
6e6fa511
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01141
Status: valid/unmigrated Version: rel:R25-11#a1bff3f3 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PHM_01141@rel:R25-11#a1bff3f3
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f5f6a77d2026-09-30
  • R19-11rel:R19-11#415751492026-10-14
  • R20-11rel:R20-11#0bb740092026-10-14
  • R21-11rel:R21-11#0bb740092026-10-14
  • R22-11rel:R22-11#9ba3238f2026-10-14
  • R23-11rel:R23-11#d99db8452026-10-14
  • R24-11rel:R24-11#4bbb0aac2026-10-14
  • R25-11rel:R25-11#a1bff3f32026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन RecoveryAction [SWS_PHM_01149] Upstream: RS_HM_09159, RS_AP_00159

RecoveryAction (RecoveryAction &&ra)=delete;

The move constructor operator for the RecoveryAction shall not be used. Rationale: Using the move constructor after a RecoveryAction instance has been offered may result in premature invocation of RecoveryHandler before the derived class is fully constructed. This can lead to undefined behavior or unhandled exceptions, compromising system stability and safety

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PHM_01149
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01149@rel:R25-11#eba4127c
Content hash
eba4127c
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01149
Status: valid/unmigrated Version: rel:R25-11#ad5dcd6d Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PHM_01149@rel:R25-11#ad5dcd6d
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#174faeae2026-09-30
  • R20-11rel:R20-11#388d41232026-10-14
  • R21-11rel:R21-11#388d41232026-10-14
  • R22-11rel:R22-11#cfcda3ac2026-10-14
  • R23-11rel:R23-11#75ceb7ff2026-10-14
  • R24-11rel:R24-11#1ab59f662026-10-14
  • R25-11rel:R25-11#ad5dcd6d2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन RecoveryAction [SWS_PHM_01150] Upstream: RS_HM_09159

RecoveryAction (const RecoveryAction &)=delete;

The copy constructor for RecoveryAction shall not be used.

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PHM_01150
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01150@rel:R25-11#cd8d1fce
Content hash
cd8d1fce
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01150
Status: valid/unmigrated Version: rel:R25-11#fe708e57 Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PHM_01150@rel:R25-11#fe708e57
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#9fad0d072026-09-30
  • R20-11rel:R20-11#73566a6f2026-10-14
  • R21-11rel:R21-11#73566a6f2026-10-14
  • R22-11rel:R22-11#06e07d412026-10-14
  • R23-11rel:R23-11#c100fbf82026-10-14
  • R24-11rel:R24-11#fe708e572026-10-14
  • R25-11rel:R25-11#fe708e572026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन RecoveryHandler [SWS_PHM_01142] Upstream: RS_HM_09159, RS_AP_00159

virtual ara::core::Future< void > RecoveryHandler (const ara::exec::ExecutionErrorEvent &executionError, TypeOfSupervision supervision) noexcept=0;

RecoveryHandler to be invoked by PHM. The handler invocation needs to be enabled before by a call of RecoveryAction::Offer.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 4d5e12f6a819 उद्गम
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

ara::phm::RecoveryAction में शुद्ध वर्चुअल मेथड (pure virtual method) RecoveryHandler एक एसिंक्रोनस कॉलबैक के रूप में कार्य करता है, जिसे Platform Health Management (PHM) द्वारा तब कॉल किया जाता है जैसे ही कोई निगरानी विफल होती है [SWS_PHM_01142]। कॉल किए जाने पर, PHM पुनर्प्राप्ति के संबंध में विस्तृत जानकारी के साथ त्रुटि घटना executionError और पैरामीटर supervision के माध्यम से विफल प्राथमिक निगरानी का प्रकार पास करता है [SWS_PHM_01142]।

उपयोग और जीवनचक्र के लिए निश्चित अनुक्रम और concurrency शर्तें लागू होती हैं:

  • सक्रियण: हैंडलर के कॉल्स को पहले RecoveryAction::Offer के माध्यम से स्पष्ट रूप से सक्षम किया जाना चाहिए [SWS_PHM_01142], [SWS_PHM_01143]। उन्हें StopOffer के माध्यम से फिर से निष्क्रिय किया जा सकता है [SWS_PHM_01144]।
  • ऑब्जेक्ट अखंडता: RecoveryAction के मूव कंस्ट्रक्टर और मूव असाइनमेंट ऑपरेटर दोनों हटा दिए गए हैं (=delete), ताकि एक्शन की पेशकश के बाद अभी तक अपूर्ण रूप से निर्मित व्युत्पन्न वर्गों (derived classes) पर समयपूर्व हैंडलर कॉल्स के निष्पादन को रोका जा सके [SWS_PHM_01149], [SWS_PHM_01151]।
  • थ्रेड-सुरक्षा: मेथड स्वयं थ्रेड-सुरक्षित और अपवाद-सुरक्षित के रूप में निर्दिष्ट है [SWS_PHM_01142], जबकि Offer और StopOffer थ्रेड-सुरक्षित नहीं हैं [SWS_PHM_01143], [SWS_PHM_01144]।

रिटर्न एक ara::core::Future<void> के माध्यम से एसिंक्रोनस रूप से होता है [SWS_PHM_01142]। यदि पुनर्प्राप्ति सफल रही, तो Future void के साथ पूरा होता है। यदि State Management पुनर्प्राप्ति करने में असमर्थ है, तो Future त्रुटि कोड PhmErrc::kSMCanNotHandleRecovery के साथ विफल हो जाता है; इस स्थिति में Platform Health Management हस्तक्षेप करता है और वॉचडॉग को ट्रिगर करता है [SWS_PHM_01142]।

यह पाठ AUTOSAR R25-11 विनिर्देश के आधार पर एक AI द्वारा जनरेट किया गया था।

इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
executionErrorInformation on detected error, shall give further information for error recovery.
supervisionThe type of elementary supervision which failed.

Rückgabewert

TypBeschreibung
ara::core::Future< void >void if recovery is successful, otherwise it returns kSMCanNot HandleRecovery error

Fehler

FehlercodeBeschreibung
PhmErrc::kSMCanNotHandleRecoveryrollback_semantics State Management cannot handle the recovery and PlatformHealth Management will take over by firing the watchdog.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PHM_01142
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01142@rel:R25-11#dcea8d6f
Content hash
dcea8d6f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01142
Status: valid/unmigrated Version: rel:R25-11#d7b7a988 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PHM_01142@rel:R25-11#d7b7a988
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#9d70b1c72026-09-30
  • R19-11rel:R19-11#74f0a8f02026-10-14
  • R20-11rel:R20-11#0cc3316c2026-10-14
  • R21-11rel:R21-11#0cc3316c2026-10-14
  • R22-11rel:R22-11#badb86d42026-10-14
  • R23-11rel:R23-11#89d68dcf2026-10-14
  • R24-11rel:R24-11#f8c2bd5d2026-10-14
  • R25-11rel:R25-11#d7b7a9882026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन StopOffer [SWS_PHM_01144] Upstream: RS_HM_09159, RS_AP_00159

void StopOffer () noexcept;

Disables invocations of RecoveryHandler.

एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 8cdc07a00e3f उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

क्लास ara::phm::RecoveryAction का मेथड StopOffer संबंधित RecoveryHandler के निष्पादन को निष्क्रिय करने का कार्य करता है [SWS_PHM_01144]। यह हेडर ara/phm/recovery_action.h में घोषित है [SWS_PHM_01144]।

उपयोग और सिमेंटिक्स

फ़ंक्शन का सिग्नेचर void StopOffer() noexcept; है, यह कोई पैरामीटर नहीं लेता है और कोई रिटर्न मान नहीं लौटाता है [SWS_PHM_01144]। कॉल करके, एप्लिकेशन Platform Health Management (PHM) को संकेत देता है कि हैंडलर के आगे कोई कॉल नहीं होने चाहिए [SWS_PHM_01144]। कॉल समकालिक रूप से होती है; चल रहे हैंडलर इंस्टेंस निष्क्रियता से पहले या उसके दौरान पूरे हो जाने चाहिए (व्याख्या)। प्रश्न Q-a333b1e2f0634ed1 (खुला)

त्रुटि हैंडलिंग और समवर्तीता

  • अपवाद-सुरक्षा: ऑपरेशन को noexcept के रूप में घोषित किया गया है और इसे पूरी तरह से exception safe माना जाता है; कोई त्रुटि कोड या अपवाद मौजूद नहीं हैं [SWS_PHM_01144]।
  • थ्रेड-सुरक्षा: मेथड को स्पष्ट रूप से not thread-safe के रूप में निर्दिष्ट किया गया है [SWS_PHM_01144]। इसलिए समान RecoveryAction इंस्टेंस पर एक समवर्ती कॉल के लिए कॉलर द्वारा बाहरी सिंक्रनाइज़ेशन की आवश्यकता होती है।

यह पाठ एक AI द्वारा तैयार किया गया था और यह AUTOSAR Adaptive R25-11 के विनिर्देश पर आधारित है।

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Rückgabewert

TypBeschreibung
None

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PHM_01144
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01144@rel:R25-11#9579eb44
Content hash
9579eb44
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01144
Status: valid/unmigrated Version: rel:R25-11#0a3b9401 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PHM_01144@rel:R25-11#0a3b9401
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#e69e06162026-09-30
  • R19-11rel:R19-11#122a6efb2026-10-14
  • R20-11rel:R20-11#485b84892026-10-14
  • R21-11rel:R21-11#adcb24f02026-10-14
  • R22-11rel:R22-11#55be05992026-10-14
  • R23-11rel:R23-11#b64d35982026-10-14
  • R24-11rel:R24-11#0a3b94012026-10-14
  • R25-11rel:R25-11#0a3b94012026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन operator= [SWS_PHM_01151] Upstream: RS_HM_09159, RS_AP_00159

RecoveryAction & operator= (RecoveryAction &&ra)=delete;

The move assignment operator for the RecoveryAction shall not be used. Rationale: Using the move assignment after a RecoveryAction instance has been offered may result in premature invocation of RecoveryHandler before the derived class is fully constructed. This can lead to undefined behavior or unhandled exceptions, compromising system stability and safety.

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PHM_01151
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01151@rel:R25-11#d697ad7b
Content hash
d697ad7b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01151
Status: valid/unmigrated Version: rel:R25-11#4359eed2 Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PHM_01151@rel:R25-11#4359eed2
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#472762232026-09-30
  • R20-11rel:R20-11#41ba0c072026-10-14
  • R21-11rel:R21-11#41ba0c072026-10-14
  • R22-11rel:R22-11#a0be95c32026-10-14
  • R23-11rel:R23-11#2eed5b982026-10-14
  • R24-11rel:R24-11#05a1b01f2026-10-14
  • R25-11rel:R25-11#4359eed22026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन operator= [SWS_PHM_01152] Upstream: RS_HM_09159

RecoveryAction & operator= (const RecoveryAction &)=delete;

The copy assignment operator for RecoveryAction shall not be used.

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PHM_01152
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01152@rel:R25-11#7da5f6c8
Content hash
7da5f6c8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01152
Status: valid/unmigrated Version: rel:R25-11#ff4c96ac Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PHM_01152@rel:R25-11#ff4c96ac
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#5c298d6f2026-09-30
  • R20-11rel:R20-11#32919afc2026-10-14
  • R21-11rel:R21-11#32919afc2026-10-14
  • R22-11rel:R22-11#9157a7c42026-10-14
  • R23-11rel:R23-11#f01e06fc2026-10-14
  • R24-11rel:R24-11#ff4c96ac2026-10-14
  • R25-11rel:R25-11#ff4c96ac2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

फ़ंक्शन ~RecoveryAction [SWS_PHM_01145] Upstream: RS_HM_09159, RS_AP_00134

virtual ~RecoveryAction () noexcept;

Destructor for RecoveryAction.

Header-Datei#include "ara/phm/recovery_action.h"
Scopeclass ara::phm::RecoveryAction
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PHM_01145
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PHM_01145@rel:R25-11#c5824527
Content hash
c5824527
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_PlatformHealthManagement.pdf#nameddest=SWS_PHM_01145
Status: valid/unmigrated Version: rel:R25-11#5718b75e Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PHM_01145@rel:R25-11#5718b75e
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#bddb59f42026-09-30
  • R20-11rel:R20-11#a25806312026-10-14
  • R21-11rel:R21-11#a25806312026-10-14
  • R22-11rel:R22-11#f9931f022026-10-14
  • R23-11rel:R23-11#d1de17222026-10-14
  • R24-11rel:R24-11#f734134e2026-10-14
  • R25-11rel:R25-11#5718b75e2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill