191 extern ClRcT clGmsClusterJoin(
239 extern ClRcT clGmsClusterJoinAsync(
276 extern ClRcT clGmsClusterLeave(
281 extern ClRcT clGmsClusterLeaveNative(
314 extern ClRcT clGmsClusterLeaveAsync(
Typical defines found in any software project.
Header file of Group Membership Service APIs.
ClGmsNodeIdT deputy
Node marked as deputy.
Definition: clClmTmsCommon.h:23
ClBoolT leadershipChanged
To check whether the leader has changed since the last view.
Definition: clClmTmsCommon.h:28
ClGmsNodeIdT leader
Node ID of current leader.
Definition: clClmTmsCommon.h:18
ClUint32T ClRcT
Clovis return code type.
Definition: clCommon.h:168
#define CL_INOUT
CL_INOUT macro assists in clearly defining arguments of an API, but has no actual meaning.
Definition: clCommon.h:108
ClInt64T ClTimeT
Time duration specified in nanoseconds.
Definition: clCommon.h:154
#define CL_IN
CL_IN macro assists in clearly defining arguments of an API, but has no actual meaning.
Definition: clCommon.h:106
ClHandleT ClGmsHandleT
Handle for using the GMS API.
Definition: clClmTmsCommon.h:137
void(* ClGmsClusterMemberEjectCallbackT)(CL_IN ClGmsMemberEjectReasonT reasonCode)
Callback for indicating that member was expelled from the cluster.
Definition: clClmApi.h:104
ClGmsMemberEjectReasonT
Reason codes for ejecting the user from cluster/group.
Definition: clClmTmsCommon.h:620
ClUint32T ClGmsLeadershipCredentialsT
Credentials for leader election.
Definition: clClmTmsCommon.h:150
ClRcT clGmsClusterMemberEject(CL_IN ClGmsHandleT gmsHandle, CL_IN ClGmsNodeIdT nodeId, CL_IN ClGmsMemberEjectReasonT reason)
Forcibly removes a member from the cluster.
ClRcT clGmsClusterLeaderElect(CL_IN ClGmsHandleT gmsHandle, CL_IN ClGmsNodeIdT preferredLeader, CL_INOUT ClGmsNodeIdT *leader, CL_INOUT ClGmsNodeIdT *deputy, CL_INOUT ClBoolT *leadershipChanged)
Initiate leader election synchronously.
ClUint32T ClGmsNodeIdT
Node ID – Unique and consistent identifier of a node.
Definition: clClmTmsCommon.h:143
ClGmsGroupChangesT
Enumerator and structure of member status notification.
Definition: clClmTmsCommon.h:463
ClRcT(* ClGmsLeaderElectionAlgorithmT)(ClGmsClusterNotificationBufferT buffer, ClGmsNodeIdT *leaderNodeId, ClGmsNodeIdT *deputyNodeId, ClGmsClusterMemberT *memberJoinedOrLeft, ClGmsGroupChangesT cond, ClBoolT splitBrain)
Signature of the leader election algorithm used in the GMS engine .
Definition: clClmApi.h:137
A name.
Definition: clCommon.h:197
This structure contains the cluster managing callbacks provided at the joining time by the member.
Definition: clClmApi.h:114
ClGmsClusterMemberEjectCallbackT clGmsMemberEjectCallback
Pointer to the Eject Callback funtion.
Definition: clClmApi.h:119
This structure describes one member (or node) of the cluster.
Definition: clClmTmsCommon.h:244
Buffer to convey the view: the list of nodes and their status.
Definition: clClmTmsCommon.h:337