 class HealthCheck ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , access_point = None , interval = <NUM_LIT:30> , target = None , <EOL> healthy_threshold = <NUM_LIT:3> , timeout = <NUM_LIT:5> , unhealthy_threshold = <NUM_LIT:5> ) : <EOL> self . access_point = access_point <EOL> self . interval = interval <EOL> self . target = target <EOL> self . healthy_threshold = healthy_threshold <EOL> self . timeout = timeout <EOL> self . unhealthy_threshold = unhealthy_threshold <EOL> def __repr__ ( self ) : <EOL> return '<STR_LIT>' % self . target <EOL> def startElement ( self , name , attrs , connection ) : <EOL> return None <EOL> def endElement ( self , name , value , connection ) : <EOL> if name == '<STR_LIT>' : <EOL> self . interval = int ( value ) <EOL> elif name == '<STR_LIT>' : <EOL> self . target = value <EOL> elif name == '<STR_LIT>' : <EOL> self . healthy_threshold = int ( value ) <EOL> elif name == '<STR_LIT>' : <EOL> self . timeout = int ( value ) <EOL> elif name == '<STR_LIT>' : <EOL> self . unhealthy_threshold = int ( value ) <EOL> else : <EOL> setattr ( self , name , value ) <EOL> def update ( self ) : <EOL> if not self . access_point : <EOL> return <EOL> new_hc = self . connection . configure_health_check ( self . access_point , self ) 
 self . interval = new_hc . interval 
 class HealthCheck ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , access_point = None , interval = <NUM_LIT:30> , target = None , <EOL> healthy_threshold = <NUM_LIT:3> , timeout = <NUM_LIT:5> , unhealthy_threshold = <NUM_LIT:5> ) : <EOL> self . access_point = access_point <EOL> self . interval = interval <EOL> self . target = target <EOL> self . healthy_threshold = healthy_threshold <EOL> self . timeout = timeout <EOL> self . unhealthy_threshold = unhealthy_threshold <EOL> def __repr__ ( self ) : <EOL> return '<STR_LIT>' % self . target <EOL> def startElement ( self , name , attrs , connection ) : <EOL> return None <EOL> def endElement ( self , name , value , connection ) : <EOL> if name == '<STR_LIT>' : <EOL> self . interval = int ( value ) <EOL> elif name == '<STR_LIT>' : <EOL> self . target = value <EOL> elif name == '<STR_LIT>' : <EOL> self . healthy_threshold = int ( value ) <EOL> elif name == '<STR_LIT>' : <EOL> self . timeout = int ( value ) <EOL> elif name == '<STR_LIT>' : <EOL> self . unhealthy_threshold = int ( value ) <EOL> else : <EOL> setattr ( self , name , value ) <EOL> def update ( self ) : <EOL> if not self . access_point : <EOL> return <EOL> new_hc = self . connection . configure_health_check ( self . access_point , self ) <EOL> self . interval = new_hc . interval <EOL> self . target = new_hc . target <EOL> self . healthy_threshold = new_hc . healthy_threshold <EOL> self . unhealthy_threshold = new_hc . unhealthy_threshold <EOL> self . timeout = new_hc . timeout </s>
