Moving poll interval to constants file
This commit is contained in:
Родитель
624cc6b63f
Коммит
4817cc8793
|
@ -32,5 +32,6 @@ public class Constants {
|
|||
public static final String TASK_ID = "735d144e-55fe-44d6-b687-db9031b6e70b";
|
||||
public static final int START_STOP_MAX_WAIT_IN_MINUTES = 10;
|
||||
public static final int OS_CUSTOMIZATION_MAX_WAIT_IN_MINUTES = 20;
|
||||
public static final int OS_CUSTOMIZATION_POLLING_INTERVAL_IN_SECONDS = 30;
|
||||
public static final int OPERATION_MAX_WAIT_IN_MINUTES = 60;
|
||||
}
|
||||
|
|
|
@ -371,7 +371,7 @@ public class VMWareImpl implements IVMWare {
|
|||
long startTime = System.currentTimeMillis();
|
||||
|
||||
while ((new Date()).getTime() - startTime < maxWaitTimeInMinutes * 60 * 1000) {
|
||||
Thread.sleep(30 * 1000);
|
||||
Thread.sleep(Constants.OS_CUSTOMIZATION_POLLING_INTERVAL_IN_SECONDS * 1000);
|
||||
ArrayList<Event> eventList = (ArrayList<Event>) ((ArrayOfEvent) getMorProperties(vmEventHistoryCollector, new String[]{LATEST_PAGE}).get(LATEST_PAGE)).getEvent();
|
||||
for (Event anEvent : eventList) {
|
||||
String eventName = anEvent.getClass().getSimpleName();
|
||||
|
|
Загрузка…
Ссылка в новой задаче