Package com.cloud.dc

Examples of com.cloud.dc.ClusterVSMMapVO


            _ciscoNexusVSMDeviceDao.persist(VSMObj);
      }

      // At this stage, we have a VSM record for sure. Connect the VSM to the cluster Id.
      long vsmId = _ciscoNexusVSMDeviceDao.getVSMbyIpaddress(ipaddress).getId();
      ClusterVSMMapVO connectorObj = new ClusterVSMMapVO(clusterId, vsmId);
    _clusterVSMDao.persist(connectorObj);

      // Now, get a list of all the ESXi servers in this cluster.
      // This is effectively a select * from host where cluster_id=clusterId;
      // All ESXi servers are stored in the host table, and their resource
View Full Code Here


      return _ciscoNexusVSMDeviceDao.findById(vsmId);
    }

    @DB
    public CiscoNexusVSMDeviceVO getCiscoVSMbyClusId(long clusterId) {
      ClusterVSMMapVO mapVO = _clusterVSMDao.findByClusterId(clusterId);
      if (mapVO == null) {
        s_logger.info("Couldn't find a VSM associated with the specified cluster Id");
        return null;
      }
      // Else, pull out the VSM associated with the VSM id in mapVO.
      CiscoNexusVSMDeviceVO result = _ciscoNexusVSMDeviceDao.findById(mapVO.getVsmId());
      return result;
    }
View Full Code Here

    }

    @Override
    public Map<String, String> getNexusVSMCredentialsByClusterId(Long clusterId) {
        CiscoNexusVSMDeviceVO nexusVSM = null;
        ClusterVSMMapVO vsmMapVO = null;

        vsmMapVO = _vsmMapDao.findByClusterId(clusterId);
        long vsmId = 0;
        if (vsmMapVO != null) {
            vsmId = vsmMapVO.getVsmId();
            s_logger.info("vsmId is " + vsmId);
            nexusVSM = _nexusDao.findById(vsmId);
            s_logger.info("Fetching nexus vsm credentials from database.");
        }
        else {
View Full Code Here

TOP

Related Classes of com.cloud.dc.ClusterVSMMapVO

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.