Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad ListComp CompareEq AttributeLoad NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Num comprehension NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad ListComp CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr comprehension NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp CompareNotEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num comprehension NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad GeneratorExp CompareNotEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr comprehension NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign AttributeStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Num FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest N/A gevent scales.constants ChannelState scales.loadbalancer HeapBalancerSink test.scales.loadbalancer.base_tests LoadBalancerTestCase HeapBalancerTestCase N/A LoadBalancerTestCase N/A N/A SINK_CLS HeapBalancerSink testHeapOpensAllChannels N/A N/A self N/A N/A N/A N/A N/A self assertTrue N/A all N/A N/A N/A s state N/A ChannelState Open N/A s N/A N/A self mock_provider sinks_created N/A testHeapForwardsMessage N/A N/A self N/A N/A N/A N/A N/A self _submitTestMessage N/A N/A N/A self _completeTestMessage N/A N/A N/A self assertIs N/A self return_message N/A self MSG_SENTINEL N/A testHeapMaintainsLeastLoad N/A N/A self N/A N/A N/A hs N/A self sink N/A N/A N/A self _submitTestMessage N/A N/A N/A self assertEqual N/A N/A N/A hs _heap N/A 1 load N/A hs Idle N/A N/A N/A self _completeTestMessage N/A N/A N/A self assertEqual N/A self return_message N/A self MSG_SENTINEL N/A testHeapTracksLoad N/A N/A self N/A N/A N/A N/A N/A self _submitTestMessage N/A N/A N/A self assertTrue N/A any N/A N/A N/A n load N/A N/A N/A self sink Idle 1 N/A n N/A N/A N/A self sink _heap N/A 1 N/A N/A N/A self _completeTestMessage N/A N/A N/A self assertTrue N/A all N/A N/A N/A n load N/A N/A self sink Idle N/A n N/A N/A N/A self sink _heap N/A 1 N/A testHeapRemovesNode N/A N/A self N/A N/A N/A N/A N/A self _submitTestMessage N/A N/A N/A self _completeTestMessage N/A N/A N/A N/A self mock_ss_provider RemoveServer localhost 8080 N/A N/A N/A self assertTrue N/A all N/A N/A N/A N/A N/A n channel endpoint port 8080 N/A n N/A N/A N/A self sink _heap N/A 1 N/A testHeapRemovesLoadedNode N/A N/A self N/A N/A N/A N/A N/A self _submitTestMessage N/A loaded_node N/A N/A self _getLoadedNode N/A loaded_ep N/A N/A loaded_node channel endpoint N/A N/A N/A N/A self mock_ss_provider RemoveServer N/A loaded_ep host N/A loaded_ep port N/A N/A N/A self assertEqual N/A loaded_node index -1 N/A N/A N/A self assertEqual N/A loaded_node load N/A N/A N/A self sink Idle 1 N/A N/A N/A self assertTrue N/A all N/A N/A N/A N/A N/A n channel endpoint port N/A loaded_ep port N/A n N/A N/A N/A self sink _heap N/A 1 N/A loaded_node N/A testHeapRemovedNodeReleaseCloses N/A N/A self N/A N/A N/A loaded_node N/A N/A self testHeapRemovesLoadedNode N/A N/A N/A self _completeTestMessage N/A N/A N/A self assertEqual N/A N/A loaded_node channel state N/A ChannelState Closed N/A testHeapFailsOnEmpty N/A N/A self N/A N/A N/A N/A N/A N/A self mock_ss_provider RemoveAllServers N/A N/A N/A self _submitTestMessage N/A N/A N/A self assertIsNotNone N/A N/A self return_message error N/A testHeapSucceedsWhenAllFailed N/A N/A self N/A N/A N/A s N/A N/A self mock_provider sinks_created N/A N/A N/A s state N/A ChannelState Closed N/A N/A N/A self _submitTestMessage N/A N/A N/A self assertIsNotNone N/A N/A self return_message error N/A testHeapCorrectlyMarksNodesUp N/A N/A self N/A N/A N/A N/A N/A self testHeapSucceedsWhenAllFailed N/A N/A N/A N/A N/A self mock_provider sinks_created N/A 0 state N/A ChannelState Open N/A N/A N/A self _prepareSinkStack N/A N/A N/A self _submitTestMessage N/A N/A N/A self _completeTestMessage N/A N/A N/A self assertEqual N/A self return_message N/A self MSG_SENTINEL N/A testHeapConcurrentOpenAndRequest N/A N/A self N/A N/A N/A N/A N/A N/A self mock_ss_provider RemoveAllServers N/A N/A N/A self global_properties N/A open_delay 0.1 race N/A N/A N/A N/A N/A N/A N/A gevent sleep 0.01 N/A N/A N/A self _submitTestMessage N/A N/A N/A self _completeTestMessage N/A N/A racer N/A N/A gevent spawn race N/A N/A N/A N/A self mock_ss_provider AddServer localhost 8080 N/A N/A N/A racer join N/A N/A N/A self assertEqual N/A self return_message N/A self MSG_SENTINEL N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main