Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next

Using the sflag Field of the cmm_member_t Structure

As explained in Using the cmm_member_t Structure for Information About Member Nodes, the sflag part of the cmm_member_t structure stores information about a node's administrative attributes, membership role, and qualification levels. This information is stored in a bit mask in the sflag. The following functions extract information from the sflag field:

cmm_member_isdesynchronized()

Determines whether a master-eligible node is desynchronized. While the node has the CMM_OUT_OF_CLUSTER role, the qualification level and CMM_FLAG_SYNCHRO_NEEDED flag are meaningless.

cmm_member_isdisqualified()

Determines whether a master-eligible node has the CMM_DISQUALIFIED_MEMBER qualification level. While the node has the CMM_OUT_OF_CLUSTER role, the qualification level and CMM_FLAG_SYNCHRO_NEEDED flag are meaningless.

cmm_member_isqualified ()

Determines whether a master-eligible node has the CMM_QUALIFIED_MEMBER qualification level. While the node has the CMM_OUT_OF_CLUSTER role, the qualification level and CMM_FLAG_SYNCHRO_NEEDED flag are meaningless.

cmm_member_iseligible ()

Determines whether a node has the CMM_ELIGIBLE_MEMBER attribute.

cmm_member_isexcluded()

Determines whether a node has the CMM_EXCLUDED_MEMBER attribute.

cmm_member_isfrozen()

Determines whether a node has a CMM_FROZEN_MEMBER attribute.

cmm_member_isoutofcluster()

Determines whether a node has the CMM_OUT_OF_CLUSTER role. While a node has the CMM_OUT_OF_CLUSTER role, the qualification level and synchronization flag of the node are meaningless.

cmm_member_isvicemaster()

Determines whether a node has the CMM_VICEMASTER role.

cmm_member_ismaster()

Determines whether a node has the CMM_MASTER role.


Note - It is safer to use the cmm_member_is...() functions than to rely on direct extraction of node information from these extract flags.

For more information about the cmm_member_is...() functions, see Identifying the Current Node, and Identifying the Role of a Node . See also the cmm_member_iseligible(3CMM) and cmm_member_ismaster(3CMM) man pages.


Previous Previous     Contents     Index     Next Next