Package org.ggf.jsdl

Examples of org.ggf.jsdl.ProcessorArchitectureEnumeration


            }

            rps.setVmmVersions(vmm.getVersion());
        }

        final ProcessorArchitectureEnumeration cpuArch =
                                    rpSet.getCPUArchitectureName();
        if (cpuArch != null) {
            rps.setCpuArchitectureName(cpuArch.toString());
        }

        return rps;
    }
View Full Code Here


            throw new IllegalArgumentException("alloc may not be null");
        }
       
        final String raArch = ra.getArchitecture();

        ProcessorArchitectureEnumeration arch = null;
        if (raArch != null) {
            arch = (ProcessorArchitectureEnumeration) archMap.get(raArch);
            if (arch == null) {
                throw new CannotTranslateException("do not recognize given " +
                        "CPU architecture '" + raArch + "'");
View Full Code Here

        if (arch == null) {
            throw new CannotTranslateException(
                    "CPUArchitecture_Type may not be missing");
        }

        final ProcessorArchitectureEnumeration archEnum =
                                        arch.getCPUArchitectureName();
        if (archEnum == null) {
            throw new CannotTranslateException(
                    "ProcessorArchitectureEnumeration may not be missing");
        }

        final String archStr = (String) archMap.get(archEnum);
        if (archStr == null) {
            throw new CannotTranslateException(
                    "ProcessorArchitectureEnumeration contains " +
                            "unrecognized value '" + archEnum.toString() + "'");
        }

        ResourceAllocation ra = req.getRequestedRA();
        if (ra == null) {
            ra = this.repr._newResourceAllocation();
View Full Code Here

    private static Requirements_Type constructRequirements(String cpuType,
                                                           String vmmVersion,
                                                           String vmmType,
                               URI kernel) {
        final Requirements_Type rtype = new Requirements_Type();
        final ProcessorArchitectureEnumeration pae =
                ProcessorArchitectureEnumeration.fromString(cpuType);
        final CPUArchitecture_Type cpu = new CPUArchitecture_Type(pae, null);
        rtype.setCPUArchitecture(cpu);
        final String[] versions = {vmmVersion};
        rtype.setVMM(new VMM_Type(VMM_TypeType.fromString(vmmType), versions));
View Full Code Here

TOP

Related Classes of org.ggf.jsdl.ProcessorArchitectureEnumeration

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.