CLOUDSTACK-3918

com.cloud.ucs.manager.UcsManagerImpl cannot parse default config
This commit is contained in:
frank 2013-07-29 15:28:53 -07:00
parent a917cbefc9
commit 2d5f24ceb1

View File

@ -175,7 +175,11 @@ public class UcsManagerImpl implements UcsManager {
@Override
public boolean start() {
syncBladeInterval = Integer.valueOf(configDao.getValue(Config.UCSSyncBladeInterval.key()));
try {
syncBladeInterval = Integer.valueOf(configDao.getValue(Config.UCSSyncBladeInterval.key()));
} catch (NumberFormatException e) {
syncBladeInterval = 600;
}
syncBladesExecutor = Executors.newScheduledThreadPool(1, new NamedThreadFactory("UCS-SyncBlades"));
syncBladesExecutor.scheduleAtFixedRate(new SyncBladesThread(), syncBladeInterval, syncBladeInterval, TimeUnit.SECONDS);
return true;