Package com.vmware.vim25.mo.samples.event

Examples of com.vmware.vim25.mo.samples.event.EventHistoryCollectorMonitor


                int unitNumber = diskDev.getUnitNumber();
                String diskMode = null;
               
                /* Get required values in the BackingInfo data. */
                if (vdbi instanceof VirtualDiskFlatVer2BackingInfo) {
                    VirtualDiskFlatVer2BackingInfo bi
                        = (VirtualDiskFlatVer2BackingInfo) vdbi;
                    changeId = bi.getChangeId();
                    uuid = bi.getUuid();
                    diskMode = bi.getDiskMode();
                } else if (vdbi instanceof VirtualDiskSparseVer2BackingInfo) {
                    VirtualDiskSparseVer2BackingInfo bi =
                        (VirtualDiskSparseVer2BackingInfo) vdbi;
                    changeId = bi.getChangeId();
                    uuid = bi.getUuid();
                    diskMode = bi.getDiskMode();
                }

                /* get the controller information  */
                Integer ckeyI = diskDev.getControllerKey(); assert ckeyI != null;
                int ckey = ckeyI.intValue();
View Full Code Here


        diskSpec.setDevice(vd);
        vd.setKey(key_); /* no need to set key_ */
        vd.setUnitNumber(unitNumber_);
        vd.setControllerKey(controller_.getCkey());

        VirtualDiskFlatVer2BackingInfo diskfileBacking =
            new VirtualDiskFlatVer2BackingInfo();
        String fileName = "["+ datastore_ +"]";
        diskfileBacking.setFileName(fileName);
        diskfileBacking.setDiskMode("persistent");
        diskfileBacking.setThinProvisioned(isThinProvisioned);
        vd.setBacking(diskfileBacking);
        return diskSpec;
    }
View Full Code Here

                        = (VirtualDiskFlatVer2BackingInfo) vdbi;
                    changeId = bi.getChangeId();
                    uuid = bi.getUuid();
                    diskMode = bi.getDiskMode();
                } else if (vdbi instanceof VirtualDiskSparseVer2BackingInfo) {
                    VirtualDiskSparseVer2BackingInfo bi =
                        (VirtualDiskSparseVer2BackingInfo) vdbi;
                    changeId = bi.getChangeId();
                    uuid = bi.getUuid();
                    diskMode = bi.getDiskMode();
                }

                /* get the controller information  */
                Integer ckeyI = diskDev.getControllerKey(); assert ckeyI != null;
                int ckey = ckeyI.intValue();
View Full Code Here

    {
        VirtualDeviceConfigSpec nicSpec =
            new VirtualDeviceConfigSpec();
        nicSpec.setOperation(VirtualDeviceConfigSpecOperation.add);

        VirtualEthernetCard nic =  new VirtualE1000();
        VirtualEthernetCardNetworkBackingInfo nicBacking =
            new VirtualEthernetCardNetworkBackingInfo();
        nicBacking.setDeviceName(netName);

        Description info = new Description();
        info.setLabel(nicName);
        info.setSummary(netName);
        nic.setDeviceInfo(info);
   
        // type: "generated", "manual", "assigned" by VC
        nic.setAddressType("generated");
        nic.setBacking(nicBacking);
        nic.setKey(0);
  
        nicSpec.setDevice(nic);
        return nicSpec;
    }
View Full Code Here

    {
        VirtualDeviceConfigSpec nicSpec =
            new VirtualDeviceConfigSpec();
        nicSpec.setOperation(VirtualDeviceConfigSpecOperation.add);

        VirtualEthernetCard nic =  new VirtualE1000();
        VirtualEthernetCardNetworkBackingInfo nicBacking =
            new VirtualEthernetCardNetworkBackingInfo();
        nicBacking.setDeviceName(netName);

        Description info = new Description();
        info.setLabel(nicName);
        info.setSummary(netName);
        nic.setDeviceInfo(info);
   
        // type: "generated", "manual", "assigned" by VC
        nic.setAddressType("generated");
        nic.setBacking(nicBacking);
        nic.setKey(0);
  
        nicSpec.setDevice(nic);
        return nicSpec;
    }
View Full Code Here

        VirtualDeviceConfigSpec nicSpec =
            new VirtualDeviceConfigSpec();
        nicSpec.setOperation(VirtualDeviceConfigSpecOperation.add);

        VirtualEthernetCard nic =  new VirtualE1000();
        VirtualEthernetCardNetworkBackingInfo nicBacking =
            new VirtualEthernetCardNetworkBackingInfo();
        nicBacking.setDeviceName(netName);

        Description info = new Description();
        info.setLabel(nicName);
        info.setSummary(netName);
        nic.setDeviceInfo(info);
View Full Code Here

        boolean isScsi = true;
       
        switch(type_) {
        case IDE:
            isScsi = false;
            ctrl = new VirtualIDEController();
            break;
        case BUSLOGIC:
            isScsi = true;
            ctrl = new VirtualBusLogicController();
            break;
View Full Code Here

    private VirtualDeviceConfigSpec createScsiSpec(int cKey)
    {
        VirtualDeviceConfigSpec scsiSpec =
            new VirtualDeviceConfigSpec();
        scsiSpec.setOperation(VirtualDeviceConfigSpecOperation.add);
        VirtualLsiLogicController scsiCtrl =
            new VirtualLsiLogicController();
        scsiCtrl.setKey(cKey);
        scsiCtrl.setBusNumber(0);
        scsiCtrl.setSharedBus(VirtualSCSISharing.noSharing);
        scsiSpec.setDevice(scsiCtrl);
        return scsiSpec;
    }
View Full Code Here

            isScsi = true;
            ctrl = new VirtualBusLogicController();
            break;
        case LSILOGIC:
            isScsi = true;
            ctrl = new VirtualLsiLogicController();
            break;
        case LSILOGICSAS:
            isScsi = true;
            ctrl = new VirtualLsiLogicSASController();
            break;
View Full Code Here

            isScsi = true;
            ctrl = new VirtualLsiLogicController();
            break;
        case LSILOGICSAS:
            isScsi = true;
            ctrl = new VirtualLsiLogicSASController();
            break;
        default:
            return null;
        }
View Full Code Here

TOP

Related Classes of com.vmware.vim25.mo.samples.event.EventHistoryCollectorMonitor

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.