Examples of JobType


Examples of org.apache.xmpbox.type.JobType

        XMPBasicJobTicketSchema jt = rxmp.getBasicJobTicketSchema();
        Assert.assertNotNull(jt);
        Assert.assertEquals(1, jt.getJobs().size());

        JobType job = jt.getJobs().get(0);
        // SaveMetadataHelper.serialize(rxmp, System.out);

        // StructuredType stjob =
        // JobType.class.getAnnotation(StructuredType.class);

        Assert.assertEquals("zeid2", job.getId());
        Assert.assertEquals("zename2", job.getName());
        Assert.assertEquals("zeurl2", job.getUrl());
        // Assert.assertEquals(stjob.namespace(), job.getNamespace());
        // Assert.assertEquals("aaa", job.getPrefix());

    }
View Full Code Here

Examples of org.apache.xmpbox.type.JobType

        addJob(id, name, url, null);
    }

    public void addJob(String id, String name, String url, String fieldPrefix)
    {
        JobType job = new JobType(getMetadata(), fieldPrefix);
        job.setId(id);
        job.setName(name);
        job.setUrl(url);
        addJob(job);
    }
View Full Code Here

Examples of org.drools.planner.examples.manners2009.domain.JobType

                if (lineTokens.length < 5) {
                    throw new IllegalArgumentException("Read line (" + line
                            + ") is expected to contain at least 5 tokens.");
                }
                guest.setCode(lineTokens[0].trim());
                JobType jobType = JobType.valueOfCode(lineTokens[1].trim());
                String jobName = lineTokens[2].trim();
                String jobMapKey = jobType + "/" + jobName;
                Job job = jobMap.get(jobMapKey);
                if (job == null) {
                    job = new Job();
View Full Code Here

Examples of org.drools.planner.examples.manners2009.domain.JobType

                if (lineTokens.length < 5) {
                    throw new IllegalArgumentException("Read line (" + line
                            + ") is expected to contain at least 5 tokens.");
                }
                guest.setCode(lineTokens[0].trim());
                JobType jobType = JobType.valueOfCode(lineTokens[1].trim());
                String jobName = lineTokens[2].trim();
                String jobMapKey = jobType + "/" + jobName;
                Job job = jobMap.get(jobMapKey);
                if (job == null) {
                    job = new Job();
View Full Code Here

Examples of org.exist.scheduler.JobType

            final Element job = (Element)nlJobs.item( i );

            //get the job type
            final String strJobType = getConfigAttributeValue(job, JobConfig.JOB_TYPE_ATTRIBUTE);

            final JobType jobType;
            if(strJobType == null) {
                jobType = JobType.USER; //default to user if unspecified
            } else {
                jobType = JobType.valueOf(strJobType.toUpperCase(Locale.ENGLISH));
            }
View Full Code Here

Examples of org.optaplanner.examples.dinnerparty.domain.JobType

                Guest guest = new Guest();
                guest.setId((long) i);
                String[] lineTokens = splitByCommaAndTrim(bufferedReader.readLine(), 6, null);
                guest.setCode(lineTokens[0]);
                guest.setName(lineTokens[1]);
                JobType jobType = JobType.valueOfCode(lineTokens[2]);
                String jobName = lineTokens[3];
                String jobMapKey = jobType + "/" + jobName;
                Job job = jobMap.get(jobMapKey);
                if (job == null) {
                    job = new Job();
View Full Code Here

Examples of org.optaplanner.examples.projectjobscheduling.domain.JobType

import org.optaplanner.examples.projectjobscheduling.domain.JobType;

public class NotSourceOrSinkAllocationFilter implements SelectionFilter<Allocation> {

    public boolean accept(ScoreDirector scoreDirector, Allocation allocation) {
        JobType jobType = allocation.getJob().getJobType();
        return jobType != JobType.SOURCE && jobType != JobType.SINK;
    }
View Full Code Here

Examples of simulation.JobType

      return;
    }

    //Create a new job type or edit the current job type
    if (currentJobType == null) {
      currentJobType = new JobType(txtName.getText(), steStartingTime.getValue(), steEndingTime.getValue());
    } else {
      currentJobType.setName(txtName.getText());
      currentJobType.setStartingTime(steStartingTime.getValue());
      currentJobType.setEndingTime(steEndingTime.getValue());
    }
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.