#NEWLINE# def __init__( self , inet_address , conviction_policy_factory , datacenter = None , rack = None ) : #NEWLINE# #INDENT# if ( inet_address is None ) : #NEWLINE# #INDENT# raise ValueError ( 'inet_address may not be None' ) #NEWLINE# #UNINDENT# if ( conviction_policy_factory is None ) : #NEWLINE# #INDENT# raise ValueError ( 'conviction_policy_factory may not be None' ) #NEWLINE# #UNINDENT# self . address = inet_address #NEWLINE# self . conviction_policy = conviction_policy_factory ( self ) #NEWLINE# self . set_location_info ( datacenter , rack ) #NEWLINE# self . lock = RLock ( )