Motorola 6806800C44B manual Sequence of Events in the Sample Application

Page 35

Sample Application

A

A.1 Overview

The sample AvSv application is a 'counter' application that is run in a 2N-redundancy model. The active entity counts periodically. When it fails, the standby entity becomes active and resumes counting from where the previous active entity failed.

The sample application shows you how to use some APIs defined in the SAI-AIS AMF service. It also demonstrates the following features:

zPassive monitoring

zProtection Group tracking

zComponent failover (triggered by a component-generated error report) followed by component restart repair.

zAMF-invoked health check

A.1.1 Sequence of Events in the Sample Application

When the demo is started, AvSv instantiates two instances of the sample application per the configuration in the BOM. The sequence of events in both the applications is described below

Create 3 threads (one each for the counter application, AMF-INTF, and CKPT-INTF)

In the AMF-INTF thread:

1.Initialize with AMF

2.Call the AMF selection object

3.Call the API to get the component name

4.Register the component

5.Wait on the AMF selection object for callback events.

In the CKPT-INTF thread:

zOpen the local checkpoint

zInitialize with CKPT

zRegister the arrival callback

zCall the CKPT selection object

zWait on the CKPT selection object for callback events

AMF dispatches CsiSetCallback with active/standby HA state.

Availability Service Programmer’s Reference (6806800C44B)

35

Image 35 Contents
Availability Service Trademarks Contents Sample Application ContentsList of Tables List of Tables List of Figures Availability Service SubpartsList of Figures Abbreviations Overview of ContentsAbout this Manual Bold ConventionsAbout this Manual Abbreviation Definition Notation DescriptionPart Number Publication Date Description Summary of ChangesComments and Suggestions About this ManualAbout this Manual Overview IntroductionIntroduction Models and Concepts Service Structure OverviewModels and Concepts Service Structure Overview Introduction Availability Service SubpartsSection Description Supported Compliance ReportIntroduction Compliance Report Section Description Support Compliance ReportIntroductionSaAmfSGMaxActiveSIspe IntroductionCompliance ReportSaAmfSUsperSIRankTabl IntroductionCompliance Report Dependencies Service Definition DocumentsAvailability Service Dependencies Service DependencyImplementation Notes Service ExtensionsConfiguration Introduction Service ExtensionsMIB Table ID\Trap ID Description Management InterfaceManagement Information Base MIB NCS-AVSV-MIBMIB Table ID/Object ID Description NCS-AVM-MIBManagement InterfaceNCS-AVM-MIB SAF-AMF-MIB SAF-AMF-MIBManagement Interface Example MIB Operations Example MIB OperationsSAF-CLM-MIB Install an Application Component on a Sample Node Filter Description AvSv TrapsAvSv Traps Management Interface AvSv Traps1 set Command Line Interface7 XML Management Interface Admin reset Admin lock Admin lockAdmreq /2/9/ operation shutdown Management Interface Admin lockAdmswitch AdmswitchAdmswitch Sequence of Events in the Sample Application Sample ApplicationSample Application Configuration for the Sample Application Configuration for the Sample ApplicationBuilding the Sample Application Building the Sample ApplicationRunning the Sample Application Sample Application Sample Application Output Sample Application OutputCounter Value Demonstrating AMF-INITIATED Healthcheck Counter Value Ckpt Wrote 5 to the CheckPoint Ckpt Wrote 9 to the CheckPoint Ckpt Wrote 13 to the CheckPoint Sample ApplicationSample Application Output Ckpt Wrote 21 to the CheckPoint Ckpt Wrote 23 to the CheckPoint Sample Application Output For the stand-by node Sample Application Output Sample Application Sample Application Output Demo Over Unregister & Finalize the Component Counter Value Demo Over Document Title Publication Number Related DocumentationMotorola Embedded Communications Computing Documents Table B-1 Motorola PublicationsDocument Title Version/Source Related SpecificationsTable B-2 Related Specifications Related Documentation Related Specifications