![]() |
|||
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
| ||
Chapter 1The Foundation Services CMM APIThe CMM API can be used to develop programs for highly available clusters running the Foundation Services. For more information, see the following topics: OverviewThe CMM API provides a programming interface to the Cluster Membership Manager (CMM). For information about the CMM, see the Netra High Availability Suite Foundation Services 2.1 6/03 Overview. The CMM API enables you to write applications that manage peer nodes in the cluster and that monitor the role, qualification level, and state of these peer nodes. You can use the CMM API to obtain information about which node is the master node, the vice-master node, and a member of the cluster. The CMM API also provides functions that modify the state of a cluster and enable a node to receive information about changes in the state of a cluster. This interaction of the CMM API with the Foundation Services is illustrated in Figure 1-1. Figure 1-1 Interaction of the CMM With Your Applications Using the CMM API ![]() Characteristics of the CMM APIThe CMM API enables you to create highly available applications to determine which nodes are in the cluster, and which of these nodes is the master node and the vice-master node. The main functions of the CMM API are to: The CMM API has the following multithreading characteristics:
Examples of the CMM API are provided in the SUNWnhcmd package. These examples are available after installation on a peer node, in the /opt/SUNWcgha/examples/cmm_API directory. For more information, see CMM API Code Examples. The CMM API header file, cmm.h, is located in the /opt/SUNWcgha/include directory. The default location of the CMM API library files in the /opt/SUNWcgha/lib directory. To access the CMM API header file and libraries, the SUNWnhcmd package must be installed in your development environment. See Chapter 3, Setting up the Development Environment and Chapter 4, Building CMM Applications for information about creating a development environment for the Foundation Services product. | ||
| ||
![]() |