Define APIs for the servicegroup access.
Bases: object
Returns ALL members of the given group.
Returns one member of the given group. The strategy to select the member is decided by the driver (e.g. random or round-robin).
Add a new member to the ServiceGroup
@param member_id: the joined member ID @param group_id: the group name, of the joined member @param service: the parameter can be used for notifications about disconnect mode and update some internals
Explicitly remove the given member from the ServiceGroup monitoring.
Check if the given member is up.
Bases: object
Base class for ServiceGroup drivers.
Returns ALL members of the given group.
The default behavior of get_one is to randomly pick one from the result of get_all(). This is likely to be overridden in the actual driver implementation.
Check whether the given member is up.
Join the given service with it’s group.
Remove the given member from the ServiceGroup monitoring.