C H A P T E R  1

Foundation Services SA Forum CLM API

The Service Availability Forum (SA Forum) Cluster Membership (CLM) API can be used to develop programs for highly available clusters running the Foundation Services. For more information, see the following topics:


Overview

Foundation Services 3.0 is supported for use with the SA Forum CLM API B.02.01, in addition to the existing CMM API.

The CLM API provides a programming interface to the Cluster Membership Service, which provides membership information about the nodes in a cluster. This API enables you to write applications that monitor the state of peer nodes. You can use the CLM API to obtain information about which node is a member of the cluster.

More information about the SA Forum/CLM API can be found at:http://www.saforum.org/

This interaction of the CLM API with the Foundation Services is illustrated in FIGURE 1-1.

FIGURE 1-1   Interaction of the Cluster Membership Service With Your Applications Using the CLM API

Flow diagram shows applications requesting
node information from the CMM. Flow diagram also shows applications
receiving notifications from the CMM.



Characteristics of the CLM API

The CLM API enables you to create highly available applications to determine which nodes are in the cluster. The main functions of the CLM API are as follows:

The CLM API has the following multithreading characteristics:

The locations of the CLM API header file and the default location for the CLM API library files differ depending on the operating system (OS) used.

To access the CLM API header file and libraries for the Solaris OS, the following packages must be installed in your development environment:

To access the CLM API header file and libraries for Linux, the following packages must be installed in your development environment:

In addition, examples of using SA Forum/CLM will be provided in the SUNWnhas-safclm-headers package in the /opt/SUNWcgha/examples/SaClm_API directory (Solaris OS) or the /opt/sun/nhas/examples/SaClm_API directory (Linux OS).