---
src/amf/README_SC_ABSENCE | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/src/amf/README_SC_ABSENCE b/src/amf/README_SC_ABSENCE
index 3933b78..6e55198 100644
--- a/src/amf/README_SC_ABSENCE
+++ b/src/amf/README_SC_ABSENCE
@@ -156,3 +156,32 @@ amfd to lose all objects which were created before SC
absence and data
inconsistency will occur between amfnd and amfd/IMM on the SC. To avoid this
inconsistency, the payload will be rebooted.
+SC Status Change Callback
+=========================
+Enhancement supports two resources for application to know about
+SC joining and leaving the cluster.
+
+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).
+* An API to register/install above callback function:
+ void osafAmfInstallSCStatusChangeCallback(
+ void (*OsafAmfSCStatusChangeCallbackT)(OsafAmfSCStatusT status));
+
+Note: OsafAmfSCStatusT and API is declared in saAmf.h
+
+Also an application amf_sc_status_app.c to demonstrate the usage
+is added in samples/amf/sa_aware/.
+
--
1.9.1
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel