دالة 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]. ويتم الاستدعاء بشكل متزامن ولا يقبل أي معاملات [SWS_PHM_01143].
يتم إرجاع نتيجة التنفيذ كـ ara::core::Result<void> [SWS_PHM_01143]. وفي حالة عدم وجود أخطاء، يكون Result هذا فارغًا. وإذا فشل الاتصال مع عفريت PHM، فلن يمكن تقديم الخدمة وترجع الدالة رمز الخطأ PhmErrc::kOfferFailed مع دلالات التراجع (Rollback) [SWS_PHM_01143].
فيما يتعلق بأمان التنفيذ، تم تحديد الطريقة كـ noexcept وآمنة من الاستثناءات (exception safe) [SWS_PHM_01143]. ومع ذلك، تم تعريفها صراحةً على أنها غير آمنة من حيث مؤشرات الترابط (not thread-safe) [SWS_PHM_01143].
يوجد في النظام المتكامل ارتباط مباشر بمعالجة الأخطاء: يُستخدم RecoveryHandler للفئة ara::phm::RecoveryAction للاستجابة لأخطاء التنفيذ (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#4dc1e8f7- Content hash
4dc1e8f7- 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 · الأصل الألماني