- **status**: review --> fixed
- **Comment**:

commit 00c185144de728f7938f775fd3ce65ee95b01032
Author: Praveen <praveen.malv...@oracle.com>
Date:   Mon Aug 28 14:32:32 2017 +0530

    amf: update readme for SC status change callback [#2475]

commit b93cf244b3fb64bc213d82125e1665b50b80f2c6
Author: Praveen <praveen.malv...@oracle.com>
Date:   Mon Aug 28 14:32:33 2017 +0530

    amf: support SC status change callback, non SAF [#2475]

commit 81e2878c1fa3287e37238a38a1bb054951489e86
Author: Praveen <praveen.malv...@oracle.com>
Date:   Mon Aug 28 14:32:33 2017 +0530

    amf: add sample apps for SC status change callback [#2475]

commit a79bb4c527ec3c59a61ce6552184c18213fe4acd
Author: Praveen <praveen.malv...@oracle.com>
Date:   Mon Aug 28 14:32:33 2017 +0530

    amf: add api test cases for sc status change callback [#2475]




---

** [tickets:#2475] amf: support for SC status change Callback, non SAF.**

**Status:** fixed
**Milestone:** 5.17.10
**Created:** Thu Jun 01, 2017 10:19 AM UTC by Praveen
**Last Updated:** Mon Aug 14, 2017 08:27 AM UTC
**Owner:** Praveen


This enhancement is for supporting two resources in AMFA which will enable 
application to know about
SCs Absence and Presence state when they go down and comes up.

Information about the resources:
* A callback that will be invoked by AMFA whenever a SC joins cluster and
  both SCs leaves cluster if SC Absence feature is enabled.

  -Callback and its argument:

      void (*OsafAmfSCStatusChangeCallbackT)(OsafAmfSCStatusT state)
      where OsafAmfSCStatusT is defined as:
        typedef enum {
          OSAF_AMF_SC_PRESENT = 1,
          OSAF_AMF_SC_ABSENT = 2,
        } OsafAmfSCStatusT;

  This callback can be integrated
  with standard AMF component(even with legacy one also).

  -Return codes:
   SA_AIS_OK - The function returned successfully.
   SA_AIS_ERR_LIBRARY - An unexpected problem occurred in the library (such as
                        corruption). The library cannot be used anymore.
   SA_AIS_ERR_BAD_HANDLE - The handle amfHandle is invalid, since it is 
corrupted,
                           uninitialized, or has already been finalized.
   SA_AIS_ERR_INVALID_PARAM - A parameter is not set correctly (callback).

* An API to register/install above callback function:
   void osafAmfInstallSCStatusChangeCallback(SaAmfHandleT amfHandle,
     void (*OsafAmfSCStatusChangeCallbackT)(OsafAmfSCStatusT status));
   If 0 is passed as amfHandle, then callback will be invoked in the
   context of MDS thread. If a valid amfHandle is passed then callback
   will be invoked in the context of thread which is calling saAmfDispatch()
   with this handle.




---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to