Examples of releaseAll()


Examples of org.exist.TestDataGenerator.releaseAll()

                    + ".xml"), is);
            assertNotNull(info);
            coll.store(transaction, broker, info, is, false);
                        transact.commit(transaction);
                    }
          generator.releaseAll();
        }
      } catch (Exception e) {
        transact.abort(transaction);
        e.printStackTrace();
//        fail(e.getMessage());
View Full Code Here

Examples of org.exist.TestDataGenerator.releaseAll()

        for (int i = 0; i < files.length; i++) {
            resource = test.createResource(files[i].getName(), "XMLResource");
            resource.setContent(files[i]);
            test.storeResource(resource);
        }
        generator.releaseAll();
    }

    @AfterClass
    public static void stopServer() {
       
View Full Code Here

Examples of org.jboss.cache.DataNode.releaseAll()

      root=cache.getRoot();


      root.acquireAll(owner, 2000, DataNode.LOCK_TYPE_READ);
      root.releaseAll(owner);

      assertEquals(0, cache.getNumberOfLocksHeld());

      root.acquireAll(owner, 2000, DataNode.LOCK_TYPE_WRITE);
      root.releaseAll(owner);
View Full Code Here

Examples of org.jboss.cache.DataNode.releaseAll()

      root.releaseAll(owner);

      assertEquals(0, cache.getNumberOfLocksHeld());

      root.acquireAll(owner, 2000, DataNode.LOCK_TYPE_WRITE);
      root.releaseAll(owner);

      assertEquals(0, cache.getNumberOfLocksHeld());
   }

View Full Code Here

Examples of org.jboss.cache.DataNode.releaseAll()

      cache=createCache(TreeCache.REPL_ASYNC, IsolationLevel.SERIALIZABLE);
      root=cache.getRoot();

      root.acquireAll(owner, 2000, DataNode.LOCK_TYPE_READ);
      root.releaseAll(owner);

      assertEquals(0, cache.getNumberOfLocksHeld());

      root.acquireAll(owner, 2000, DataNode.LOCK_TYPE_WRITE);
      root.releaseAll(owner);
View Full Code Here

Examples of org.jboss.cache.DataNode.releaseAll()

      root.releaseAll(owner);

      assertEquals(0, cache.getNumberOfLocksHeld());

      root.acquireAll(owner, 2000, DataNode.LOCK_TYPE_WRITE);
      root.releaseAll(owner);

      assertEquals(0, cache.getNumberOfLocksHeld());
   }

View Full Code Here

Examples of org.jboss.cache.DataNode.releaseAll()

             t[i].start();
          }

          for (int i=0; i<t.length; i++) t[i].join();
          root.releaseAll(Thread.currentThread());

          // we should have 0 exceptions
          assertEquals(0, exceptions.size());
       }
       finally
View Full Code Here

Examples of org.jboss.cache.DataNode.releaseAll()

             t[i].start();
          }

          for (int i=0; i<t.length; i++) t[i].join();
          node.releaseAll(Thread.currentThread());

          // we should have 0 exceptions
          assertEquals(0, exceptions.size());
       }
       finally
View Full Code Here

Examples of org.jboss.cache.lock.NodeLock.releaseAll()

               }

               parentLocked = false;

               log.debug("forcing release of all locks in subtree");
               subtreeLock.releaseAll();
               subtreeLocked = false;
            }
         }
      }
      catch (InterruptedException ie)
View Full Code Here

Examples of org.jboss.cache.lock.NodeLock.releaseAll()

         if (subtreeLocked)
         {
            log.debug("forcing release of all locks in subtree");
            try
            {
               subtreeLock.releaseAll();
            }
            catch (Throwable t)
            {
               log.error("failed releasing locks", t);
            }
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.