Package org.ogf.schemas.jsdl

Examples of org.ogf.schemas.jsdl.JobDescriptionType


        addDataStagingTargetElement(value, fileSystem, file, uri, 0);
    }

    public static void addDataStagingTargetElement(JobDefinitionType value, String fileSystem, String file, String uri,
            int flags) {
        JobDescriptionType jobDescr = getOrCreateJobDescription(value);
        DataStagingType newDS = jobDescr.addNewDataStaging();
        CreationFlagEnumeration.Enum creationFlag = CreationFlagEnumeration.DONT_OVERWRITE;
        if ((flags & FLAG_OVERWRITE) != 0)
            creationFlag = CreationFlagEnumeration.OVERWRITE;
        if ((flags & FLAG_APPEND) != 0)
            creationFlag = CreationFlagEnumeration.APPEND;
View Full Code Here


        addDataStagingSourceElement(value, uri, fileSystem, file, 0);
    }

    public static void addDataStagingSourceElement(JobDefinitionType value, String uri, String fileSystem, String file,
            int flags) {
        JobDescriptionType jobDescr = getOrCreateJobDescription(value);

        try {
            uri = (uri == null) ? null : URIUtils.encodeAll(uri);
        } catch (URIException e) {
        }
        DataStagingType newDS = jobDescr.addNewDataStaging();
        CreationFlagEnumeration.Enum creationFlag = CreationFlagEnumeration.DONT_OVERWRITE;
        if ((flags & FLAG_OVERWRITE) != 0)
            creationFlag = CreationFlagEnumeration.OVERWRITE;
        if ((flags & FLAG_APPEND) != 0)
            creationFlag = CreationFlagEnumeration.APPEND;
View Full Code Here

            newDS.setFilesystemName(fileSystem);
        }
    }

    public static ApplicationType getOrCreateApplication(JobDefinitionType value) {
        JobDescriptionType jobDescr = getOrCreateJobDescription(value);
        if (!jobDescr.isSetApplication()) {
            jobDescr.addNewApplication();
        }
        return jobDescr.getApplication();
    }
View Full Code Here

        }
        return value.getJobDescription();
    }

    public static JobIdentificationType getOrCreateJobIdentification(JobDefinitionType value) {
        JobDescriptionType descr = getOrCreateJobDescription(value);
        if (descr.getJobIdentification() == null) {
            return descr.addNewJobIdentification();
        }
        return descr.getJobIdentification();
    }
View Full Code Here

        }
        return jobResources.getOperatingSystem();
    }

    public static ResourcesType getOrCreateResources(JobDefinitionType value) {
        JobDescriptionType jobDescr = getOrCreateJobDescription(value);
        if (!jobDescr.isSetResources()) {
            jobDescr.addNewResources();
        }
        return jobDescr.getResources();
    }
View Full Code Here

TOP

Related Classes of org.ogf.schemas.jsdl.JobDescriptionType

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.