public boolean waitFor ( long timeout ) { debug ( "GuestNode#waitFor(long): Waiting for task finish with timeout = " + timeout ) ; ProcessingTask connectionCheckTask = new ProcessingTask ( ) ; Utils . execute ( connectionCheckTask , timeout ) ; boolean connected = connectionCheckTask . isConnected ( ) ; debug ( "GuestNode#waitFor(long): Task finished connected = " + connected ) ; return connected ; }
Waits for processing finished .