![](/images/new-backgrounds/1120837/12083769x1.webp)
Sample Application
A
A.1 Overview
The sample AvSv application is a 'counter' application that is run in a
The sample application shows you how to use some APIs defined in the
zPassive monitoring
zProtection Group tracking
zComponent failover (triggered by a
z
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,
In the
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
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 |