Examples of createJob()


Examples of de.bitzeche.video.transcoding.zencoder.IZencoderClient.createJob()

    IZencoderClient client = createClient(apiVersion);
    ZencoderJob job = new ZencoderJob(TEST_VIDEO_URL);
    job.setZencoderRegion(ZENCODER_REGION);
    job.setTest(true);

    client.createJob(job);
    int jobId = job.getJobId();
    Assert.assertTrue(jobId >= 0);

    jobMap.put(apiVersion, jobId);
View Full Code Here

Examples of de.bitzeche.video.transcoding.zencoder.IZencoderClient.createJob()

    IZencoderClient client = createClient(apiVersion);
    ZencoderJob job = new ZencoderJob("s" + TEST_VIDEO_URL);
    job.setZencoderRegion(ZENCODER_REGION);
    job.setTest(true);

    client.createJob(job);
  }

  @Test(dataProvider = "ApiVersionDS", dependsOnMethods = "createAndCancelJobTest")
  public void resubmitAndCancelJobTest(ApiVersionProvider provider) {
View Full Code Here

Examples of gnu.hylafax.HylaFAXClient.createJob()

        monitor.setTotalSteps(4);
       
        HylaFAXClient client = JHylaFAX.getInstance().getConnection(monitor);
        monitor.work(1);
       
        gnu.hylafax.Job pollJob = client.createJob();
        HylaFAXClientHelper.applyParameter(pollJob, getJob());
        pollJob.setProperty("POLL", "\"\" \"\"");
        monitor.work(1);
               
        client.submit(pollJob);
View Full Code Here

Examples of gnu.hylafax.HylaFAXClient.createJob()

          }
          // check if monitor was cancelled
          monitor.work(0);
        }
       
        gnu.hylafax.Job sendJob = client.createJob();
        HylaFAXClientHelper.applyParameter(sendJob, getJob());
          if (serverCoverFilename != null) {
            if (Settings.SEND_COVER_AS_DOCUMENT.getValue()) {
              sendJob.addDocument(serverCoverFilename);
            }
View Full Code Here

Examples of org.apache.aurora.gen.AuroraAdmin.Iface.createJob()

    SessionKey session = new SessionKey();

    control.replay();

    Iface thrift = getIface(ImmutableMap.of("createJob", false));
    assertEquals(ResponseCode.ERROR, thrift.createJob(job, null, session).getResponseCode());
  }

  @Test(expected = CreationException.class)
  public void testMissingMethod() {
    control.replay();
View Full Code Here

Examples of org.apache.aurora.gen.AuroraAdmin.Iface.createJob()

    expect(mockThrift.createJob(job, null, SESSION_KEY)).andReturn(response);

    control.replay();

    Iface thrift = getIface(toggledMethods);
    assertSame(response, thrift.createJob(job, null, SESSION_KEY));
  }
}
View Full Code Here

Examples of org.apache.aurora.scheduler.cron.CronJobManager.createJob()

    control.replay();

    boot();

    cronJobManager.createJob(SanitizedCronJob.fromUnsanitized(CRON_JOB));
    cronJobManager.startJobNow(JOB_KEY);
    firstExecutionTriggered.await();
    cronJobManager.startJobNow(JOB_KEY);
    assertEquals(1, secondExecutionTriggered.getCount());
    firstExecutionCompleted.countDown();
View Full Code Here

Examples of org.apache.hadoop.RandomTextWriterJob.createJob()

    }

    RandomTextWriterJob randomWriterJob = new RandomTextWriterJob();
    mrCluster.getConfig().set(RandomTextWriterJob.TOTAL_BYTES, "3072");
    mrCluster.getConfig().set(RandomTextWriterJob.BYTES_PER_MAP, "1024");
    Job job = randomWriterJob.createJob(mrCluster.getConfig());
    Path outputDir = new Path(OUTPUT_ROOT_DIR, "random-output");
    FileOutputFormat.setOutputPath(job, outputDir);
    job.setSpeculativeExecution(false);
    job.addFileToClassPath(APP_JAR); // The AppMaster jar itself.
    job.setJarByClass(RandomTextWriterJob.class);
View Full Code Here

Examples of org.apache.hadoop.RandomTextWriterJob.createJob()

    }

    RandomTextWriterJob randomWriterJob = new RandomTextWriterJob();
    mrrTezCluster.getConfig().set(RandomTextWriterJob.TOTAL_BYTES, "3072");
    mrrTezCluster.getConfig().set(RandomTextWriterJob.BYTES_PER_MAP, "1024");
    Job job = randomWriterJob.createJob(mrrTezCluster.getConfig());
    Path outputDir = new Path(OUTPUT_ROOT_DIR, "random-output");
    FileOutputFormat.setOutputPath(job, outputDir);
    job.setSpeculativeExecution(false);
    job.setJarByClass(RandomTextWriterJob.class);
    job.setMaxMapAttempts(1); // speed up failures
View Full Code Here

Examples of org.apache.hadoop.RandomTextWriterJob.createJob()

    }

    RandomTextWriterJob randomWriterJob = new RandomTextWriterJob();
    mrCluster.getConfig().set(RandomTextWriterJob.TOTAL_BYTES, "3072");
    mrCluster.getConfig().set(RandomTextWriterJob.BYTES_PER_MAP, "1024");
    Job job = randomWriterJob.createJob(mrCluster.getConfig());
    Path outputDir = new Path(OUTPUT_ROOT_DIR, "random-output");
    FileOutputFormat.setOutputPath(job, outputDir);
    job.setSpeculativeExecution(false);
    job.addFileToClassPath(APP_JAR); // The AppMaster jar itself.
    job.setJarByClass(RandomTextWriterJob.class);
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.