Examples of addExtraAttribute()


Examples of org.glite.ce.creamapi.jobmanagement.Job.addExtraAttribute()

        if (expression != null) {
            if (expression.type != Expr.INTEGER || expression.intValue() <= 0) {
                 throw new Exception("wrong value for " + Jdl.HOST_NUMBER + ": it must be >=1");
            }

            job.addExtraAttribute(Jdl.HOST_NUMBER, "" + expression.intValue());
        }

        if (!wholeNodes && job.containsExtraAttribute(Jdl.SMP_GRANULARITY) && job.containsExtraAttribute(Jdl.HOST_NUMBER)) {
            throw new Exception("the SMPGranularity and HostNumber attributes cannot be specified together when WholeNodes=false");
        }
View Full Code Here

Examples of org.glite.ce.creamapi.jobmanagement.Job.addExtraAttribute()

                throw new Exception(JDL.OUTPUTSANDBOX_DESTURI + " & " + JDL.OUTPUTSANDBOX_BASEDESTURI + ": one (and only one) among the OutputSandboxDestURI and OutputSandboxBaseDestURI attributes is allowed");
            }
        }

        boolean isWholeNodes = jdl.isWholeNodes();
        job.addExtraAttribute(JDL.WHOLENODES, "" + isWholeNodes);

        int smpGranularity = jdl.getSMPGranularity();
        if (smpGranularity > 0) {
            job.addExtraAttribute(JDL.SMPGRANULARITY, "" + smpGranularity);
        }
View Full Code Here

Examples of org.glite.ce.creamapi.jobmanagement.Job.addExtraAttribute()

        boolean isWholeNodes = jdl.isWholeNodes();
        job.addExtraAttribute(JDL.WHOLENODES, "" + isWholeNodes);

        int smpGranularity = jdl.getSMPGranularity();
        if (smpGranularity > 0) {
            job.addExtraAttribute(JDL.SMPGRANULARITY, "" + smpGranularity);
        }

        int hostNumber = jdl.getHostNumber();
        if (hostNumber > 0) {
            job.addExtraAttribute(JDL.HOSTNUMBER, "" + hostNumber);
View Full Code Here

Examples of org.glite.ce.creamapi.jobmanagement.Job.addExtraAttribute()

            job.addExtraAttribute(JDL.SMPGRANULARITY, "" + smpGranularity);
        }

        int hostNumber = jdl.getHostNumber();
        if (hostNumber > 0) {
            job.addExtraAttribute(JDL.HOSTNUMBER, "" + hostNumber);
        }

        if (!isWholeNodes && smpGranularity > 0 && hostNumber > 0) {
            throw new Exception("the SMPGranularity and HostNumber attributes cannot be specified together when WholeNodes=false");
        }
View Full Code Here

Examples of org.glite.ce.creamapi.jobmanagement.Job.addExtraAttribute()

            job.setPerusalFilesDestURI(null);
        }

        String mwVersion = jdl.getMWVersion();
        if (mwVersion != null) {
            job.addExtraAttribute(JDL.MWVERSION, mwVersion);
        }

        String lbAddress = jdl.getLBAddress();
        if (lbAddress != null) {
            job.addVolatileProperty(Job.LB_ADDRESS, lbAddress);
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.