#NEWLINE# def add_cluster( self , cluster ) : #NEWLINE# #INDENT# 'If more than one cluster is used in a program, they can be\n        added to http server for monitoring.\n        ' #NEWLINE# if ( cluster . name in self . _clusters ) : #NEWLINE# #INDENT# logger . warning ( 'Cluster "%s" is already registered' , cluster . name ) #NEWLINE# return #NEWLINE# #UNINDENT# cluster_info = self . __class__ . _ClusterInfo ( cluster ) #NEWLINE# self . _clusters [ cluster . name ] = cluster_info #NEWLINE# if ( cluster . status_callback is None ) : #NEWLINE# #INDENT# cluster . status_callback = functools . partial ( self . cluster_status , cluster_info )