#NEWLINE# def handleStatus( self , current_status , state , was_initial_check ) : #NEWLINE# #INDENT# ' Handles the various status states for the component, returning the\n        amount of time after which to retry lookup up the state or -1 for\n        terminated.\n    ' #NEWLINE# if ( current_status == STOPPED_STATUS ) : #NEWLINE# #INDENT# return self . handleStopped ( was_initial_check ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( current_status == KILLED_STATUS ) : #NEWLINE# #INDENT# return self . handleKilled ( was_initial_check ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( ( current_status == READY_STATUS ) or ( current_status == PULL_FAIL ) ) : #NEWLINE# #INDENT# with self . update_lock : #NEWLINE# #INDENT# return self . handleReady ( state , self ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return CHECK_SLEEP_TIME