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;
	}
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;
	}
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.

@param timeout
- the timeout in milliseconds
@return - true if the connection process finished successfully, false
otherwise
Waits for processing finished .