DEENESPTFRRUARHIKOZHNL

क्लास ara::exec::ExecutionClient

[SWS_EM_02001] Upstream: RS_EM_00103, RS_AP_00154, RS_AP_00150

class ExecutionClient final {...};

The ara::exec::ExecutionClient API provides the functionality for a Process to report its Execution State to the Execution Management.

Header-Datei#include "ara/exec/execution_client.h"
Forwarding-Header#include "ara/exec/exec_fwd.h"
Scopenamespace ara::exec

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

प्रक्रियाओं को अपनी निष्पादन स्थिति की रिपोर्ट Execution Management को देने में सक्षम बनाता है और SIGTERM सिग्नलों को इंटरसेप्ट करता है।
एआई-जनित असत्यापित मॉडल: gemini-3.8-flash-medium · प्रयास: medium · तापमान: नियंत्रित नहीं किया जा सकता · प्रॉम्प्ट: 9986c3a4c7c5 उद्गम खुले प्रश्न (1)
जर्मन मार्गदर्शिका से अनूदितgemini-3.8-flash-low · 2026-10-13 · जर्मन मूल

प्रक्रियाओं को अपनी निष्पादन स्थिति की रिपोर्ट Execution Management को देने में सक्षम बनाता है और SIGTERM सिग्नलों को इंटरसेप्ट करता है।

क्लास ara::exec::ExecutionClient का उपयोग एप्लिकेशन प्रक्रियाओं द्वारा अपनी आंतरिक निष्पादन स्थिति की अनिवार्य रूप से Execution Management को रिपोर्ट करने के लिए किया जाता है ([SWS_EM_02003])। आरंभीकरण के दौरान, यह SIGTERM सिग्नल को इंटरसेप्ट करने का कार्य भी संभालती है और इसे बैकग्राउंड थ्रेड में उपयोगकर्ता-परिभाषित समाप्ति हैंडलर को अग्रेषित करती है ([SWS_EM_02562])। केवल-मूव (move-only) ऑब्जेक्ट के रूप में, इंस्टेंस सिग्नल हैंडलिंग को सख्ती से अपने लाइफ़साइकिल से बाइंड करता है और विनाश के समय पिछली सिग्नल स्थिति को पुनर्स्थापित करता है। कॉलर्स को यह सुनिश्चित करना होगा कि पंजीकृत कॉलबैक संपूर्ण इंस्टेंस लाइफ़टाइम के दौरान कॉल करने योग्य बना रहे।

संदर्भ

क्लास ara::exec::ExecutionClient Adaptive Platform पर प्रक्रियाओं द्वारा अपनी आंतरिक निष्पादन स्थिति की रिपोर्ट Execution Management को देने के लिए उपयोग की जाती है ([SWS_EM_02003])। यह चल रही एप्लिकेशन और केंद्रीय प्रक्रिया प्रबंधन के बीच एक मानकीकृत इंटरफ़ेस के रूप में कार्य करती है। स्थिति संक्रमणों को अग्रेषित करने के अलावा, इंस्टेंस ऑपरेटिंग सिस्टम सिग्नल SIGTERM ([SWS_EM_02562], [SWS_EM_02002]) को संभालने की ज़िम्मेदारी लेता है। सिग्नल आने पर, यह एप्लिकेशन को व्यवस्थित समाप्ति की अनुमति देने के लिए एक अलग बैकग्राउंड थ्रेड में उपयोगकर्ता-परिभाषित कॉलबैक निष्पादित करता है ([SWS_EM_02562])। व्याख्या: जब निष्पादन इकाई की समाप्ति का अनुरोध किया जाता है, तो ऑपरेटिंग सिस्टम या Execution Management द्वारा प्रक्रिया को सिग्नल SIGTERM प्रेषित किए जाने की संभावना है। प्रश्न Q-51eee947d01ae8b4 (खुला)

ExecutionClientKontext app Applikationsprozess client ara::exec::ExecutionClient app->client Initialisierung & Statusmeldung client->app Aufruf terminationHandler em Execution Management client->em स्थिति संचरण (IPC) os Betriebssystem (Signale) os->client SIGTERM

संदर्भ आरेख: एप्लिकेशन प्रक्रिया, ExecutionClient, Execution Management और सिग्नल तंत्र के बीच परस्पर क्रिया। स्रोत: [SWS_EM_02003], [SWS_EM_02562], [SWS_EM_02002]।

जीवनचक्र

ara::exec::ExecutionClient का इंस्टैंसिएशन या तो स्थिर फ़ैक्टरी विधि Create ([SWS_EM_02562]) के माध्यम से या नियमित कंस्ट्रक्टर ([SWS_EM_02560]) के माध्यम से होता है। जबकि Create अपवाद-सुरक्षित (noexcept) है और परिणाम को एक ara::core::Result में इनकैप्सुलेट करके लौटाता है ([SWS_EM_02562]), नियमित कंस्ट्रक्टर को noexcept(false) के रूप में घोषित किया गया है ([SWS_EM_02560])। दोनों निर्माण पथ पैरामीटर के रूप में एक कॉल करने योग्य std::function<void()> कॉलबैक (terminationHandler) की अपेक्षा करते हैं। यह कॉलबैक ExecutionClient इंस्टेंस के संपूर्ण लाइफ़टाइम के दौरान मान्य और कॉल करने योग्य बना रहना चाहिए ([SWS_EM_02562], [SWS_EM_02560])।

स्वामित्व संबंधों के संबंध में क्लास को Move-only के रूप में डिज़ाइन किया गया है: कॉपी कंस्ट्रक्टर ([SWS_EM_02563]) के साथ-साथ कॉपी असाइनमेंट ऑपरेटर ([SWS_EM_02564]) स्पष्ट रूप से डिलीट किए गए हैं (delete)। इंस्टेंसेस का ट्रांसफर केवल मूव कंस्ट्रक्टर ([SWS_EM_02580]) और मूव असाइनमेंट ऑपरेटर ([SWS_EM_02581]) के माध्यम से संभव है, जो दोनों अपवाद-सुरक्षित (noexcept) हैं, लेकिन थ्रेड-सुरक्षित नहीं हैं। फ़ैक्टरी विधि Create और कंस्ट्रक्टर स्वयं थ्रेड-सुरक्षित माने जाते हैं ([SWS_EM_02562], [SWS_EM_02560])।

डिस्ट्रक्टर ~ExecutionClient() noexcept के रूप में परिभाषित है ([SWS_EM_02002]) और थ्रेड-सुरक्षित नहीं है। इंस्टेंस को नष्ट करते समय, सिग्नल SIGTERM का दायित्व वापस सौंप दिया जाता है: डिस्ट्रक्टर SIGTERM के लिए सिग्नल हैंडलर को उसकी मूल स्थिति में रीसेट कर देता है, जो इंस्टेंसिएशन से पहले सक्रिय थी ([SWS_EM_02002])।

उपयोग पथ

नियमित प्रवाह इनिशियलाइज़ेशन, स्थिति ट्रांसमिशन और व्यवस्थित समाप्ति में विभाजित है:

  • निर्माण: प्रोसेस रनटाइम की शुरुआत में, इंस्टेंस को Create के माध्यम से इनिशियलाइज़ किया जाता है, जिसमें टर्मिनेशन हैंडलर पास किया जाता है ([SWS_EM_02562])। आमतौर पर, यह हैंडलर एक फ़्लैग सेट करता है या चल रहे थ्रेड्स को अनब्लॉक करने के लिए सिंक्रोनाइज़ेशन प्रिमिटिव्स को सिग्नल करता है।
  • स्थिति रिपोर्टिंग: जैसे ही प्रोसेस तैयार होता है, वह ReportExecutionState के माध्यम से अपने निष्पादन स्टेटस की रिपोर्ट Execution Management को देता है ([SWS_EM_02003])। यह कॉल थ्रेड-सुरक्षित है और विभिन्न वर्कर थ्रेड्स से की जा सकती है।
  • सिग्नल प्राप्ति और समाप्ति: यदि रनटाइम के दौरान कोई SIGTERM सिग्नल प्राप्त होता है, तो ExecutionClient बैकग्राउंड थ्रेड में कॉन्फ़िगर किए गए terminationHandler को एसिंक्रोनस रूप से सक्रिय करता है ([SWS_EM_02562])। प्रोसेस खुले कार्यों को व्यवस्थित रूप से पूरा करता है।
  • विनाश: स्कोप से बाहर निकलते समय, डिस्ट्रक्टर मूल सिग्नल कॉन्फ़िगरेशन को पुनर्स्थापित करता है ([SWS_EM_02002])।
स्थिति रिपोर्टिंग और समाप्ति का विशिष्ट अनुक्रमApplikationExecutionClientExecution ManagementCreate(terminationHandler)Result<ExecutionClient>ReportExecutionState(kRunning)स्थिति संदेश प्रेषित करनापुष्टि प्राप्त करनाResult<void>Use Case: सिग्नल प्राप्ति और समाप्तिEmpfang von SIGTERMterminationHandler() (Hintergrund-Thread)Geordnetes Beenden~ExecutionClient()SIGTERM हैंडलर रीसेट करना

अनुक्रम आरेख: निर्माण से लेकर स्थिति रिपोर्टिंग और सिग्नल-नियंत्रित समाप्ति तक का प्रवाह। स्रोत: [SWS_EM_02562], [SWS_EM_02003], [SWS_EM_02002]।

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

ExecutionClient का उपयोग करते समय, विभिन्न त्रुटि स्थितियाँ ara::exec::ExecErrc के त्रुटि कोड द्वारा कवर की जाती हैं:

  • ara::exec::ExecErrc::kInvalidArgument: Create ([SWS_EM_02562]) या नियमित कंस्ट्रक्टर ([SWS_EM_02560]) के माध्यम से इंस्टेंसिएशन के दौरान तब होता है, जब पास किए गए terminationHandler ऑब्जेक्ट में कोई कॉल करने योग्य फ़ंक्शन नहीं होता है। सिस्टम रोलबैक सिमेंटिक्स लागू करता है; समाधान के लिए एक मान्य Callable पास किया जाना चाहिए।
  • ara::exec::ExecErrc::kNoCommunication: निर्माण ([SWS_EM_02562], [SWS_EM_02560]) के साथ-साथ ReportExecutionState ([SWS_EM_02003]) के दौरान भी हो सकता है, यदि एप्लिकेशन प्रोसेस और Execution Management के बीच कोई संचार त्रुटि होती है (उदा. संदेश प्राप्ति की कोई पावती न मिलना)। यहाँ कोई रोलबैक सिमेंटिक्स लागू नहीं होता है; रिकवरी उपाय के रूप में पुनः कॉल के प्रयास का प्रावधान है।
  • ara::exec::ExecErrc::kInvalidTransition: ReportExecutionState ([SWS_EM_02003]) द्वारा लौटाया जाता है यदि किसी अमान्य स्थिति परिवर्तन का अनुरोध किया जाता है, उदाहरण के लिए kRunning जैसी पहले से सक्रिय स्थिति की पुनः रिपोर्ट करना। चूंकि स्थिति की रिपोर्ट पहले ही दी जा चुकी है, इसलिए पुनः ट्रांसमिशन की आवश्यकता नहीं है (रोलबैक सिमेंटिक्स)।

यह गाइड exec मॉड्यूल (रिलीज़ R25-11) के लिए AUTOSAR Adaptive Platform विनिर्देशों पर आधारित है।

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

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

2

ऑपरेटर

1

क्लास आरेख

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

G nara__exec__ExecutionClient880 ExecutionClient + ExecutionClient() + operator=() + ~ExecutionClient() + Create() + ReportExecutionState()

विवरण दृश्य

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

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

ExecutionClient फ़ंक्शन 3

Regular constructor for ExecutionClient.

ओवरलोड ExecutionClient 3
ExecutionClient (std::function< void()> terminationHandler) noexcept(false); SWS_EM_02560
ExecutionClient (const ExecutionClient &)=delete; SWS_EM_02563
ExecutionClient (ExecutionClient &&rval) noexcept; SWS_EM_02580
~ExecutionClient फ़ंक्शन

noexcept destructor

~ExecutionClient () noexcept;

मेथड

Create फ़ंक्शन

Named constructor for ExecutionClient.

static ara::core::Result< ExecutionClient > Create (std::function< void()> terminationHandler) noexcept;
ReportExecutionState फ़ंक्शन

Interface for a Process to report its internal state to Execution Management.

ara::core::Result< void > ReportExecutionState (ExecutionState state) noexcept;

ऑपरेटर

operator= फ़ंक्शन 2

Suppress default copy assignment for ExecutionClient.

ओवरलोड = 2
ExecutionClient & operator= (const ExecutionClient &)=delete; SWS_EM_02564
ExecutionClient & operator= (ExecutionClient &&rval) noexcept; SWS_EM_02581

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

फ़ंक्शन Create [SWS_EM_02562] Upstream: RS_AP_00119, RS_AP_00120, RS_AP_00128, RS_AP_00139, RS_AP_00144, RS_EM_00103, RS_AP_00159

static ara::core::Result< ExecutionClient > Create (std::function< void()> terminationHandler) noexcept;

Named constructor for ExecutionClient.

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

स्थिर फ़ंक्शन Create ara::exec::ExecutionClient को इंस्टेंटिएट करने के लिए एक नेम्ड कंस्ट्रक्टर के रूप में कार्य करता है [SWS_EM_02562]। कॉल किए जाने पर, कॉलबैक terminationHandler (प्रकार std::function<void()> का) पास किया जाता है, जो SIGTERM सिग्नल प्राप्त होने पर पृष्ठभूमि थ्रेड में समवर्ती रूप से निष्पादित होता है [SWS_EM_02562]। आमतौर पर, यह कॉलबैक एक वैश्विक फ़्लैग सेट करता है या व्यवस्थित समाप्ति (graceful termination) शुरू करने के लिए अवरुद्ध थ्रेड्स को जगाता है। कॉलर को यह सुनिश्चित करना चाहिए कि हैंडलर ExecutionClient इंस्टेंस के पूरे जीवनकाल के दौरान कॉल करने योग्य बना रहे, जिसे विशेष रूप से std::bind के माध्यम से ऑब्जेक्ट इंस्टेंस से बाइंड करते समय ध्यान में रखा जाना चाहिए [SWS_EM_02562]।

रिटर्न मान के रूप में, फ़ंक्शन एक ara::core::Result<ExecutionClient> प्रदान करता है, जिसमें या तो बनाया गया इंस्टेंस होता है या एक त्रुटि कोड होता है [SWS_EM_02562]। यदि निर्माण विफल रहता है, तो दो विशिष्ट त्रुटियाँ परिभाषित होती हैं:

  • ara::exec::ExecErrc::kInvalidArgument: पास किए गए terminationHandler में कोई कॉल करने योग्य फ़ंक्शन शामिल नहीं है (रोलबैक सेमांटिक्स; एक वैध कॉल करने योग्य पास करके समाधान) [SWS_EM_02562]।
  • ara::exec::ExecErrc::kNoCommunication: एक संचार त्रुटि हुई है (कोई रोलबैक सेमांटिक्स नहीं; पुनः प्रयास करके समाधान) [SWS_EM_02562]।

फ़ंक्शन को noexcept के रूप में घोषित किया गया है, इसे Exception-safe और Thread-safe माना जाता है, और यह आंतरिक रूप से डेवलपर-परिभाषित कंस्ट्रक्टर को कॉल कर सकता है [SWS_EM_02562]। व्याख्या: मुख्य कार्यभार शुरू होने से पहले सिग्नल हैंडलिंग को समय पर सेट करने के लिए कॉल आमतौर पर किसी प्रक्रिया के प्रारंभिक आरंभीकरण चरण के दौरान की जा सकती है। प्रश्न Q-555aea895feb2123 (खुला) कॉलबैक पंजीकरण के साथ नेम्ड कंस्ट्रक्टर का यह पैटर्न इसके अपने Create फ़ंक्शन के माध्यम से StateClient के निर्माण से मेल खाता है [SWS_EM_02276]।

यह पाठ विनिर्देश डेटा के आधार पर एक AI प्रणाली द्वारा उत्पन्न किया गया था।

Header-Datei#include "ara/exec/execution_client.h"
Scopeclass ara::exec::ExecutionClient
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
terminationHandlerCallback which is called if ExecutionClient receives SIGTERM signal. The callback is executed in a background thread. A typical implementation of this callback will set a global flag (and potentially unblock other threads) to perform a graceful termination. Lifetime: it is expected that terminationHandler remains callable, during entire lifetime of the ExecutionClient instance. This is especially important if, terminationHandler is bound to an instance of a class (e.g. using std::bind).

Rückgabewert

TypBeschreibung
ara::core::Result<ExecutionClient >a result that contains either a ExecutionClient object or an error.

Fehler

FehlercodeBeschreibung
ara::exec::ExecErrc::kNoCommunicationno_rollback_semantics Communication error occurred. Recovery: try again
ara::exec::ExecErrc::kInvalidArgumentrollback_semantics Given terminationHandler doesn’t contain a callable function. Recovery: change argument
Hinweise: This named constructor may call a constructor defined by the developer.

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

Record
AUTOSAR/AP/record/SWS_EM_02562
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02562@rel:R25-11#a8d139d3
Content hash
a8d139d3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02562
Status: valid/unmigrated Version: rel:R25-11#446bd257 Versionshistorie & Revisions (1 transition, 4 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_EM_02562@rel:R25-11#446bd257
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#b09af1042026-09-30
  • R23-11rel:R23-11#10b43bed2026-10-14
  • R24-11rel:R24-11#7ed2aeda2026-10-14
  • R25-11rel:R25-11#446bd2572026-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

फ़ंक्शन ExecutionClient [SWS_EM_02560] Upstream: RS_EM_00103, RS_AP_00114, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00151, RS_AP_00159

ExecutionClient (std::function< void()> terminationHandler) noexcept(false);

Regular constructor for ExecutionClient.

Header-Datei#include "ara/exec/execution_client.h"
Scopeclass ara::exec::ExecutionClient
Exception-Sicherheitnot exception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
terminationHandlerCallback which is called if ExecutionClient receives SIGTERM signal. The callback is executed in a background thread. A typical implementation of this callback will set a global flag (and potentially unblock other threads) to perform a graceful termination. Lifetime: it is expected that terminationHandler remains callable, during entire lifetime of the ExecutionClient instance. This is especially important if, terminationHandler is bound to an instance of a class (e.g. using std::bind).

Fehler

FehlercodeBeschreibung
ara::exec::ExecErrc::kNoCommunicationno_rollback_semantics Communication error occurred. Recovery: try again
ara::exec::ExecErrc::kInvalidArgumentrollback_semantics Given terminationHandler doesn’t contain a callable function. Recovery: change argument

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

Record
AUTOSAR/AP/record/SWS_EM_02560
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02560@rel:R25-11#efe452a8
Content hash
efe452a8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02560
Status: valid/unmigrated Version: rel:R25-11#b496b6c8 Versionshistorie & Revisions (1 transition, 4 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_EM_02560@rel:R25-11#b496b6c8
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#4d2e754f2026-09-30
  • R23-11rel:R23-11#5f898e7b2026-10-14
  • R24-11rel:R24-11#852973d12026-10-14
  • R25-11rel:R25-11#b496b6c82026-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

फ़ंक्शन ExecutionClient [SWS_EM_02563] Upstream: RS_AP_00145, RS_EM_00103

ExecutionClient (const ExecutionClient &)=delete;

Suppress default copy construction for ExecutionClient.

Header-Datei#include "ara/exec/execution_client.h"
Scopeclass ara::exec::ExecutionClient

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

Record
AUTOSAR/AP/record/SWS_EM_02563
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02563@rel:R25-11#973a494f
Content hash
973a494f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02563
Status: valid/unmigrated Version: rel:R25-11#48d008ff Versionshistorie & Revisions (1 transition, 4 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_EM_02563@rel:R25-11#48d008ff
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#3bf6579d2026-09-30
  • R23-11rel:R23-11#0855bb1f2026-10-14
  • R24-11rel:R24-11#48d008ff2026-10-14
  • R25-11rel:R25-11#48d008ff2026-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

फ़ंक्शन ExecutionClient [SWS_EM_02580] Upstream: RS_AP_00145, RS_AP_00151, RS_EM_00103, RS_AP_00159

ExecutionClient (ExecutionClient &&rval) noexcept;

Intentional use of move constructor for ExecutionClient.

Header-Datei#include "ara/exec/execution_client.h"
Scopeclass ara::exec::ExecutionClient
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
rvalreference to move

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

Record
AUTOSAR/AP/record/SWS_EM_02580
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02580@rel:R25-11#ebafb4e8
Content hash
ebafb4e8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02580
Status: valid/unmigrated Version: rel:R25-11#69808ed1 Versionshistorie & Revisions (1 transition, 4 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_EM_02580@rel:R25-11#69808ed1
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#9705a7202026-09-30
  • R23-11rel:R23-11#bfc33dca2026-10-14
  • R24-11rel:R24-11#b1c8ead12026-10-14
  • R25-11rel:R25-11#69808ed12026-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

फ़ंक्शन ReportExecutionState [SWS_EM_02003] Upstream: RS_EM_00103, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00128, RS_AP_00139, RS_AP_00159

ara::core::Result< void > ReportExecutionState (ExecutionState state) noexcept;

Interface for a Process to report its internal state to Execution Management.

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

उपयोग

हेडर ara/exec/execution_client.h से क्लास ara::exec::ExecutionClient का method ReportExecutionState किसी प्रक्रिया के लिए अपनी वर्तमान आंतरिक स्थिति की रिपोर्ट Execution Management को करने के लिए कार्य करता है [SWS_EM_02003]। प्रकार ExecutionState का state पैरामीटर के रूप में पास किया जाता है, जो प्रेषित की जाने वाली प्रक्रिया स्थिति को दर्शाता है [SWS_EM_02003]। फ़ंक्शन ara::core::Result<void> का एक इंस्टेंस लौटाता है [SWS_EM_02003]। चूंकि सीधे एक Result प्रकार लौटाया जाता है और Future ऑब्जेक्ट नहीं, इसलिए कॉल सिंक्रोनस रूप से तब तक ब्लॉक हो सकता है जब तक कि Execution Management को हैंडओवर की पुष्टि नहीं हो जाती। प्रश्न Q-20e897d6a6387c36 (खुला)

त्रुटि प्रबंधन

यदि रिपोर्टिंग के दौरान कोई समस्या आती है, तो लौटाए गए ara::core::Result में संबंधित ErrorCode शामिल होता है [SWS_EM_02003]:

  • ara::exec::ExecErrc::kNoCommunication: एप्लिकेशन और Execution Management के बीच संचार त्रुटि है, उदाहरण के लिए क्योंकि कोई रसीद पावती प्राप्त नहीं हुई थी [SWS_EM_02003]। इस त्रुटि में कोई रोलबैक सिमेंटिक्स नहीं है; इसे हल करने के लिए कॉल को दोहराया जाना चाहिए [SWS_EM_02003]।
  • ara::exec::ExecErrc::kInvalidTransition: एक अमान्य स्थिति संक्रमण का अनुरोध किया गया था, उदाहरण के लिए Running में संक्रमण, यदि प्रक्रिया पहले से ही स्थिति Running में है [SWS_EM_02003]। यहाँ रोलबैक सिमेंटिक्स लागू होता है; पुनः रिपोर्ट करने की आवश्यकता नहीं है, क्योंकि स्थिति पहले से ही सक्रिय रूप से रिपोर्ट की जा चुकी है [SWS_EM_02003]।

समवर्तीता और प्रतिबंध

फ़ंक्शन को noexcept के साथ घोषित किया गया है और अपवाद-सुरक्षित (exception safe) के रूप में निर्दिष्ट किया गया है [SWS_EM_02003]। इसके अतिरिक्त, निष्पादन को थ्रेड-सुरक्षित (thread-safe) के रूप में वर्गीकृत किया गया है, जिससे समानांतर कॉल की अनुमति मिलती है [SWS_EM_02003]।

यह उपयोग संबंधी निर्देश AUTOSAR Adaptive R25-11 विनिर्देश के आधार पर स्वचालित रूप से तैयार किया गया था।

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

Header-Datei#include "ara/exec/execution_client.h"
Scopeclass ara::exec::ExecutionClient
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
stateValue representing the current Process state, that should be reported.

Rückgabewert

TypBeschreibung
ara::core::Result< void >An instance of ara::core::Result. The instance holds an ErrorCode containing either one of the specified errors or a void-value.

Fehler

FehlercodeBeschreibung
ara::exec::ExecErrc::kNoCommunicationno_rollback_semantics Communication error between Application and Execution Management, e.g. unable to get confirmation that report was received. Recovery: try again
ara::exec::ExecErrc::kInvalidTransitionrollback_semantics Invalid transition request (e.g. to Running when already in Running state). Recovery: Already reported kRunning, no need to do it again

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

Record
AUTOSAR/AP/record/SWS_EM_02003
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02003@rel:R25-11#26abcd67
Content hash
26abcd67
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02003
Status: valid/unmigrated Version: rel:R25-11#8dd3f4fb 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_EM_02003@rel:R25-11#8dd3f4fb
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#70c6d4fc2026-09-30
  • R19-11rel:R19-11#6ec8f2a12026-10-14
  • R20-11rel:R20-11#7128c8e92026-10-14
  • R21-11rel:R21-11#acde35792026-10-14
  • R22-11rel:R22-11#7a61d6522026-10-14
  • R23-11rel:R23-11#9f4cfa0a2026-10-14
  • R24-11rel:R24-11#9fdbf0442026-10-14
  • R25-11rel:R25-11#8dd3f4fb2026-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_EM_02564] Upstream: RS_AP_00145, RS_EM_00103

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

Suppress default copy assignment for ExecutionClient.

Header-Datei#include "ara/exec/execution_client.h"
Scopeclass ara::exec::ExecutionClient

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

Record
AUTOSAR/AP/record/SWS_EM_02564
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02564@rel:R25-11#f780009a
Content hash
f780009a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02564
Status: valid/unmigrated Version: rel:R25-11#0e69a4c3 Versionshistorie & Revisions (1 transition, 4 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_EM_02564@rel:R25-11#0e69a4c3
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#5fd8c8d72026-09-30
  • R23-11rel:R23-11#95edc0282026-10-14
  • R24-11rel:R24-11#0e69a4c32026-10-14
  • R25-11rel:R25-11#0e69a4c32026-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_EM_02581] Upstream: RS_AP_00145, RS_AP_00151, RS_EM_00103, RS_AP_00159

ExecutionClient & operator= (ExecutionClient &&rval) noexcept;

Intentional use of move assignment for ExecutionClient.

Header-Datei#include "ara/exec/execution_client.h"
Scopeclass ara::exec::ExecutionClient
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
rvalreference to move

Rückgabewert

TypBeschreibung
ExecutionClient &the new reference

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

Record
AUTOSAR/AP/record/SWS_EM_02581
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02581@rel:R25-11#9aae2d14
Content hash
9aae2d14
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02581
Status: valid/unmigrated Version: rel:R25-11#d50ab3a7 Versionshistorie & Revisions (1 transition, 4 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_EM_02581@rel:R25-11#d50ab3a7
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#8bd067d32026-09-30
  • R23-11rel:R23-11#6f06c4d02026-10-14
  • R24-11rel:R24-11#1f7e972e2026-10-14
  • R25-11rel:R25-11#d50ab3a72026-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

फ़ंक्शन ~ExecutionClient [SWS_EM_02002] Upstream: RS_AP_00134, RS_AP_00145, RS_EM_00103

~ExecutionClient () noexcept;

noexcept destructor

Header-Datei#include "ara/exec/execution_client.h"
Scopeclass ara::exec::ExecutionClient
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe
Hinweise: Since ExecutionClient overtake the responsibility for handling SIGTERM signal, it should reset SIGTERM handler back to its original value, when destructor is called.

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

Record
AUTOSAR/AP/record/SWS_EM_02002
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_EM_02002@rel:R25-11#3ac1788a
Content hash
3ac1788a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_ExecutionManagement.pdf#nameddest=SWS_EM_02002
Status: valid/unmigrated Version: rel:R25-11#237e9e13 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_EM_02002@rel:R25-11#237e9e13
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#83a6d1fb2026-09-30
  • R19-11rel:R19-11#0b0868932026-10-14
  • R20-11rel:R20-11#5fafdb7e2026-10-14
  • R21-11rel:R21-11#9edc69f82026-10-14
  • R22-11rel:R22-11#017254c22026-10-14
  • R23-11rel:R23-11#cd930a1f2026-10-14
  • R24-11rel:R24-11#a36d0a662026-10-14
  • R25-11rel:R25-11#237e9e132026-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