#NEWLINE# def ha_declare( self , nodes = None ) : #NEWLINE# #INDENT# 'Declare a the queue as highly available, passing in a list of nodes\n        the queue should live  on. If no nodes are passed, the queue will be\n        declared across all nodes in the cluster.\n\n        :param list nodes: A list of nodes to declare. If left empty, queue\n                           will be declared on all cluster nodes.\n        :return: Message count, Consumer count\n        :rtype: tuple(int, int)\n\n        ' #NEWLINE# if self : #NEWLINE# #INDENT# self . arguments [ 'x-ha-policy' ] = 'nodes' #NEWLINE# self . arguments [ 'x-ha-nodes' ] = nodes #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . arguments [ 'x-ha-policy' ] = 'all' #NEWLINE# if ( 'x-ha-nodes' in self . arguments ) : #NEWLINE# #INDENT# del self . arguments [ 'x-ha-nodes' ] #NEWLINE# #UNINDENT# #UNINDENT# return self . declare ( )