Package org.apache.ode.jacob.vpu

Examples of org.apache.ode.jacob.vpu.JacobVPU


        // saving
        _bpelProcess.saveEvent(event, _dao);
    }

    private void initVPU() {
        vpu = new JacobVPU();
        vpu.registerExtension(BpelRuntimeContext.class, this);
        soup = new ExecutionQueueImpl(null);
        soup.setReplacementMap(_bpelProcess.getReplacementMap());
        vpu.setContext(soup);
    }
View Full Code Here


            });
        }
    }

    public static void main(String args[]) {
        JacobVPU vpu = new JacobVPU();
        vpu.setContext(new ExecutionQueueImpl(null));
        vpu.inject(new Tester());
        while (vpu.execute()) {
            // run
        }
    }
View Full Code Here

      System.err.println("usage: java " + Sieve.class.getName() + " requested-prime");
      System.err.println("  requested-prime = which prime to show (0->inf)");
      System.exit(1);
    } else {
      int request = Integer.parseInt(args[0]);
      JacobVPU vpu = new JacobVPU();
      vpu.setContext(new ExecutionQueueImpl(null));
      vpu.inject(new Sieve());
      while (_cnt != request) {
        vpu.execute();
      }
      System.err.println("The " + _cnt + "th prime is " + _last);
    }

View Full Code Here

    private RuntimeImpl _runtime;

    public RuntimeInstanceImpl(RuntimeImpl runtime, ExecutionQueueImpl soup) {
        _runtime = runtime;
        _vpu = new JacobVPU();
        _vpu.registerExtension(OdeRTInstanceContext.class, this);
        if (soup == null) {
            _soup = new ExecutionQueueImpl(getClass().getClassLoader());
            _soup.setGlobalData(new OutstandingRequestManager());
        } else {
View Full Code Here

    private RuntimeImpl _runtime;

    public RuntimeInstanceImpl(RuntimeImpl runtime, ExecutionQueueImpl soup) {
        _runtime = runtime;
        _vpu = new JacobVPU();
        _vpu.registerExtension(OdeRTInstanceContext.class, this);
        if (soup == null) {
            _soup = new ExecutionQueueImpl(getClass().getClassLoader());
            _soup.setGlobalData(new OutstandingRequestManager());
        } else {
View Full Code Here

    super(testName);
  }

  public void testJacobCell1() throws IOException {
    ExecutionQueueImpl fsoup = new ExecutionQueueImpl(null);
    JacobVPU vpu = new JacobVPU(fsoup, new CellTest1());


    while (vpu.execute()) {
      vpu.flush();
      ByteArrayOutputStream bos = new ByteArrayOutputStream();
      fsoup.write(bos);
      bos.close();
      System.err.println("CONTINUATION SIZE: " + bos.size());
    }
    vpu.dumpState();
    fsoup.dumpState(System.err);
    assertNotNull(_val);
    assertEquals("foo", _val);
  }
View Full Code Here

    protected void setUp() throws Exception {
        _completedOk = false;
        _terminate = false;
        _fault = null;
        _soup = new ExecutionQueueImpl(CoreBpelTest.class.getClassLoader());
        _vpu = new JacobVPU(_soup);
        _vpu.registerExtension(OdeRTInstanceContext.class, this);
        _pid = (long) 19355;
    }
View Full Code Here

    protected void setUp() throws Exception {
        _completedOk = false;
        _terminate = false;
        _fault = null;
        _soup = new ExecutionQueueImpl(CoreBpelTest.class.getClassLoader());
        _vpu = new JacobVPU(_soup);
        _vpu.registerExtension(OdeRTInstanceContext.class, this);
        _pid = (long) 19355;
    }
View Full Code Here

            }
        })) {
            ExecutionQueueImpl soup = new ExecutionQueueImpl(CoreBpelTest.class.getClassLoader());

            soup.read(new FileInputStream(soupState));
            JacobVPU vpu = new JacobVPU(soup);
            CoreBpelTest instance = new CoreBpelTest();
            vpu.registerExtension(OdeRTInstanceContext.class, instance);

            instance._completedOk = false;
            instance._terminate = false;
            instance._fault = null;

            for (int i = 0; i < 1000 && !instance._completedOk && instance._fault == null && !instance._terminate; ++i)
                vpu.execute();
        }

    }
View Full Code Here

                                  MyRoleMessageExchangeImpl instantiatingMessageExchange) {
        _bpelProcess = bpelProcess;
        _dao = dao;
        _iid = dao.getInstanceId();
        _instantiatingMessageExchange = instantiatingMessageExchange;
        _vpu = new JacobVPU();
        _vpu.registerExtension(BpelRuntimeContext.class, this);

        _soup = new ExecutionQueueImpl(null);
        _soup.setReplacementMap(_bpelProcess.getReplacementMap(dao.getProcess().getProcessId()));
        _outstandingRequests = null;
View Full Code Here

TOP

Related Classes of org.apache.ode.jacob.vpu.JacobVPU

Copyright © 2018 www.massapicom. 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.