Examples of sync()


Examples of krati.store.ArrayStorePartition.sync()

            partition.persist();
           
            StatsLog.logger.info(">>> validate");
            validate(partition);
           
            partition.sync();
        } catch (Exception e) {
            e.printStackTrace();
        }
       
        cleanTestOutput();
View Full Code Here

Examples of krati.store.DynamicDataStore.sync()

                             " capacity=" + dynStore1.capacity() +
                             " loadFactor=" + dynStore1.getLoadFactor());
        if ((unitCapacity << 5) != dynStore1.capacity())
            throw new RuntimeException("capacity expected: " + (unitCapacity << 5));
       
        dynStore1.sync();
        int capacity1 = dynStore1.capacity();
       
        // Create DynamicDataStore 2
        DynamicDataStore dynStore2 = getDynamicDataStore(storeDir, 0, 32);
        StatsLog.logger.info("create dynStore2");
View Full Code Here

Examples of krati.store.StaticDataSet.sync()

        int storeCapacity = (int)(_keyCount * 1.5);
        StaticDataSet store = createDataSet(storeHomeDir, storeCapacity, hashFunction);
       
        StatsLog.logger.info(">>> populate");
        populate(store);
        store.sync();
       
        StatsLog.logger.info(">>> collect collision stats");
        collect(store);
       
        cleanTestOutput();
View Full Code Here

Examples of models.User.sync()

        assertEquals(User.findById(AccountType.DROPBOX, ID), user);
       
        DbxAccount acc = new DbxAccount();
        acc.name = NAME;
        acc.uid = ID;
        user.sync(acc, TOKEN, SECRET);
        assertEquals(User.findById(AccountType.DROPBOX, ID), user);

        user.setToken(TOKEN + "X");
        user.save();
        assertEquals(User.findById(AccountType.DROPBOX, ID), user);
View Full Code Here

Examples of org.akubraproject.BlobStoreConnection.sync()

          if (isSyncSupp) {
            shouldFail(new ERunnable() {
              @Override
              public void erun() throws Exception {
                con.sync();
              }
            }, IllegalStateException.class, null);
          }
        }
      }
View Full Code Here

Examples of org.apache.activemq.util.RecoverableRandomAccessFile.sync()

                if( replicationTarget!=null ) {
                    replicationTarget.replicate(wb.writes.getHead().location, sequence, forceToDisk);
                }

                if (forceToDisk) {
                    file.sync();
                }

                Journal.WriteCommand lastWrite = wb.writes.getTail();
                journal.setLastAppendLocation(lastWrite.location);
View Full Code Here

Examples of org.apache.clerezza.rdf.jena.tdb.internals.ModelGraph.sync()

                        + graphConfigFile+"'!",e);
            }
            //add the parsed data!
            if(triples != null) { //load the initial and final set of triples
                mg.getJenaAdapter().addAll(triples);
                mg.sync();
            }
        } finally {
            datasetLock.writeLock().unlock();
        }
        return mg.getGraph();
View Full Code Here

Examples of org.apache.curator.framework.CuratorFramework.sync()

            client.create().forPath("/head");
            Assert.assertNotNull(client.checkExists().forPath("/head"));

            CountDownLatch      latch = new CountDownLatch(1);
            client.sync("/head", latch);
            Assert.assertTrue(latch.await(10, TimeUnit.SECONDS));
        }
        finally
        {
            client.close();
View Full Code Here

Examples of org.apache.cxf.jaxrs.client.WebClient.sync()

   
    @Test
    public void testGetBookSyncLink() {
        String address = "http://localhost:" + PORT + "/bookstore/bookheaders/simple";
        WebClient wc = createWebClient(address);
        Book book = wc.sync().get(Book.class);
        assertEquals(124L, book.getId());
        validateResponse(wc);
    }
   
    @Test
View Full Code Here

Examples of org.apache.derby.io.StorageRandomAccessFile.sync()

                page.unlatch();
                page = null;
            }

            // sync the new version of the container.
            newRaf.sync(true);
            newRaf.close();
            newRaf = null;
           
        }catch (IOException ioe) {
            throw StandardException.newException(
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.