class documentation
class ConfdFilterCallback(object):
Callback that calls another callback, but filters duplicate results.
Method | __call__ |
Filtering callback |
Method | __init__ |
Constructor for ConfdFilterCallback |
Instance Variable | consistent |
a dictionary indexed by salt; for each salt, if all responses ware identical, this will be True; this is the expected state on a healthy cluster; on inconsistent or partitioned clusters, this might be False, if we see answers with the same serial but different contents... |
Method | _ |
Undocumented |
Method | _ |
Handle a single confd reply, and decide whether to filter it. |
Method | _ |
Undocumented |
Instance Variable | _answers |
Undocumented |
Instance Variable | _callback |
Undocumented |
Instance Variable | _logger |
Undocumented |
Constructor for ConfdFilterCallback
Parameters | |
callback:f(ConfdUpcallPayload ) | function to call when getting answers |
logger:logging.Logger | optional logger for internal conditions |
a dictionary indexed by salt; for each salt, if all responses ware identical, this will be True; this is the expected state on a healthy cluster; on inconsistent or partitioned clusters, this might be False, if we see answers with the same serial but different contents