Module Expr Str ImportFrom alias alias alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If Call AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults TupleLoad NameLoad NameLoad TupleLoad NameLoad NameLoad body Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If BoolOpAnd CompareIn AttributeLoad NameLoad attr NameLoad CompareIn AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
@author: mturatti
 utils ROLE_MASTER ROLE_SLAVE REDIS_STATUS_OK REDIS_STATUS_KO Cluster N/A object N/A N/A  Represents a cluster of servers __init__ N/A N/A self N/A N/A N/A N/A self _map N/A N/A add_node N/A N/A self host port role status N/A ROLE_SLAVE REDIS_STATUS_OK N/A N/A key N/A N/A self _make_key host port N/A node N/A Node host port role status N/A N/A N/A self _map N/A key node N/A node N/A get_master N/A N/A self N/A N/A N/A k N/A self _map N/A N/A node N/A N/A self _map N/A k N/A N/A N/A node is_master N/A N/A node N/A None N/A promote_new_master N/A N/A self old_master N/A N/A N/A N/A N/A old_master set_slave N/A N/A N/A old_master setKO N/A k N/A self _map N/A N/A node N/A N/A self _map N/A k N/A N/A N/A node is_alive N/A N/A N/A N/A self _set_role N/A node host N/A node port ROLE_MASTER N/A node N/A N/A N/A old_master set_master N/A old_master N/A filtered_list N/A N/A self roles status N/A N/A ROLE_MASTER ROLE_SLAVE N/A REDIS_STATUS_OK REDIS_STATUS_KO N/A N/A return_list N/A N/A k N/A self _map N/A N/A node N/A N/A self _map N/A k N/A N/A N/A N/A node status status N/A N/A node role roles N/A N/A N/A N/A return_list append node N/A return_list N/A get_node N/A N/A self host port N/A N/A N/A key N/A N/A self _make_key host port N/A N/A N/A self _map N/A key N/A __len__ N/A N/A self N/A N/A N/A N/A len N/A self _map N/A _set_role N/A N/A self host port role N/A N/A N/A key N/A N/A self _make_key host port N/A N/A N/A N/A self _map N/A key _role role N/A _make_key N/A N/A self host port N/A N/A N/A N/A %s:%s N/A host port N/A __str__ N/A N/A self N/A N/A N/A N/A N/A , join N/A N/A str k N/A k N/A N/A N/A self _map values N/A N/A Node N/A object N/A N/A  Represents a single server. __init__ N/A N/A self host port role status N/A N/A N/A N/A self _host host N/A N/A self _port N/A int port N/A N/A self _role role N/A N/A self _status status N/A host N/A N/A self N/A N/A N/A N/A self _host N/A property port N/A N/A self N/A N/A N/A N/A self _port N/A property role N/A N/A self N/A N/A N/A N/A self _role N/A property status N/A N/A self N/A N/A N/A N/A self _status N/A property is_master N/A N/A self N/A N/A N/A N/A N/A self _role ROLE_MASTER N/A is_slave N/A N/A self N/A N/A N/A N/A N/A self _role ROLE_SLAVE N/A is_alive N/A N/A self N/A N/A N/A N/A N/A self _status REDIS_STATUS_OK N/A setOK N/A N/A self N/A N/A N/A N/A self _status REDIS_STATUS_OK N/A setKO N/A N/A self N/A N/A N/A N/A self _status REDIS_STATUS_KO N/A set_master N/A N/A self N/A N/A N/A N/A self _role ROLE_MASTER N/A set_slave N/A N/A self N/A N/A N/A N/A self _role ROLE_SLAVE N/A __str__ N/A N/A self N/A N/A N/A N/A (%s:%d,%s,%s) N/A N/A self host N/A self port N/A self role N/A self status N/A N/A