Examples of submit()


Examples of org.apache.hadoop.mapreduce.v2.hs.TestJobHistoryEvents.MRAppWithHistory.submit()

        CommonConfigurationKeysPublic.NET_TOPOLOGY_NODE_SWITCH_MAPPING_IMPL_KEY,
        MyResolver.class, DNSToSwitchMapping.class);
    RackResolver.init(conf);
    MRApp app = new MRAppWithHistory(numMaps, numReduces, true, this.getClass()
        .getName(), true);
    app.submit(conf);
    Job job = app.getContext().getAllJobs().values().iterator().next();
    JobId jobId = job.getID();
    LOG.info("JOBID is " + TypeConverter.fromYarn(jobId).toString());
    app.waitForState(job, JobState.SUCCEEDED);
View Full Code Here

Examples of org.apache.hadoop.yarn.server.resourcemanager.Application.submit()

    Priority priority_1 =
      org.apache.hadoop.yarn.server.resourcemanager.resource.Priority.create(1);
   
    // Submit an application
    Application application_0 = new Application("user_0", resourceManager);
    application_0.submit();
   
    application_0.addNodeManager(host_0, 1234, nm_0);
    application_0.addNodeManager(host_1, 1234, nm_1);

    Resource capability_0_0 = Resources.createResource(GB);
View Full Code Here

Examples of org.apache.isis.example.application.claims.dom.claim.Claim.submit()

    @Test
    public void cannotSubmitTwice() throws Exception {
        final Claim tomsSubmittedClaim = tomsSubmittedClaim();
        try {
            final Approver approver = tomEmployee.getDefaultApprover();
            tomsSubmittedClaim.submit(approver);
            fail("Should not be able to submit again");
        } catch (final DisabledException e) {
            assertThat(e.getMessage(), Matchers.containsString("Claim has already been submitted"));
        }
    }
View Full Code Here

Examples of org.apache.ivory.client.IvoryClient.submit()

    validateEntityType(optionsList, entityType);

    if (optionsList.contains(SUBMIT_OPT)) {
      validateFilePath(optionsList, filePath);
      validateColo(optionsList);
      result = client.submit(entityType, filePath);
    } else if (optionsList.contains(UPDATE_OPT)) {
      validateFilePath(optionsList, filePath);
      validateColo(optionsList);
      validateEntityName(optionsList, entityName);
      result = client.update(entityType, entityName, filePath);
View Full Code Here

Examples of org.apache.oozie.client.OozieClient.submit()

            conf.setProperty(OozieClient.APP_PATH, appPath.toString() + File.separator + "workflow.xml");
            conf.setProperty(OozieClient.USER_NAME, getTestUser());
            conf.setProperty(OozieClient.GROUP_NAME, getTestGroup());


            final String jobId = wc.submit(conf);
            assertNotNull(jobId);

            WorkflowJob wf = wc.getJobInfo(jobId);
            assertNotNull(wf);
            assertEquals(WorkflowJob.Status.PREP, wf.getStatus());
View Full Code Here

Examples of org.apache.oozie.client.XOozieClient.submit()

            options.add(option.getOpt());
        }

        try {
            if (options.contains(SUBMIT_OPTION)) {
                System.out.println(JOB_ID_PREFIX + wc.submit(getConfiguration(wc, commandLine)));
            }
            else if (options.contains(START_OPTION)) {
                wc.start(commandLine.getOptionValue(START_OPTION));
            }
            else if (options.contains(DRYRUN_OPTION)) {
View Full Code Here

Examples of org.apache.wicket.util.tester.FormTester.submit()

    testPage.textField.setType(String.class);
    testPage.textField.setConvertEmptyInputStringToNull(true);
    tester.startPage(testPage);
    FormTester formTester = tester.newFormTester(testPage.form.getId());
    formTester.setValue(testPage.textField.getId(), "");
    formTester.submit();
    assertEquals(null, testPage.textField.getDefaultModelObject());
  }

  /**
   * Asserting that the value attribute on tag input is escaped once by default
View Full Code Here

Examples of org.apache.wicket.util.tester.SwarmFormTester.submit()

    // loginpage, else the homepage will be used which will trigger a bind
    // because a throw restartResponseAtInterceptPageexception will trigger
    // a session.bind
    SwarmFormTester form = mock.newFormTester("form");
    form.setValue("username", "test");
    form.submit();
    mock.assertRenderedPage(MockHomePage.class);
    mock.setupRequestAndResponse();
    assertFalse(Session.get().isTemporary());
    mock.processRequestCycle(MockLoginPage.class);
  }
View Full Code Here

Examples of org.drools.concurrent.ExecutorService.submit()

        InternalWorkingMemory wm = newWorkingMemory();

        final AssertObject assertObject = new AssertObject( object );
        ExecutorService executor = ExecutorServiceFactory.createExecutorService( this.ruleBase.getConfiguration().getExecutorService() );
        executor.setCommandExecutor( new CommandExecutor( wm ) );
        executor.submit( assertObject );
        executor.submit( new FireAllRules( this.agendaFilter ) );
    }

    public void asyncExecute(final Object[] array) {
        InternalWorkingMemory wm = newWorkingMemory();
View Full Code Here

Examples of org.geoserver.web.wicket.GeoServerDialog.submit()

                    assertTrue(contents instanceof GeoServerFileChooser);
                    return true;
                }
        });
       
        dialog.submit(new AjaxRequestTarget(tester.getLastRenderedPage()));
    }

    @Test
    public void testHideFileSystem() throws Exception {
        tester.startPage(new FormTestPage(new ComponentBuilder() {
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.