in src/main/java/org/apache/openejb/cts/deploy/DeployTestUtil.java [839:864]
private OperationStatus commandStatus(Target[] targets,
ProgressObject progress) {
OperationStatus status = null;
int sleepCount = 0;
int deployWaitMinutes = getDeployDelay();
final int MAX_SLEEP_COUNT = deployWaitMinutes * 60; // minutes to delay
while (!(progress.getDeploymentStatus().isCompleted()
|| progress.getDeploymentStatus().isFailed())) {
try {
Thread.sleep(1 * 1000); // 1 second
if (++sleepCount >= MAX_SLEEP_COUNT) {
TestUtil.logErr("Error: DeployTestUtil.commandStatus() timed out"
+ " waiting for operation to complete");
status = new OperationStatus(progress, targets, true);
break;
}
} catch (InterruptedException ie) {
break;
}
}
if (status == null) {
status = new OperationStatus(progress, targets);
}
return status;
}