Examples of JobType


Examples of com.microsoft.windowsazure.services.media.implementation.content.JobType

        // Arrange
        String expectedNotificationEndPointId = "testNotificationEndPointId";
        JobNotificationSubscription expectedJobNotificationSubscription = new JobNotificationSubscription(
                expectedNotificationEndPointId, TargetJobState.All);
        JobNotificationSubscriptionType expectedJobNotificationSubscriptionType = new JobNotificationSubscriptionType();
        JobType expectedJobType = new JobType();
        expectedJobType
                .addJobNotificationSubscriptionType(expectedJobNotificationSubscriptionType
                        .setNotificationEndPointId(
                                expectedNotificationEndPointId)
                        .setTargetJobState(TargetJobState.All.getCode()));
        JobInfo jobInfo = new JobInfo(null, expectedJobType);
View Full Code Here

Examples of com.microsoft.windowsazure.services.media.implementation.content.JobType

                "application/atom+xml;type=feed", "OutputAssets");
        addEntryLink(fakeJobEntry, Constants.ODATA_DATA_NS
                + "/related/InputMediaAssets", expectedInputAsset,
                "application/atom+xml;type=feed", "InputAssets");

        JobType payload = new JobType().setId("SomeId").setName("FakeJob");
        addEntryContent(fakeJobEntry, payload);

        return new JobInfo(fakeJobEntry, payload);
    }
View Full Code Here

Examples of de.innovationgate.wga.model.JobType

        List<String> jobTypes = new ArrayList<String>();
        Iterator<JobType> it = WGADesignConfigurationModel.JOBTYPES.values().iterator();
        _jobTypesByIndex = new HashMap<Integer, JobType>();
        int i = 0;
        while (it.hasNext()) {
          JobType type = it.next();
          jobTypes.add(type.getValue());
          _jobTypesByIndex.put(i, type);
          i++;
        }
       
        CellEditor[] editors = new CellEditor[5];
View Full Code Here

Examples of org.apache.nutch.api.JobManager.JobType

   */
  @Put("json")
  public Object create(Map<String,Object> args) throws Exception {
    String cid = (String)args.get(Params.CRAWL_ID);
    String typeString = (String)args.get(Params.JOB_TYPE);
    JobType type = JobType.valueOf(typeString.toUpperCase());
    String confId = (String)args.get(Params.CONF_ID);
    Map<String,Object> cmdArgs = (Map<String,Object>)args.get(Params.ARGS);
    String jobId = NutchApp.jobMgr.create(cid, type, confId, cmdArgs);
    return jobId;
  }
View Full Code Here

Examples of org.apache.nutch.api.JobManager.JobType

  @Put("json")
  @SuppressWarnings("unchecked")
  public Object create(Map<String,Object> args) throws Exception {
    String cid = (String)args.get(Params.CRAWL_ID);
    String typeString = (String)args.get(Params.JOB_TYPE);
    JobType type = JobType.valueOf(typeString.toUpperCase());
    String confId = (String)args.get(Params.CONF_ID);
    Object map = args.get(Params.ARGS);
    Map<String,Object> cmdArgs = null;
    if(map instanceof Map<?,?>)
      cmdArgs = (Map<String,Object>)map;
View Full Code Here

Examples of org.apache.padaf.xmpbox.type.JobType

            ComplexPropertyContainer container)
    throws XmpUnexpectedTypeException, XmpParsingException,
    XMLStreamException, XmpUnknownPropertyTypeException,
    XmpPropertyFormatException {
        builder.expectCurrentLocalName("li");
        JobType job = new JobType(metadata, altName.getPrefix(), altName.getLocalPart());
        int elmtType = builder.reader.get().nextTag();
        QName eltName;
        String eltContent;
        while (!((elmtType == XMLStreamReader.END_ELEMENT) && builder.reader.get()
                .getName().getLocalPart().equals("li"))) {
            eltName = builder.reader.get().getName();
            eltContent = builder.reader.get().getElementText();
            if (eltName.getLocalPart().equals(JobType.ID)) {
                job.setId(eltName.getPrefix(), eltContent);
            } else if (eltName.getLocalPart().equals(JobType.NAME)) {
                job.setName(eltName.getPrefix(),eltContent);
            } else if (eltName.getLocalPart().equals(JobType.URL)) {
                job.setUrl(eltName.getPrefix(), eltContent);
            } else {
                throw new XmpParsingException(
                        "Unknown property name for a job element : "
                        + eltName.getLocalPart());
            }
View Full Code Here

Examples of org.apache.padaf.xmpbox.type.JobType

        if (bagJobs == null) {
            bagJobs = new ComplexProperty(metadata, localPrefix, JOB_REF,
                    ComplexProperty.UNORDERED_ARRAY);
            addProperty(bagJobs);
        }
        JobType job = new JobType(metadata, "rdf", "li");
        job.setId("stJob", id);
        job.setName("stJob", name);
        job.setUrl("stJob", url);
        bagJobs.getContainer().addProperty(job);
    }
View Full Code Here

Examples of org.apache.xmpbox.type.JobType

        XMPBasicJobTicketSchema jt = rxmp.getBasicJobTicketSchema();
        Assert.assertNotNull(jt);
        Assert.assertEquals(1, jt.getJobs().size());
        StructuredType stjob = JobType.class.getAnnotation(StructuredType.class);

        JobType job = jt.getJobs().get(0);
        Assert.assertEquals("zeid2", job.getId());
        Assert.assertEquals("zename2", job.getName());
        Assert.assertEquals("zeurl2", job.getUrl());
        // Assert.assertEquals("Invalid namespace",stjob.namespace(),
        // job.getNamespace());
        // Assert.assertEquals(stjob.preferedPrefix(), job.getPrefix());

    }
View Full Code Here

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

        XMPBasicJobTicketSchema jt = rxmp.getBasicJobTicketSchema();
        Assert.assertNotNull(jt);
        Assert.assertEquals(1, jt.getJobs().size());
        StructuredType stjob = JobType.class.getAnnotation(StructuredType.class);

        JobType job = jt.getJobs().get(0);
        Assert.assertEquals("zeid2", job.getId());
        Assert.assertEquals("zename2", job.getName());
        Assert.assertEquals("zeurl2", job.getUrl());
        // Assert.assertEquals("Invalid namespace",stjob.namespace(),
        // job.getNamespace());
        // Assert.assertEquals(stjob.preferedPrefix(), job.getPrefix());

    }
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.