Examples of sync()


Examples of org.apache.directory.server.core.partition.impl.avl.AvlPartition.sync()

        assertFalse( avlPartition.isInitialized() );
        assertFalse( avlPartition.isSyncOnWrite() );
        avlPartition.setSyncOnWrite( false );
        assertFalse( avlPartition.isSyncOnWrite() );

        avlPartition.sync();
        avlPartition.destroy();
    }


    @Test
View Full Code Here

Examples of org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.sync()

            existenceIdx.add( attributeType.getOid(), id );
        }

        index.sync();
        index.close();
        existenceIdx.sync();
        existenceIdx.close();
    }


    public Options getOptions()
View Full Code Here

Examples of org.apache.felix.prefs.PreferencesImpl.sync()

            result = new PreferencesImpl(new PreferencesDescription(this.bundleId, name), this.storeManager);
            this.trees.put(name, result);
        }
        // sync with latest version from store
        try {
            result.sync();
        } catch (BackingStoreException ignore) {
            // we ignore this
        }
        return result;
    }
View Full Code Here

Examples of org.apache.hadoop.fs.FSDataOutputStream.sync()

    System.out.println("Created file simpleFlush.dat");

    // TODO move this bit to another test case
    // There have been a couple issues with flushing empty buffers, so do
    // some empty flushes first.
    stm.sync();
    stm.sync();
    stm.write(1);
    stm.sync();
    stm.sync();
View Full Code Here

Examples of org.apache.hadoop.hbase.regionserver.wal.HLog.sync()

      addWALEdits(tableName, hri, TEST_ROW, hcd.getName(), countPerFamily,
      EnvironmentEdgeManager.getDelegate(), wal, htd);
    }
    wal.append(hri, tableName, edit, now, htd);
    // sync to fs.
    wal.sync();

    User user = HBaseTestingUtility.getDifferentUser(newConf,
        ".replay.wal.secondtime");
    user.runAs(new PrivilegedExceptionAction() {
      public Object run() throws Exception {
View Full Code Here

Examples of org.apache.hadoop.io.SequenceFile.Writer.sync()

        SequenceFile.CompressionType.NONE, new DefaultCodec());

    Event e = new EventImpl("EVENT".getBytes());

    writer.append(new WriteableEventKey(e), new WriteableEvent(e));
    writer.sync();
    writer.close();

    dos.close(); // It is strange that I have to close the underlying
    // FSDataOutputStream.
View Full Code Here

Examples of org.apache.jackrabbit.core.cluster.ClusterNode.sync()

        // JCR-1753: Ensure that we are up to date with cluster changes
        ClusterNode cluster = rep.getClusterNode();
        if (cluster != null && clusterSyncOnRefresh()) {
            try {
                cluster.sync();
            } catch (ClusterException e) {
                throw new RepositoryException(
                        "Unable to synchronize with the cluster", e);
            }
        }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.authentication.external.SyncContext.sync()

            UserManager userManager = getUserManager();
            if (root == null || userManager == null) {
                throw new LoginException("Cannot synchronize user.");
            }
            context = syncHandler.createContext(idp, userManager, root);
            context.sync(externalUser);
            root.commit();

            Set<? extends Principal> principals = getPrincipals(externalUser.getId());
            if (!principals.isEmpty()) {
                if (!subject.isReadOnly()) {
View Full Code Here

Examples of org.apache.jackrabbit.vault.vlt.meta.xml.zip.UpdateableZipFile.sync()

        UpdateableZipFile testZip = new UpdateableZipFile(new File("test.zip"));
        for (int i=0; i<100; i++) {
            String name = testFile.getName() + i;
            System.out.println("adding " + name);
            testZip.update(name, new FileInputStream(testFile));
            testZip.sync();
        }
        testZip.update("test.dat50", new FileInputStream(testFile));
        testZip.delete("test.dat1");
        testZip.close();
    }
View Full Code Here

Examples of org.apache.jetspeed.aggregator.ContentDispatcher.sync()

                    }
                    renderer.render(currentFragment, context);
                    if (strategy == STRATEGY_SEQUENTIAL)
                    {
                        ContentDispatcher dispatcher = renderer.getDispatcher(context, false);
                        dispatcher.sync(currentFragment);
                    }
                   
                    if(currentFragment.getDecorator() != null)
                    {
                        log.debug("decorator=" + currentFragment.getDecorator());
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.