"Fossies" - the Fresh Open Source Software Archive

Member "opensaf-5.21.09/src/amf/agent/amf_agent.h" (31 May 2021, 5632 Bytes) of package /linux/misc/opensaf-5.21.09.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "amf_agent.h" see the Fossies "Dox" file reference documentation.

    1 /*      -*- OpenSAF  -*-
    2  *
    3  * (C) Copyright 2016 The OpenSAF Foundation
    4  *
    5  * This program is distributed in the hope that it will be useful, but
    6  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
    7  * or FITNESS FOR A PARTICULAR PURPOSE. This file and program are licensed
    8  * under the GNU Lesser General Public License Version 2.1, February 1999.
    9  * The complete license can be accessed from the following location:
   10  * http://opensource.org/licenses/lgpl-license.php
   11  * See the Copying file included with the OpenSAF distribution for full
   12  * licensing terms.
   13  *
   14  * Author(s): Ericsson AB
   15  *
   16  */
   17 
   18 #ifndef AMF_AGENT_AMF_AGENT_H_
   19 #define AMF_AGENT_AMF_AGENT_H_
   20 
   21 class AmfAgent {
   22  public:
   23   static SaAisErrorT Initialize(SaAmfHandleT *o_hdl,
   24                                 const SaAmfCallbacksT *reg_cbks,
   25                                 SaVersionT *io_ver);
   26 
   27   static SaAisErrorT SelectionObjectGet(SaAmfHandleT hdl,
   28                                         SaSelectionObjectT *o_sel_obj);
   29 
   30   static SaAisErrorT Dispatch(SaAmfHandleT hdl, SaDispatchFlagsT flags);
   31 
   32   static SaAisErrorT Finalize(SaAmfHandleT hdl);
   33 
   34   static SaAisErrorT ComponentRegister(SaAmfHandleT hdl,
   35                                        const SaNameT *comp_name,
   36                                        const SaNameT *proxy_comp_name);
   37 
   38   static SaAisErrorT ComponentUnregister(SaAmfHandleT hdl,
   39                                          const SaNameT *comp_name,
   40                                          const SaNameT *proxy_comp_name);
   41 
   42   static SaAisErrorT HealthcheckStart(SaAmfHandleT hdl,
   43                                       const SaNameT *comp_name,
   44                                       const SaAmfHealthcheckKeyT *hc_key,
   45                                       SaAmfHealthcheckInvocationT inv,
   46                                       SaAmfRecommendedRecoveryT rec_rcvr);
   47 
   48   static SaAisErrorT HealthcheckStop(SaAmfHandleT hdl, const SaNameT *comp_name,
   49                                      const SaAmfHealthcheckKeyT *hc_key);
   50 
   51   static SaAisErrorT HealthcheckConfirm(SaAmfHandleT hdl,
   52                                         const SaNameT *comp_name,
   53                                         const SaAmfHealthcheckKeyT *hc_key,
   54                                         SaAisErrorT hc_result);
   55 
   56   static SaAisErrorT PmStart(SaAmfHandleT hdl, const SaNameT *comp_name,
   57                              SaUint64T processId, SaInt32T desc_TreeDepth,
   58                              SaAmfPmErrorsT pmErr,
   59                              SaAmfRecommendedRecoveryT rec_Recovery);
   60 
   61   static SaAisErrorT PmStop(SaAmfHandleT hdl, const SaNameT *comp_name,
   62                             SaAmfPmStopQualifierT stopQual, SaInt64T processId,
   63                             SaAmfPmErrorsT pmErr);
   64 
   65   static SaAisErrorT ComponentNameGet(SaAmfHandleT hdl, SaNameT *o_comp_name);
   66 
   67   static SaAisErrorT CSIQuiescingComplete(SaAmfHandleT hdl, SaInvocationT inv,
   68                                           SaAisErrorT error);
   69 
   70   static SaAisErrorT HAStateGet(SaAmfHandleT hdl, const SaNameT *comp_name,
   71                                 const SaNameT *csi_name, SaAmfHAStateT *o_ha);
   72 
   73   static SaAisErrorT ProtectionGroupTrack(
   74       SaAmfHandleT hdl, const SaNameT *csi_name, SaUint8T flags,
   75       SaAmfProtectionGroupNotificationBufferT *buf);
   76 
   77   static SaAisErrorT ProtectionGroupTrackStop(SaAmfHandleT hdl,
   78                                               const SaNameT *csi_name);
   79 
   80   static SaAisErrorT ComponentErrorReport(SaAmfHandleT hdl,
   81                                           const SaNameT *err_comp,
   82                                           SaTimeT err_time,
   83                                           SaAmfRecommendedRecoveryT rec_rcvr,
   84                                           SaNtfIdentifierT ntf_id);
   85 
   86   static SaAisErrorT ComponentErrorClear(SaAmfHandleT hdl,
   87                                          const SaNameT *comp_name,
   88                                          SaNtfIdentifierT ntf_id);
   89 
   90   static SaAisErrorT Response(SaAmfHandleT hdl, SaInvocationT inv,
   91                               SaAisErrorT error);
   92 
   93   static SaAisErrorT Initialize_4(SaAmfHandleT *o_hdl,
   94                                   const SaAmfCallbacksT_4 *reg_cbks,
   95                                   SaVersionT *io_ver);
   96 
   97   static SaAisErrorT PmStart_3(SaAmfHandleT hdl, const SaNameT *comp_name,
   98                                SaInt64T processId, SaInt32T desc_TreeDepth,
   99                                SaAmfPmErrorsT pmErr,
  100                                SaAmfRecommendedRecoveryT rec_Recovery);
  101 
  102   static SaAisErrorT ProtectionGroupTrack_4(
  103       SaAmfHandleT hdl, const SaNameT *csi_name, SaUint8T flags,
  104       SaAmfProtectionGroupNotificationBufferT_4 *buf);
  105 
  106   static SaAisErrorT ProtectionGroupNotificationFree_4(
  107       SaAmfHandleT hdl, SaAmfProtectionGroupNotificationT_4 *notification);
  108 
  109   static SaAisErrorT ComponentErrorReport_4(SaAmfHandleT hdl,
  110                                             const SaNameT *err_comp,
  111                                             SaTimeT err_time,
  112                                             SaAmfRecommendedRecoveryT rec_rcvr,
  113                                             SaNtfCorrelationIdsT *corr_ids);
  114 
  115   static SaAisErrorT ComponentErrorClear_4(SaAmfHandleT hdl,
  116                                            const SaNameT *comp_name,
  117                                            SaNtfCorrelationIdsT *corr_ids);
  118 
  119   static SaAisErrorT Response_4(SaAmfHandleT hdl, SaInvocationT inv,
  120                                 SaNtfCorrelationIdsT *corr_ids,
  121                                 SaAisErrorT error);
  122 };
  123 
  124 #endif  // AMF_AGENT_AMF_AGENT_H_