genivi-ipc@lists.genivi.org

Development list for inter process communication (IPC) related topics

View all threads

Re: [Genivi-ipc] Common Api Server status notification

윤승현
Tue, Jul 18, 2017 2:24 AM

Hello Devrukhkar,

Proxy provides status event, so you can subscribe that event and receive
connection status of proxy to service

You may subscribe event as follows:

CommonAPI::Event<CommonAPI::AvailabilityStatus>::Listener func =
std::bind(&{ClassName}::onConnectionStatusChanged, this,
std::placeholders::_1);

{Proxy}->getProxyStatusEvent()subscribe( func );

Best Regards,

SeungHyun(Sam) Yun

------------Original Message------------

Subject : [Genivi-ipc] Common Api Server status notification

Date : 2017-07-17 23:04:40

From : "Devrukhkar, Hrishikesh (H)" <hdevrukh@visteoncom>

To : "genivi-ipc@listsgeniviorg" <genivi-ipc@listsgeniviorg>

Cc :

Hello,

In CommonAPI, on client side, after building the proxy we check for the
it's availability once and then start using this proxy

However if the server crashes due to some reasons after successfully
checking it's availability on client side, the method calls related to
that server will fail

So is there any mechanism in CommonAPI, using which we can subscribe to the
status of the service ? And in turn will take proper actions until the
service restarts

Any suggestions to solve this are appreciated

Regards,
Hrishikesh Devrukhkar


genivi-ipc mailing list
genivi-ipc@listsgeniviorg
https://listsgeniviorg/mailman/listinfo/genivi-ipc

Hello Devrukhkar, Proxy provides status event, so you can subscribe that event and receive connection status of proxy to service You may subscribe event as follows: CommonAPI::Event&lt;CommonAPI::AvailabilityStatus&gt;::Listener func = std::bind(&amp;{ClassName}::onConnectionStatusChanged, this, std::placeholders::_1); {Proxy}-&gt;getProxyStatusEvent()subscribe( func ); Best Regards, SeungHyun(Sam) Yun ------------Original Message------------ Subject : [Genivi-ipc] Common Api Server status notification Date : 2017-07-17 23:04:40 From : &quot;Devrukhkar, Hrishikesh (H)&quot; &lt;hdevrukh@visteoncom&gt; To : &quot;genivi-ipc@listsgeniviorg&quot; &lt;genivi-ipc@listsgeniviorg&gt; Cc : Hello, In CommonAPI, on client side, after building the proxy we check for the it&#39;s availability once and then start using this proxy However if the server crashes due to some reasons after successfully checking it&#39;s availability on client side, the method calls related to that server will fail So is there any mechanism in CommonAPI, using which we can subscribe to the status of the service ? And in turn will take proper actions until the service restarts Any suggestions to solve this are appreciated Regards, Hrishikesh Devrukhkar _______________________________________________ genivi-ipc mailing list genivi-ipc@listsgeniviorg https://listsgeniviorg/mailman/listinfo/genivi-ipc