#NEWLINE# @ classmethod #NEWLINE# def RegisterInstanceIpAddress( cls , name , ip_address ) : #NEWLINE# #INDENT# 'Registers IP address of the instance to load information.\n\n    If the instance is not in the list of instances the application manages,\n    the function does nothing.\n\n    Args:\n      name: Name of the instance.\n      ip_address: IP address in string format.\n    ' #NEWLINE# if cls . _IsManagedInstance ( ip_address ) : #NEWLINE# #INDENT# instance = SingleInstance . GetByName ( name ) #NEWLINE# instance . ip_address = ip_address #NEWLINE# instance . put ( ) #NEWLINE# memcache . set ( name , { #NEWLINE# #INDENT# cls . IP_ADDRESS : ip_address , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# logging . error ( 'Registration request for unmanaged instance %s' , name )