Examples of purge()


Examples of org.apache.jackrabbit.oak.plugins.mongomk.Revision.RevisionComparator.purge()

        assertEquals(-1, comp.compare(r1c2, r1c1));
        assertEquals(-1, comp.compare(r2c2, r2c1));
        assertEquals(1, comp.compare(r3c2, r3c1));
       
        // get rid of old timestamps
        comp.purge(0x10);
        assertEquals(
                "1:\n r120-0-1:r20-0-0 r130-0-1:r30-0-0\n" +
                "2:\n r300-0-2:r30-0-0\n", comp.toString());
        comp.purge(0x20);
        assertEquals(
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.mongomk.Revision.RevisionComparator.purge()

        // get rid of old timestamps
        comp.purge(0x10);
        assertEquals(
                "1:\n r120-0-1:r20-0-0 r130-0-1:r30-0-0\n" +
                "2:\n r300-0-2:r30-0-0\n", comp.toString());
        comp.purge(0x20);
        assertEquals(
                "1:\n r130-0-1:r30-0-0\n" +
                "2:\n r300-0-2:r30-0-0\n", comp.toString());
       
        // update an entry
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.mongomk.Revision.RevisionComparator.purge()

        comp.add(new Revision(0x301, 1, 2), new Revision(0x30, 0, 0));
        assertEquals(
                "1:\n r130-0-1:r30-0-0\n" +
                "2:\n r301-1-2:r30-0-0\n", comp.toString());
       
        comp.purge(0x30);
        assertEquals("", comp.toString());

    }

}
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.mongomk.Revision.RevisionComparator.purge()

        assertEquals(-1, comp.compare(r1c2, r1c1));
        assertEquals(-1, comp.compare(r2c2, r2c1));
        assertEquals(1, comp.compare(r3c2, r3c1));

        // get rid of old timestamps
        comp.purge(0x10);
        assertEquals(
                "1:\n r120-0-1:r20-0-0 r130-0-1:r30-0-0\n" +
                "2:\n r300-0-2:r30-0-0\n", comp.toString());
        comp.purge(0x20);
        assertEquals(
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.mongomk.Revision.RevisionComparator.purge()

        // get rid of old timestamps
        comp.purge(0x10);
        assertEquals(
                "1:\n r120-0-1:r20-0-0 r130-0-1:r30-0-0\n" +
                "2:\n r300-0-2:r30-0-0\n", comp.toString());
        comp.purge(0x20);
        assertEquals(
                "1:\n r130-0-1:r30-0-0\n" +
                "2:\n r300-0-2:r30-0-0\n", comp.toString());

        // update an entry
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.mongomk.Revision.RevisionComparator.purge()

        comp.add(new Revision(0x301, 1, 2), new Revision(0x30, 0, 0));
        assertEquals(
                "1:\n r130-0-1:r30-0-0\n" +
                "2:\n r301-1-2:r30-0-0\n", comp.toString());

        comp.purge(0x30);
        assertEquals("", comp.toString());

    }

    @Test
View Full Code Here

Examples of org.apache.syncope.core.propagation.PropagationByResource.purge()

            }

            final PropagationByResource nonPwdPropByRes = new PropagationByResource();
            nonPwdPropByRes.merge(origPropByRes);
            nonPwdPropByRes.removeAll(pwdResourceNames);
            nonPwdPropByRes.purge();
            updated.setPropByRes(nonPwdPropByRes);

            if (!nonPwdPropByRes.isEmpty()) {
                tasks.addAll(propagationManager.getUserUpdateTaskIds(updated, null,
                        userMod.getVirtualAttributesToBeRemoved(), userMod.getVirtualAttributesToBeUpdated()));
View Full Code Here

Examples of org.encog.ml.genetic.species.Species.purge()

    final Object[] speciesArray = getPopulation().getSpecies().toArray();

    for (final Object element : speciesArray) {
      final Species s = (Species) element;
      s.purge();

      if ((s.getGensNoImprovement() > this.paramNumGensAllowedNoImprovement)
          && getComparator().isBetterThan(this.bestEverScore,
              s.getBestScore())) {
        getPopulation().getSpecies().remove(s);
View Full Code Here

Examples of org.fcrepo.client.utility.AutoPurger.purge()

                        JOptionPane
                                .showInputDialog("Why are you permanently removing "
                                                 + pid + "?");
                if (reason != null) {
                    try {
                        purger.purge(pid, reason);
                    } catch (Exception e) {
                        Administrator.showErrorDialog(Administrator
                                .getDesktop(), "Purge Failure", StringUtility
                                .prettyPrint(e.getClass().getName() + ": "
                                             + e.getMessage(), 70, null), e);
View Full Code Here

Examples of org.fusesource.restygwt.client.cache.VolatileQueueableCacheStorage.purge()

        Response resp = new ResponseMock();
         
        storage.putResult(key, resp);
        // hashCode should be good enough
        assertEquals(resp.hashCode(), storage.getResultOrReturnNull(key).hashCode());
        storage.purge();
        assertNull(storage.getResultOrReturnNull(key));
    }
}
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.