- Description has changed:
Diff:
~~~~
--- old
+++ new
@@ -5,7 +5,7 @@
* 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:
+ -Callback and its argument:
void (*OsafAmfSCStatusChangeCallbackT)(OsafAmfSCStatusT state)
where OsafAmfSCStatusT is defined as:
@@ -15,8 +15,21 @@
} OsafAmfSCStatusT;
This callback can be integrated
- with standard AMF application component .
+ 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(
- void (*OsafAmfSCStatusChangeCallbackT)(OsafAmfSCStatusT status)
-
+ 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.
+
~~~~
- **Comment**:
V2 contains following changes:
-Now API takes amfhandle as argument.
-Added one more demo to demonstrate the usage.
-Added api test cases for the API.
---
** [tickets:#2475] amf: support for SC status change Callback, non SAF.**
**Status:** review
**Milestone:** 5.17.10
**Created:** Thu Jun 01, 2017 10:19 AM UTC by Praveen
**Last Updated:** Sat Jul 01, 2017 04:15 PM 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 [email protected] 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets