+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
package org.opendaylight.controller.sanitytest.internal;
import java.util.Timer;
//10 Second initial, 1 second subsequent
private static final int INITIAL_DELAY = 10000;
private static final int SUBSEQUENT_DELAY = 1000;
+ private static final int MAX_ATTEMPTS = 120;
private String stateToString(int state) {
}
if (!resolved) {
countup++;
- if (countup < 60) {
+ if (countup < MAX_ATTEMPTS) {
System.out.println("all bundles haven't finished starting, will repeat");
try {
Thread.sleep(SUBSEQUENT_DELAY);
} catch (Exception e) {
- ;
+ System.out.println("Thread.sleep interuptted.");
+ break;
}
} else
resolved = true;