Examples of startJob()


Examples of appeng.container.implementations.ContainerCraftConfirm.startJob()

      qk.cycleCpu( Value.equals( "Next" ) );
    }
    else if ( Name.equals( "Terminal.Start" ) && c instanceof ContainerCraftConfirm )
    {
      ContainerCraftConfirm qk = (ContainerCraftConfirm) c;
      qk.startJob();
    }
    else if ( Name.equals( "TileCrafting.Cancel" ) && c instanceof ContainerCraftingCPU )
    {
      ContainerCraftingCPU qk = (ContainerCraftingCPU) c;
      qk.cancelCrafting();
View Full Code Here

Examples of appeng.container.implementations.ContainerCraftingStatus.startJob()

      qk.cycleCpu( Value.equals( "Next" ) );
    }
    else if ( Name.equals( "Terminal.Start" ) && c instanceof ContainerCraftConfirm )
    {
      ContainerCraftConfirm qk = (ContainerCraftConfirm) c;
      qk.startJob();
    }
    else if ( Name.equals( "TileCrafting.Cancel" ) && c instanceof ContainerCraftingCPU )
    {
      ContainerCraftingCPU qk = (ContainerCraftingCPU) c;
      qk.cancelCrafting();
View Full Code Here

Examples of com.google.appengine.tools.mapreduce.impl.shardedjob.ShardedJobService.startJob()

    ShardedJobController<TestTask> controller = new DummyWorkerController();
    byte[] bytes = new byte[1024 * 1024];
    new Random().nextBytes(bytes);
    TestTask s1 = new TestTask(0, 2, 2, 2, bytes);
    TestTask s2 = new TestTask(1, 2, 2, 1);
    jobService.startJob("testCleanupJob", ImmutableList.of(s1, s2), controller, settings);
    assertFalse(jobService.cleanupJob("testCleanupJob"));
    executeTasksUntilEmpty();
    DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
    assertEquals(3, ds.prepare(new Query()).countEntities(FetchOptions.Builder.withDefaults()));
    assertTrue(jobService.cleanupJob("testCleanupJob"));
View Full Code Here

Examples of com.google.appengine.tools.mapreduce.impl.shardedjob.ShardedJobService.startJob()

  @Test
  public void testGetJobDetail_empty() throws Exception {
    ShardedJobService jobService = ShardedJobServiceFactory.getShardedJobService();
    ShardedJobSettings settings = new ShardedJobSettings.Builder().build();
    ShardedJobController<TestTask> controller = new DummyWorkerController();
    jobService.startJob("testGetJobDetail_empty", ImmutableList.<TestTask>of(), controller,
        settings);

    JSONObject result = StatusHandler.handleGetJobDetail("testGetJobDetail_empty");
    assertEquals("testGetJobDetail_empty", result.getString("mapreduce_id"));
    assertEquals(0, result.getJSONArray("shards").length());
View Full Code Here

Examples of com.google.appengine.tools.mapreduce.impl.shardedjob.ShardedJobService.startJob()

    ShardedJobService jobService = ShardedJobServiceFactory.getShardedJobService();
    ShardedJobSettings settings = new ShardedJobSettings.Builder().build();
    ShardedJobController<TestTask> controller = new DummyWorkerController();
    TestTask s1 = new TestTask(0, 2, 2, 2);
    TestTask s2 = new TestTask(1, 2, 2, 1);
    jobService.startJob("testGetJobDetail_populated", ImmutableList.of(s1, s2), controller,
        settings);
    ShardedJobState state = jobService.getJobState("testGetJobDetail_populated");
    assertEquals(2, state.getActiveTaskCount());
    assertEquals(2, state.getTotalTaskCount());
    assertEquals(new Status(Status.StatusCode.RUNNING), state.getStatus());
View Full Code Here

Examples of com.google.appengine.tools.mapreduce.impl.shardedjob.ShardedJobService.startJob()

  public void testGetJobDetail_empty() throws Exception {
    ShardedJobService jobService = ShardedJobServiceFactory.getShardedJobService();
    ShardedJobSettings settings = new ShardedJobSettings();
    ShardedJobController<TestWorkerTask, WorkerResult<Integer>>
    controller = new DummyWorkerController("Namey");
    jobService.startJob(
        "testGetJobDetail_empty", ImmutableList.<TestWorkerTask>of(), controller, settings);


    JSONObject result = StatusHandler.handleGetJobDetail("testGetJobDetail_empty");
    assertEquals("testGetJobDetail_empty", result.getString("mapreduce_id"));
View Full Code Here

Examples of com.google.appengine.tools.mapreduce.impl.shardedjob.ShardedJobService.startJob()

    ShardedJobController<TestWorkerTask, WorkerResult<Integer>> controller =
        new DummyWorkerController("Namey");
    TestWorkerTask three = new TestWorkerTask(0, 3, null);
    TestWorkerTask two = new TestWorkerTask(1, 2, null);
    TestWorkerTask one = new TestWorkerTask(0, 1, three);
    jobService.startJob(
        "testGetJobDetail_populated", ImmutableList.of(one, two), controller, settings);
    ShardedJobState<?, WorkerResult<? extends Serializable>> state =
        jobService.getJobState("testGetJobDetail_populated");
    assertEquals(2, state.getActiveTaskCount());
    assertEquals(new CountersImpl(), state.getAggregateResult().getCounters());
View Full Code Here

Examples of io.druid.segment.realtime.plumber.Plumber.startJob()

    final int myRowFlushBoundary = rowFlushBoundary > 0
                                   ? rowFlushBoundary
                                   : toolbox.getConfig().getDefaultRowFlushBoundary();
    final QueryGranularity rollupGran = ingestionSchema.getDataSchema().getGranularitySpec().getQueryGranularity();
    try {
      plumber.startJob();

      while (firehose.hasMore()) {
        final InputRow inputRow = firehose.nextRow();

        if (shouldIndex(shardSpec, interval, inputRow, rollupGran)) {
View Full Code Here

Examples of org.apache.oozie.servlet.V1JobServlet.startJob()

            protected String getResourceName(HttpServletRequest request) {
                return "-C";
            }
        };
        try {
            testV1JobServlet.startJob(null, null);
            // should not get here!
            fail("Negative test to test an exception. Should not be succeeding!");
        } catch (XServletException xse) {
            // check for the error code and the message
            assertEquals(xse.getErrorCode(), ErrorCode.E0303);
View Full Code Here

Examples of org.apache.oozie.servlet.V1JobServlet.startJob()

            protected String getResourceName(HttpServletRequest request) {
                return "-C";
            }
        };
        try {
            testV1JobServlet.startJob(null, null);
            // should not get here!
            fail("Negative test to test an exception. Should not be succeeding!");
        } catch (XServletException xse) {
            // check for the error code and the message
            assertEquals(xse.getErrorCode(), ErrorCode.E0303);
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.