फ़ंक्शन Offer [SWS_PHM_01143] Upstream: RS_HM_09159, RS_AP_00159
ara::core::Result< void > Offer () noexcept;
Enables potential invocations of RecoveryHandler.
पैरामीटर-रहित विधि 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" |
|---|---|
| Scope | class ara::phm::RecoveryAction |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | not thread-safe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Result< void > | A Result, being either empty or containing any of the errors defined below. |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| PhmErrc::kOfferFailed | rollback_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
Recorded Revisions (8):
- R25-11
rel:R25-11#857c7b2e2026-09-30 - R19-11
rel:R19-11#ca5925372026-10-14 - R20-11
rel:R20-11#17739ebd2026-10-14 - R21-11
rel:R21-11#da1133fa2026-10-14 - R22-11
rel:R22-11#cf1368c72026-10-14 - R23-11
rel:R23-11#86ed8de42026-10-14 - R24-11
rel:R24-11#d8dd83b42026-10-14 - R25-11
rel:R25-11#d8dd83b42026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · जर्मन मूल