tibasMember_GetDistributionRole()

Returns the distribution role of the member for the given space.

Declaration

tibas_status tibasMember_GetDistributionRole(
    tibasMember             member,
    char*                   spaceName,
    tibas_distributionRole* distributionRole)

Parameters

Parameter Description
member Provide a tibasMember object that specifies which member to return the distribution role for.
spaceName The name of the space for which the member's distribution role will be returned.
distributionRole The distribution role of the member. Can be one of the following:
  • TIBAS_DISTRIBUTION_ROLE_NONE
  • TIBAS_DISTRIBUTION_ROLE_LEECH
  • TIBAS_DISTRIBUTION_ROLE_SEEDER

Remarks

Use the tibasMember_GetDistributionRole() function to return the distribution role that is assigned to a specified space member. The distribution role can be one of the following:

TIBAS_DISTRIBUTION_ROLE_SEEDER
Specifies that the space member is a seeder—an application that participates in the storing of data in the space, and can read and write data. When seeder applications join or leave the space, ActiveSpaces redistributes the data in the space as necessary to maintain even data distribution.
TIBAS_DISTRIBUTION_ROLE_LEECH
Specifies that the space member is a leech—an application that passively participates in the space and does not read and write data or cause redistribution of space data when it joins or leaves the space.
TIBAS_DISTRIBUTION_ROLE_NONE
Indicates that the specified member has not joined the space.