waitUntilStarting(processExec, 180);
}
protected void waitUntilStarting(ProcessExecutor processExec, int timeoutSeconds) throws InstanceException
{
InstanceTimer timer = new InstanceTimer(timeoutSeconds, 0,
new TimerCallback()
{
public boolean check() throws Exception
{
return isInstanceStarting() ||
isInstanceRunning() ||
isInstanceFailed();
}
}
);
timer.run(); //synchronous
if (getInstanceStatus() == Status.kInstanceNotRunningCode)
{
throw new InstanceException(