public void waitUntilAgentPrepared(int size) {
		int trial = 1;
		while (trial++ < 10) {
			// when agent finished one test, processReports will be updated as
			// null
			if ((processReports == null || this.processReports.length != size)
				|| agentCachedDistFilesDigestList.size() != size) {
				synchronized (eventSyncCondition) {
					eventSyncCondition.waitNoInterrruptException(1000);
				}
			} else if (isCanceled()) { // TODO Is it required?
				return;
			} else {
				return;
			}
		}
		throw processException("Connection is not completed or cached files digest weren't received until 10 sec");
	}
Wait until the given size of agents are all connected and receive digest from there cached files.
It waits until 10 sec.

@param size size of agent.
ngrinder-core/src/main/java/net/grinder/SingleConsole.java