if (i % 2 == 0) { for (int k = 0; k < 10; ++k) { LOGGER.info("Trying to bring down: " + fakeInstances.get(i / 2).getInstanceId()); LOGGER.info("Trying to bring up: " + fakeInstances.get(i / 2).getInstanceId());
if (i % 2 == 0) { for (int k = 0; k < 10; ++k) { LOGGER.info("Trying to bring down: " + fakeInstances.get(i / 2).getInstanceId()); LOGGER.info("Trying to bring up: " + fakeInstances.get(i / 2).getInstanceId());
for (int i = 0; i < totalInstancesSize * 2; ++i) { if (i % 2 == 0) { LOGGER.info("Trying to bring down: " + fakeInstances.get(i / 2).getInstanceId()); fakeInstances.get(i / 2).stop(); totalInstancesSize--; } else { LOGGER.info("Trying to bring up: " + fakeInstances.get(i / 2).getInstanceId()); fakeInstances.get(i / 2).start(); totalInstancesSize++; LOGGER.info("Trying to bring down: " + fakeInstances.get(i).getInstanceId()); fakeInstances.get(i).stop(); totalInstancesSize--; LOGGER.info("Trying to bring up: " + fakeInstances.get(i).getInstanceId()); fakeInstances.get(i).start(); totalInstancesSize++;
for (int i = 0; i < totalInstancesSize * 2; ++i) { if (i % 2 == 0) { LOGGER.info("Trying to bring down: " + fakeInstances.get(i / 2).getInstanceId()); fakeInstances.get(i / 2).stop(); totalInstancesSize--; } else { LOGGER.info("Trying to bring up: " + fakeInstances.get(i / 2).getInstanceId()); fakeInstances.get(i / 2).start(); totalInstancesSize++; LOGGER.info("Trying to bring down: " + fakeInstances.get(i).getInstanceId()); fakeInstances.get(i).stop(); totalInstancesSize--; LOGGER.info("Trying to bring up: " + fakeInstances.get(i).getInstanceId()); fakeInstances.get(i).start(); totalInstancesSize++;
for (int i = 0; i < totalInstancesSize * 2; ++i) { if (i % 2 == 0) { LOGGER.info("Trying to bring down: " + fakeInstances.get(i / 2).getInstanceId()); fakeInstances.get(i / 2).stop(); totalInstancesSize--; } else { LOGGER.info("Trying to bring up: " + fakeInstances.get(i / 2).getInstanceId()); fakeInstances.get(i / 2).start(); totalInstancesSize++; LOGGER.info("Trying to bring down: " + fakeInstances.get(i).getInstanceId()); fakeInstances.get(i).stop(); totalInstancesSize--; LOGGER.info("Trying to bring up: " + fakeInstances.get(i).getInstanceId()); fakeInstances.get(i).start(); totalInstancesSize++;
for (int i = 0; i < totalInstancesSize * 2; ++i) { if (i % 2 == 0) { LOGGER.info("Trying to bring down: " + fakeInstances.get(i / 2).getInstanceId()); fakeInstances.get(i / 2).stop(); totalInstancesSize--; } else { LOGGER.info("Trying to bring up: " + fakeInstances.get(i / 2).getInstanceId()); fakeInstances.get(i / 2).start(); totalInstancesSize++; LOGGER.info("Trying to bring down: " + fakeInstances.get(i).getInstanceId()); fakeInstances.get(i).stop(); totalInstancesSize--; LOGGER.info("Trying to bring up: " + fakeInstances.get(i).getInstanceId()); fakeInstances.get(i).start(); totalInstancesSize++;
for (int i = 0; i < totalInstancesSize * 2; ++i) { if (i % 2 == 0) { LOGGER.info("Trying to bring down: " + fakeInstances.get(i / 2).getInstanceId()); fakeInstances.get(i / 2).stop(); totalInstancesSize--; } else { LOGGER.info("Trying to bring up: " + fakeInstances.get(i / 2).getInstanceId()); fakeInstances.get(i / 2).start(); totalInstancesSize++; LOGGER.info("Trying to bring down: " + fakeInstances.get(i).getInstanceId()); fakeInstances.get(i).stop(); totalInstancesSize--; LOGGER.info("Trying to bring up: " + fakeInstances.get(i).getInstanceId()); fakeInstances.get(i).start(); totalInstancesSize++;
if (i % 2 == 0) { for (int k = 0; k < 10; ++k) { LOGGER.info("Trying to bring down: " + fakeInstances.get(i / 2).getInstanceId()); LOGGER.info("Trying to bring up: " + fakeInstances.get(i / 2).getInstanceId());
for (int i = 0; i < totalInstancesSize * 2; ++i) { if (i % 2 == 0) { LOGGER.info("Trying to bring down: " + fakeInstances.get(i / 2).getInstanceId()); fakeInstances.get(i / 2).stop(); totalInstancesSize--; } else { LOGGER.info("Trying to bring up: " + fakeInstances.get(i / 2).getInstanceId()); fakeInstances.get(i / 2).start(); totalInstancesSize++; LOGGER.info("Trying to bring down: " + fakeInstances.get(i).getInstanceId()); fakeInstances.get(i).stop(); totalInstancesSize--; LOGGER.info("Trying to bring up: " + fakeInstances.get(i).getInstanceId()); fakeInstances.get(i).start(); totalInstancesSize++;