Examples of executeJob()


Examples of com.opengamma.engine.test.TestCalculationNode.executeJob()

    final MockFunction mockFunction = CalculationNodeUtils.getMockFunction();
    final TestCalculationNode calcNode = CalculationNodeUtils.getTestCalcNode(mockFunction);
    final CalculationJob calcJob = CalculationNodeUtils.getCalculationJob(mockFunction);

    final long startTime = System.nanoTime();
    final CalculationJobResult jobResult = calcNode.executeJob(calcJob);
    final long endTime = System.nanoTime();
    assertNotNull(jobResult);
    assertTrue(jobResult.getDuration() >= 0);
    assertTrue(endTime - startTime >= jobResult.getDuration());
    assertEquals(1, jobResult.getResultItems().size());
View Full Code Here

Examples of com.opengamma.engine.test.TestCalculationNode.executeJob()

    final ComputedValue inputValue = new ComputedValue(inputSpec, "Just an input object");

    final ViewComputationCache cache = calcNode.getCache(calcJob.getSpecification());
    cache.putSharedValue(inputValue);

    final CalculationJobResult jobResult = calcNode.executeJob(calcJob);
    assertNotNull(jobResult);
    assertEquals(1, jobResult.getResultItems().size());
    final CalculationJobResultItem resultItem = jobResult.getResultItems().get(0);
    assertEquals(InvocationResult.SUCCESS, resultItem.getResult());
    assertEquals("Nothing we care about", cache.getValue(mockFunction.getResultSpec()));
View Full Code Here

Examples of org.camunda.bpm.engine.ManagementService.executeJob()

  @Override
  public void executeJob() {
    try {
      ManagementService managementService = engine.getManagementService();
      managementService.executeJob(this.jobId);
    } catch (ProcessEngineException e) {
      throw new InvalidRequestException(Status.NOT_FOUND, e.getMessage());
    } catch (RuntimeException r) {
      throw new RestException(Status.INTERNAL_SERVER_ERROR, r.getMessage());
    }
View Full Code Here

Examples of org.jamesii.core.distributed.computationserver.IComputationServer.executeJob()

  public <V> V executeJob(IUniqueID id, Serializable data)
      throws RemoteException {
    List<IComputationServer> resources =
        serviceRegistry.getServicesForPurpose(id);
    IComputationServer server = resources.get(0);
    return server.executeJob(id, data);
  }

  @Override
  public void finalizeJob(IUniqueID id) throws RemoteException {
    List<IComputationServer> resources =
View Full Code Here

Examples of org.jboss.bpm.console.server.plugin.ProcessEnginePlugin.executeJob()

  {

    ProcessEnginePlugin dplPlugin = getDeploymentPlugin();
    if(processEnginePlugin !=null)
    {
      dplPlugin.executeJob(id);
      return Response.ok().build();
    }
    else
    {
      log.error("ProcessEnginePlugin not available");
View Full Code Here

Examples of org.jboss.bpm.console.server.plugin.ProcessEnginePlugin.executeJob()

  {

    ProcessEnginePlugin dplPlugin = getDeploymentPlugin();
    if(processEnginePlugin !=null)
    {
      dplPlugin.executeJob(id);
      return Response.ok().build();
    }
    else
    {
      log.error("ProcessEnginePlugin not available");
View Full Code Here

Examples of org.jboss.bpm.console.server.plugin.ProcessEnginePlugin.executeJob()

  {

    ProcessEnginePlugin dplPlugin = getDeploymentPlugin();
    if(processEnginePlugin !=null)
    {
      dplPlugin.executeJob(id);
      return Response.ok().build();
    }
    else
    {
      log.error("ProcessEnginePlugin not available");
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.