VLScgSetMajorityRuleFlag
Syntax
int VLScgSetMajorityRuleFlag (VLScg_HANDLE iHandle, codeT *codeP, char *flag);
Argument | Description |
iHandle |
The instance handle for this library. |
codeP |
The pointer to the codeT struct. |
flag |
Valid values are: >VLScg_MAJORITY_RULE_FOLLOWS_STRING - Sets the majority_rule_flag = “1” >VLScg_MAJORITY_RULE_NOT_FOLLOWS_STRING - Removes the majority_rule_flag = “0” |
Description
Controls whether the majority of redundant License Managers must be running.
If the number of redundant License Managers running is less than half of the number of License Managers specified in the license file, then all License Managers will stop servicing all old and new clients. For example, if 7 redundant License Managers are specified, at least 4 of them must be running to satisfy the majority rule.
Returns
The status code VLScg_SUCCESS is returned if successful. Otherwise, it will return the following error codes:
Error Code | Description |
VLScg_INVALID_INT_TYPE |
If value is not numeric. |
VLScg_EXCEEDS_MAX_VALUE |
If value exceeds VLScg_MAJORITY_RULE_FOLLOWS. |
VLScg_LESS_THAN_MIN_VALUE |
If value is lower than VLScg_MAJORITY_RULE_NOT_FOLLOWS. |
For the complete list of the error codes, refer to License Generation and Revocation Error Codes .