Updated Branches: refs/heads/4.2-workplace ed5aaea41 -> 7fb36a5b0
remove the configuration option if CS manage the XS master since CS will not manage master any more. Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/175a1da8 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/175a1da8 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/175a1da8 Branch: refs/heads/4.2-workplace Commit: 175a1da89c9c63f0d1cc42f6ba023a56db866c57 Parents: ed5aaea Author: Anthony Xu <[email protected]> Authored: Wed Nov 13 14:40:15 2013 -0800 Committer: Anthony Xu <[email protected]> Committed: Wed Nov 13 14:40:15 2013 -0800 ---------------------------------------------------------------------- .../hypervisor/xen/resource/XenServerConnectionPool.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/175a1da8/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerConnectionPool.java ---------------------------------------------------------------------- diff --git a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerConnectionPool.java b/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerConnectionPool.java index dc7861a..5014b9b 100644 --- a/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerConnectionPool.java +++ b/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServerConnectionPool.java @@ -54,7 +54,6 @@ public class XenServerConnectionPool { protected HashMap<String /* poolUuid */, XenServerConnection> _conns = new HashMap<String, XenServerConnection>(); protected int _retries; protected int _interval; - protected static boolean s_managePool = true; protected static long s_sleepOnError = 10 * 1000; // in ms static { File file = PropertiesUtil.findConfigFile("environment.properties"); @@ -67,15 +66,11 @@ public class XenServerConnectionPool { final Properties props = new Properties(); props.load(finputstream); finputstream.close(); - String search = props.getProperty("manage.xenserver.pool.master"); - if (search != null) { - s_managePool = Boolean.parseBoolean(search); - } - search = props.getProperty("sleep.interval.on.error"); + String search = props.getProperty("sleep.interval.on.error"); if (search != null) { s_sleepOnError = NumbersUtil.parseInterval(search, 10) * 1000; } - s_logger.info("XenServer Connection Pool Configs: manage.xenserver.pool.master=" + s_managePool + "; sleep.interval.on.error=" + s_sleepOnError); + s_logger.info("XenServer Connection Pool Configs: sleep.interval.on.error=" + s_sleepOnError); } catch (FileNotFoundException e) { s_logger.debug("File is not found", e); } catch (IOException e) {
