Package com.cloud.hypervisor.hyperv.resource

Examples of com.cloud.hypervisor.hyperv.resource.HypervDummyResourceBase


          _connection.stop();       
 
          Map<HypervDummyResourceBase, Map<String, String>> resources = new HashMap<HypervDummyResourceBase, Map<String, String>>();
          Map<String, String> details = new HashMap<String, String>();
          Map<String, Object> params = new HashMap<String, Object>();
          HypervDummyResourceBase resource = new HypervDummyResourceBase();
 
          details.put("url", url.getHost());
          details.put("username", username);
          details.put("password", password);
      resources.put(resource, details);
 
          params.put("zone", Long.toString(dcId));
          params.put("pod", Long.toString(podId));
          params.put("cluster", Long.toString(clusterId));

            resource.configure("Hyperv", params);
            return resources;
        } catch (ConfigurationException e) {
            _alertMgr.sendAlert(AlertManager.ALERT_TYPE_HOST, dcId, podId, "Unable to add " + url.getHost(), "Error is " + e.getMessage());
            s_logger.warn("Unable to instantiate " + url.getHost(), e);
        } catch (UnknownHostException e) {
View Full Code Here


          _connection.stop();       
 
          Map<HypervDummyResourceBase, Map<String, String>> resources = new HashMap<HypervDummyResourceBase, Map<String, String>>();
          Map<String, String> details = new HashMap<String, String>();
          Map<String, Object> params = new HashMap<String, Object>();
          HypervDummyResourceBase resource = new HypervDummyResourceBase();
 
          details.put("url", url.getHost());
          details.put("username", username);
          details.put("password", password);
      resources.put(resource, details);
 
          params.put("zone", Long.toString(dcId));
          params.put("pod", Long.toString(podId));
          params.put("cluster", Long.toString(clusterId));

            resource.configure("Hyperv", params);
            return resources;
        } catch (ConfigurationException e) {
            _alertMgr.sendAlert(AlertManager.ALERT_TYPE_HOST, dcId, podId, "Unable to add " + url.getHost(), "Error is " + e.getMessage());
            s_logger.warn("Unable to instantiate " + url.getHost(), e);
        } catch (UnknownHostException e) {
View Full Code Here

TOP

Related Classes of com.cloud.hypervisor.hyperv.resource.HypervDummyResourceBase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.