Examples of begin()


Examples of org.graphstream.stream.file.FileSinkGML.begin()

  public void test() throws IOException {
    Graph graph = new MultiGraph("test GML");
    FileSinkGML out1 = new FileSinkGML();
    FileSinkDynamicGML out2 = new FileSinkDynamicGML();
 
    out1.begin("TestSinkGML.gml");
    out2.begin("TestSinkGML.dgml");
   
    graph.addSink(out1);
    graph.addSink(out2);
   
View Full Code Here

Examples of org.graphstream.stream.file.FileSource.begin()

    FileSource dgs = GRAPH.endsWith(".gml") ? new FileSourceGML() : new FileSourceDGS();

    dgs.addSink(graph);
    try {
      dgs.begin(getClass().getResourceAsStream(GRAPH));
      for (int i = 0; i < 5000 && dgs.nextEvents(); i++) {
//        fromViewer.pump();
//        layout.compute();
//        sleep(100);
      }
View Full Code Here

Examples of org.graphstream.stream.file.FileSourceDGS.begin()

    if (stylesheet != null)
      fsi.setStyleSheet(stylesheet);

    boolean next = true;

    dgs.begin(others.get(0));

    while (next)
      next = dgs.nextStep();

    dgs.end();
View Full Code Here

Examples of org.graphstream.stream.file.FileSourceGML.begin()

     
      graph.addAttribute("ui.quality");
      graph.addAttribute("ui.antialias");
      graph.display();
      source.addSink(graph);
      source.begin(TestSourceGML.class.getResourceAsStream("dynamic.gml"));
      int step = 0;
      while(source.nextStep()) {
        System.err.printf("Step %d%n", step);
        step++;
        sleep(1000);
View Full Code Here

Examples of org.hibernate.Transaction.begin()

      return methodInvocation.proceed();
    }

    //开始一个新的事务
    if(type != TransactionalType.READOLNY){
      transaction.begin();
    }
   
    Object result = null;
    try {
      //执行被拦截的业务方法
View Full Code Here

Examples of org.infinispan.transaction.tm.DummyTransactionManager.begin()

                  + (sameNode ? "on same node..." : "on a different node..."));
            DummyTransactionManager mgr = null;
            try {
               if (useTx) {
                  mgr = (DummyTransactionManager) TestingUtil.getTransactionManager(sameNode ? cache1 : cache2);
                  mgr.begin();
               }
               if (sameNode) {
                  cache1.put(k, "JBC");
               } else {
                  cache2.put(k, "JBC");
View Full Code Here

Examples of org.jboss.cache.transaction.DummyTransactionManager.begin()

      assertNull(loader.get(fqn));

      DummyTransactionManager mgr = DummyTransactionManager.getInstance();

      // put something in the cache
      mgr.begin();
      cache.put(fqn, key, value);
      mgr.commit();

      // should be nothing in the loader
      assertEquals(value, cache.get(fqn, key));
View Full Code Here

Examples of org.jboss.capedwarf.jpa.ProxyingEnum.begin()

            proxying = clazz.getAnnotation(Proxying.class);
        }

        if (proxying != null) {
            ProxyingEnum pe = proxying.value();
            pe.begin();
            try {
                return invocation.proceed();
            } finally {
                pe.end();
            }
View Full Code Here

Examples of org.jboss.forge.addon.resource.transaction.ResourceTransaction.begin()

      }
      if (timeout.getValue() != null)
      {
         transaction.setTransactionTimeout(timeout.getValue());
      }
      transaction.begin();
      return Results.success("Resource Transaction started");
   }

}
View Full Code Here

Examples of org.jboss.test.cluster.invokerha.InvokerHaTransactionalMockUtils.MockUserTransaction.begin()

      try
      {
         createNewProxies(0, policyClass, true);

         UserTransaction ut = new MockUserTransaction(clientUserTransactionProxy, infrastructure);
         ut.begin();
         performTransactionalStickyCalls(3, null, policyClass, newProxiesInBetweenTransactions);
         ut.commit();
         /* either set would do because they should be the same */
         Set<Object> chosenTargetsTx1 = chosenTargets;;
        
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.