Package com.vmware.vim25

Examples of com.vmware.vim25.HostConfigManager


    HostConfigManager configMgr = getHostConfigManager();
    return new HostNetworkSystemMO(_context, configMgr.getNetworkSystem());
  }
 
  public HostFirewallSystemMO getHostFirewallSystemMO() throws Exception {
    HostConfigManager configMgr = getHostConfigManager();
    ManagedObjectReference morFirewall = configMgr.getFirewallSystem();
   
    // only ESX hosts have firewall manager
    if(morFirewall != null)
      return new HostFirewallSystemMO(_context, morFirewall);
    return null;
View Full Code Here


   
        HostPortGroupSpec portgrp = new HostPortGroupSpec();
        portgrp.setName("VM Network vlan26");
   
        Object cmobj = cb.getServiceUtil3().getDynamicProperty(morHost, "configManager");
        HostConfigManager configMgr = (HostConfigManager)cmobj;
        ManagedObjectReference nwSystem = configMgr.getNetworkSystem();
       
        HostVirtualNicSpec vNicSpec = new HostVirtualNicSpec();
        HostIpConfig ipConfig = new HostIpConfig();
        ipConfig.setDhcp(false);
        ipConfig.setIpAddress("192.168.26.177");
View Full Code Here

        }
        return null;
    }

    public HostNetworkSystemMO getHostNetworkSystemMO() throws Exception {
        HostConfigManager configMgr = getHostConfigManager();
        return new HostNetworkSystemMO(_context, configMgr.getNetworkSystem());
    }
View Full Code Here

        HostConfigManager configMgr = getHostConfigManager();
        return new HostNetworkSystemMO(_context, configMgr.getNetworkSystem());
    }

    public HostFirewallSystemMO getHostFirewallSystemMO() throws Exception {
        HostConfigManager configMgr = getHostConfigManager();
        ManagedObjectReference morFirewall = configMgr.getFirewallSystem();

        // only ESX hosts have firewall manager
        if (morFirewall != null)
            return new HostFirewallSystemMO(_context, morFirewall);
        return null;
View Full Code Here

    }
    return null;
  }

  public HostNetworkSystemMO getHostNetworkSystemMO() throws Exception {
    HostConfigManager configMgr = getHostConfigManager();
    return new HostNetworkSystemMO(_context, configMgr.getNetworkSystem());
  }
View Full Code Here

    HostConfigManager configMgr = getHostConfigManager();
    return new HostNetworkSystemMO(_context, configMgr.getNetworkSystem());
  }

  public HostFirewallSystemMO getHostFirewallSystemMO() throws Exception {
    HostConfigManager configMgr = getHostConfigManager();
    ManagedObjectReference morFirewall = configMgr.getFirewallSystem();

    // only ESX hosts have firewall manager
    if(morFirewall != null)
      return new HostFirewallSystemMO(_context, morFirewall);
    return null;
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

TOP

Related Classes of com.vmware.vim25.HostConfigManager

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.