Package com.vmware.vim25

Examples of com.vmware.vim25.NetworkSummary


    super(context, morType, morValue);
  }
 
  public HostHardwareSummary getHostHardwareSummary() throws Exception {
    HostConnectInfo hostInfo = _context.getService().queryHostConnectionInfo(_mor);
    HostHardwareSummary hardwareSummary = hostInfo.getHost().getHardware();
    return hardwareSummary;
  }
View Full Code Here


        }

        String morefOfNewVm = null;
       
        /* wait nfc lease */
        HttpNfcLeaseState hls;
    while (true) {
      hls = httpNfcLease.getState();
      if (hls == HttpNfcLeaseState.ready ||
                hls == HttpNfcLeaseState.error) { break; }
    }
View Full Code Here

                return node.getSnapshot();
            } else {
                VirtualMachineSnapshotTree[] childTree =
                    node.getChildSnapshotList();
                if (childTree != null) {
                    ManagedObjectReference mor =
                        findSnapshotInTree(childTree, snapName);
                    if (mor != null) { return mor; }
                }
            }
        }
View Full Code Here

       
        VirtualMachineSnapshotTree[] snapTree =
            vm_.getSnapshot().getRootSnapshotList();
       
        if (snapTree != null) {
            ManagedObjectReference mor = findSnapshotInTree(snapTree, snapName);
            if (mor != null) {
                return new
                    VirtualMachineSnapshot(vm_.getServerConnection(), mor);
            }
        }
View Full Code Here

        if (entityType == null || morefStr == null) {
            return null;
        }

        /* create managed object reference */
        ManagedObjectReference mor = new ManagedObjectReference();
        mor.setType(entityType);
        mor.setVal(morefStr);

        return mor;
    }
View Full Code Here

     */
    protected VirtualMachine generateVirtualMachineWithMoref(String morefStr)
    {
        if (si_ == null || morefStr == null) { return null; }

        ManagedObjectReference mor =
            generateMoref("VirtualMachine", morefStr);
        if (mor == null) { return null; }

        ManagedEntity vm =
            MorUtil.createExactManagedEntity(si_.getServerConnection(), mor);
View Full Code Here

     */
    protected VirtualMachineSnapshot generateSnapshotWithMoref(String morefStr)
    {
        if (si_ == null || morefStr == null) { return null; }

        ManagedObjectReference mor =
            generateMoref("VirtualMachineSnapshot", morefStr);
        if (mor == null) { return null; }

        ManagedObject snap =
            MorUtil.createExactManagedObject(si_.getServerConnection(), mor);
View Full Code Here

    }
    // Next, get all the NAS datastores from this array of datastores.
    if (morArray.length > 0) {
      int i;
      for (i = 0; i < morArray.length; i++) {
        NasDatastoreInfo nasDS;
        try {
          nasDS = hostDatastoreSystemMo.getNasDatastoreInfo(morArray[i]);
          if (nasDS != null) {
            //DatastoreInfo info = (DatastoreInfo)_context.getServiceUtil().getDynamicProperty(morDatastore, "info");
            if (nasDS.getNas().getRemoteHost().equalsIgnoreCase(hostAddress) &&
                nasDS.getNas().getRemotePath().equalsIgnoreCase(path)) {
              return morArray[i];
            }
          }
        }  catch (Exception e) {
          s_logger.info("Encountered exception when retrieving nas datastore info");
View Full Code Here

        vm.getServerConnection(), hmor);
    ConfigTarget cfg = envBrowser.queryConfigTarget(host);
    VirtualMachineNetworkInfo[] nets = cfg.getNetwork();
    for (int i = 0; nets!=null && i < nets.length; i++)
    {
      NetworkSummary netSummary = nets[i].getNetwork();
      if (netSummary.isAccessible() &&
          netSummary.getName().equalsIgnoreCase(netName))
      {
        return true;
      }
    }
    return false;
View Full Code Here

      nicBacking.port.switchUuid = dvPortgroupInfo.switchUuid;
      result = createNicSpec(adapterType, macAddress, wakeOnLan, startConnected, nicBacking);
    }
    else
    {
      NetworkSummary netSummary = getHostNetworkSummaryByName(
               networkName, configTarget.network);
      VirtualEthernetCardNetworkBackingInfo nicBacking = new VirtualEthernetCardNetworkBackingInfo();
      nicBacking.network = netSummary.network;
      nicBacking.deviceName = netSummary.name;
      result = createNicSpec(adapterType, macAddress, wakeOnLan, startConnected, nicBacking);
View Full Code Here

TOP

Related Classes of com.vmware.vim25.NetworkSummary

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.