Examples of CIMResourceAllocationSettingDataType


Examples of org.dmtf.schemas.wbem.wscim._1.cim_schema._2.cim_resourceallocationsettingdata.CIMResourceAllocationSettingDataType

        final VirtualHardwareSectionType vhsection, final TemplateDto disk)
        throws RequiredAttributeException
    {
        if (disk.getEthernetDriverType() != null)
        {
            CIMResourceAllocationSettingDataType ethDriver =
                CIMResourceAllocationSettingDataUtils.createResourceAllocationSettingData(
                    "ethernetDriver", "1", CIMResourceTypeEnum.Ethernet_Adapter, 0, null);
            ethDriver.setResourceSubType(CIMTypesUtils.createString(disk.getEthernetDriverType()));

            final RASDType rasdEthDriver =
                CIMResourceAllocationSettingDataUtils.createRASDTypeFromCIMRASD(ethDriver);
            OVFVirtualHadwareSectionUtils.addRASD(vhsection, rasdEthDriver);
        }
View Full Code Here

Examples of org.dmtf.schemas.wbem.wscim._1.cim_schema._2.cim_resourceallocationsettingdata.CIMResourceAllocationSettingDataType

        final VirtualHardwareSectionType vhsection, final TemplateDto disk)
        throws RequiredAttributeException
    {
        if (disk.getDiskControllerType() != null)
        {
            CIMResourceAllocationSettingDataType diskController = null;
            if ("IDE".equalsIgnoreCase(disk.getDiskControllerType()))
            {
                diskController =
                    CIMResourceAllocationSettingDataUtils.createResourceAllocationSettingData(
                        "IDE Controller", "3", CIMResourceTypeEnum.IDE_Controller, 0, null);
            }
            else if ("SCSI".equalsIgnoreCase(disk.getDiskControllerType()))
            {
                diskController =
                    CIMResourceAllocationSettingDataUtils.createResourceAllocationSettingData(
                        "SCSI Controller", "3", CIMResourceTypeEnum.Parallel_SCSI_HBA, 0, null);
                diskController.setResourceSubType(CIMTypesUtils.createString("lsilogic"));

            }

            OVFVirtualHadwareSectionUtils.addRASD(vhsection,
                CIMResourceAllocationSettingDataUtils.createRASDTypeFromCIMRASD(diskController));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.