Examples of call()


Examples of org.apache.oozie.command.wf.KillXCommand.call()

            protected Void execute() {
                WorkflowXCommand.generateEvent(job, "errorCode", "errorMsg");
                return null;
            }
        };
        myCmd.call();
        WorkflowJobEvent event = (WorkflowJobEvent) queue.poll();
        assertNotNull(event);
        assertEquals("errorCode", event.getErrorCode());
        assertEquals("errorMsg", event.getErrorMessage());
        assertEquals(EventStatus.FAILURE, event.getEventStatus());
View Full Code Here

Examples of org.apache.oozie.command.wf.ReRunXCommand.call()

        cal.setTime(nominal);
        cal.add(Calendar.MINUTE, 30); // as per the sla xml
        expectedEnd = DateUtils.formatDateOozieTZ(cal.getTime());

        ReRunXCommand rerun = new ReRunXCommand(jobId, conf);
        rerun.call();
        slaEvent = slas.getSLACalculator().get(jobId);
        // assert for new conf
        assertNotNull(slaEvent);
        assertEquals(jobId, slaEvent.getId());
        assertEquals("test-wf-job-sla", slaEvent.getAppName());
View Full Code Here

Examples of org.apache.oozie.command.wf.SubmitCommand.call()

                SubmitXCommand submit = new SubmitXCommand(conf, getAuthToken());
                jobId = submit.call();
            }
            else {
                SubmitCommand submit = new SubmitCommand(conf, getAuthToken());
                jobId = submit.call();
            }
            if (startJob) {
                start(jobId);
            }
            return jobId;
View Full Code Here

Examples of org.apache.oozie.command.wf.SubmitHttpCommand.call()

                }
                else if (jobType.equals("mapreduce")) {
                    submit = new SubmitMRCommand(conf, getAuthToken());
                }

                jobId = submit.call();
            }
            start(jobId);
            return jobId;
        }
        catch (CommandException ex) {
View Full Code Here

Examples of org.apache.oozie.command.wf.SubmitHttpXCommand.call()

            }
            else if (jobType.equals("mapreduce")) {
                submit = new SubmitMRXCommand(conf, getAuthToken());
            }

            jobId = submit.call();
            start(jobId);
            return jobId;
        }
        catch (CommandException ex) {
            throw new DagEngineException(ex);
View Full Code Here

Examples of org.apache.oozie.command.wf.SubmitXCommand.call()

        validateSubmitConfiguration(conf);

        try {
      String jobId;
      SubmitXCommand submit = new SubmitXCommand(conf, getAuthToken());
      jobId = submit.call();
      if (startJob) {
        start(jobId);
      }
      return jobId;
        }
View Full Code Here

Examples of org.apache.qpid.server.util.AveragedRun.call()

        int registrations = Integer.parseInt(argv[0]);
        int messages = Integer.parseInt(argv[1]);
        int iterations = Integer.parseInt(argv[2]);
        TimedRun test = new Test(Mode.ALL, registrations, messages);
        AveragedRun tests = new AveragedRun(test, iterations);
        System.out.println(tests.call());
    }
}
View Full Code Here

Examples of org.apache.stanbol.reasoners.web.utils.ReasoningServiceExecutor.call()

            // Setup the input
            ReasoningServiceInputManager imngr = prepareInput();
            // The service executor
            ReasoningServiceExecutor executor = new ReasoningServiceExecutor(tcManager, imngr,
                    getCurrentService(), getCurrentTask(), target, parameters);
            ReasoningServiceResult<?> result = executor.call();
            return new ResponseTaskBuilder(uriInfo, context, headers).build(result);
        } catch (Exception e) {
            if (e instanceof RuntimeException) {
                throw (RuntimeException)e;
            }
View Full Code Here

Examples of org.apache.ws.pubsub.wsaSOAPConnection.call()

         MessageFactory    mf    = MessageFactory.newInstance(  );
         SOAPMessage       soapm = mf.createMessage(  );

         //put XMLbean into SOAPBody
         soapm.getSOAPBody(  ).addDocument( (org.w3c.dom.Document) sdom.newDomNode(  ) );
         SOAPMessage                   subscribeResponse = sconn.call( soapm,
                                                                       epr.getAddress(  ).toString(  ) );
         java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream(  );
         subscribeResponse.writeTo( os );
         EnvelopeDocument sres =
            EnvelopeDocument.Factory.parse( new java.io.ByteArrayInputStream( os.toByteArray(  ) ) );
View Full Code Here

Examples of org.astrogrid.samp.client.HubConnection.call()

            Client client = comboBoxModel_.getClient();
            if ( client == null ) {
                connection.callAll( getTag(), message );
            }
            else {
                connection.call( client.getId(), getTag(), message );
            }
        }
    }

    /**
 
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.