Package org.voltdb.sysprocs.saverestore.SnapshotUtil

Examples of org.voltdb.sysprocs.saverestore.SnapshotUtil.SpecificSnapshotFilter


            specifiedSingle = true;
            snapshotNames.add(args[ii]);
        }

        if (specifiedSingle) {
            filter = new SpecificSnapshotFilter(snapshotNames);
        }

        List<String> directories = new ArrayList<String>();
        for (int ii = 0; ii < args.length; ii++) {
            if (args[ii].equals("--dir")) {
View Full Code Here


    public static void verifySnapshots(
            final List<String> directories, final Set<String> snapshotNames, boolean expectHashinator) {

        FileFilter filter = new SnapshotFilter();
        if (!snapshotNames.isEmpty()) {
            filter = new SpecificSnapshotFilter(snapshotNames);
        }

        Map<String, Snapshot> snapshots = new HashMap<String, Snapshot>();
        for (String directory : directories) {
            SnapshotUtil.retrieveSnapshotFiles( new File(directory), snapshots, filter, true, CONSOLE_LOG);
View Full Code Here

        }

        Map<String, Snapshot> snapshots = new TreeMap<String, Snapshot>();
        HashSet<String> snapshotNames = new HashSet<String>();
        snapshotNames.add(snapshotName);
        SpecificSnapshotFilter filter = new SpecificSnapshotFilter(snapshotNames);
        for (File directory : directories) {
            SnapshotUtil.retrieveSnapshotFiles( directory, snapshots, filter, false, CONSOLE_LOG);
        }

        if (snapshots.size() > 1) {
View Full Code Here

TOP

Related Classes of org.voltdb.sysprocs.saverestore.SnapshotUtil.SpecificSnapshotFilter

Copyright © 2018 www.massapicom. 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.