Package com.sun.grid.jgdi.configuration

Examples of com.sun.grid.jgdi.configuration.Range


// [-pe pe-name slot_range]                 request slot range for parallel jobs
    @OptionAnnotation(value = "-pe", min = 2)
    public void setPE(final OptionInfo oi) throws JGDIException {
        job.setPe(oi.getFirstArg());
        String[] range = oi.getFirstArg().split("[-]");
        Range apeRange = new RangeImpl();
        if (range[0] != null && range[0].length() > 0) {
            apeRange.setMin(Integer.parseInt(range[0]));
        }
        if (range.length > 1 && range[1] != null && range[1].length() > 0) {
            apeRange.setMax(Integer.parseInt(range[1]));
        }
        job.addPeRange(apeRange);
    }
View Full Code Here


    //[-pe pe-name slot_range]                 request slot range for parallel jobs
    @OptionAnnotation(value="-pe",min=2)
    public void setPE(final OptionInfo oi) throws JGDIException {
        ar.setPe(oi.getFirstArg());
        String range[] = oi.getFirstArg().split("[-]");
        Range apeRange = new RangeImpl();
        if(range[0] != null && range[0].length()>0){
            apeRange.setMin(Integer.parseInt(range[0]));
        }
        if(range.length>1 && range[1] != null && range[1].length()>0){
            apeRange.setMax(Integer.parseInt(range[1]));
        }
        ar.addPeRange(apeRange);
    }
View Full Code Here

TOP

Related Classes of com.sun.grid.jgdi.configuration.Range

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.