Examples of syncWaterMarks()


Examples of krati.util.SourceWaterMarks.syncWaterMarks()

    }

    public void testApiBasics() {
        int counter = 1;
        SourceWaterMarks swm = new SourceWaterMarks(scnFile);
        swm.syncWaterMarks();

        String source1 = "database.source1";
        long scn = System.currentTimeMillis();
        swm.setLWMScn(source1, scn);
        swm.setHWMScn(source1, scn);
View Full Code Here

Examples of krati.util.SourceWaterMarks.syncWaterMarks()

        scn = System.currentTimeMillis() + counter++;
        swm.saveHWMark(source1, scn);
        assertTrue(swm.getLWMScn(source1) < swm.getHWMScn(source1));

        swm.syncWaterMarks();
        assertEquals(swm.getHWMScn(source1), swm.getLWMScn(source1));

        String source2 = "database.source2";
        scn = System.currentTimeMillis() + counter++;
        swm.setLWMScn(source2, scn);
View Full Code Here

Examples of krati.util.SourceWaterMarks.syncWaterMarks()

        swm.saveHWMark(source1, scn);
        swm.saveHWMark(source2, scn);
        assertTrue(swm.getLWMScn(source1) < swm.getHWMScn(source1));
        assertTrue(swm.getLWMScn(source2) < swm.getHWMScn(source2));

        swm.syncWaterMarks();
        assertEquals(swm.getHWMScn(source1), swm.getLWMScn(source1));
        assertEquals(swm.getHWMScn(source2), swm.getLWMScn(source2));
        assertTrue(swm.getFile().exists());
        assertTrue(swm.getFileOriginal().exists());
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.