Examples of sync()


Examples of org.ethereum.trie.TrieImpl.sync()

              trie.update(word1, word2);
              testerMap.put(word1, word2);
          }
 
          trie.cleanCache();
          trie.sync();
 
          // Assert the result now
          Iterator<String> keys = testerMap.keySet().iterator();
          while (keys.hasNext()){
 
View Full Code Here

Examples of org.exist.debugger.model.Breakpoint.sync()

      assertNotNull("Debugging source can't be NULL.", source);
     
      Breakpoint breakpoint = source.newBreakpoint();
      breakpoint.setLineno(24);
      breakpoint.sync();
     
      source.run();
     
      List<Location> stack = source.getStackFrames();
      assertEquals(1, stack.size());
View Full Code Here

Examples of org.exist.storage.BrokerPool.sync()

                "Switching eXist-db to read only to prevent data loss!");
            pool.setReadOnly();
        }
        if(System.currentTimeMillis() - pool.getLastMajorSync() >
                pool.getMajorSyncPeriod()) {
            pool.sync(broker, Sync.MAJOR_SYNC);
        } else {
            pool.sync(broker, Sync.MINOR_SYNC);
        }
    }
View Full Code Here

Examples of org.exist.storage.DBBroker.sync()

                return false;
            }
            broker.saveCollection(txn, coll);
            transact.commit(txn);
            broker.flush();
            broker.sync(Sync.MINOR_SYNC);
            return true;
        } catch (final Exception e) {
            transact.abort(txn);
            LOG.debug(e.getMessage(), e);
            throw new RemoteException(e.getMessage());
View Full Code Here

Examples of org.exist.storage.cache.Cacheable.sync()

                        if (cached.allowUnload()) {
                            if(pool.getConfigurationManager()!=null) { // might be null during db initialization
                                pool.getConfigurationManager().invalidate(old.getURI(), null);
                            }
                            names.remove(old.getURI().getRawCollectionPath());
                            cached.sync(true);
                            map.remove(cached.getKey());
                            removed = true;
                        }
                    } finally {
                        lock.release(Lock.READ_LOCK);
View Full Code Here

Examples of org.fusesource.hawtdb.internal.io.MemoryMappedFile.sync()

        mmf.read(PAGE_SIZE*LAST_PAGE, actual);
        Assert.assertEquals('a', actual[0]);
        Assert.assertEquals('a', actual[26]);
        Assert.assertEquals('z', actual[26+25]);

        mmf.sync();
        mmf.close();

    }

    private byte[] createData(int size) {
View Full Code Here

Examples of org.h2.store.fs.FileObject.sync()

        file.delete();
        RandomAccessFile ra = new RandomAccessFile(file, "rw");
        fs.delete(s);
        FileObject f = fs.openFileObject(s, "rw");
        assertThrows(EOFException.class, f).readFully(new byte[1], 0, 1);
        f.sync();
        Random random = new Random(seed);
        int size = getSize(100, 500);
        try {
            for (int i = 0; i < size; i++) {
                trace("op " + i);
View Full Code Here

Examples of org.hornetq.core.journal.SequentialFile.sync()

         file.fill(0, fileSize, (byte)'X');

         if (!AIO)
         {
            file.sync();
         }

         ByteBuffer bb1 = generateBuffer(recordSize, (byte)'h');

         long start = 0;
View Full Code Here

Examples of org.hornetq.core.paging.PagingStore.sync()

         PagingManager paging = server.getPagingManager();

         PagingStore store = paging.getPageStore(ADDRESS);

         store.sync();

         assertTrue(pageUp.await(10, TimeUnit.SECONDS));

         assertTrue(pageDone.await(10, TimeUnit.SECONDS));
View Full Code Here

Examples of org.hornetq.core.paging.impl.PageImpl.sync()

      SimpleString simpleDestination = new SimpleString("Test");

      ArrayList<HornetQBuffer> buffers = addPageElements(simpleDestination, impl, numberOfElements);

      impl.sync();
      impl.close();

      file = factory.createSequentialFile("00010.page", 1);
      file.open();
      impl = new PageImpl(new SimpleString("something"), new NullStorageManager(), factory, file, 10);
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.