Package com.netflix.priam.backup

Examples of com.netflix.priam.backup.AbstractBackupPath


    private Iterator<AbstractBackupPath> createIterator()
    {
        List<AbstractBackupPath> temp = Lists.newArrayList();
        for (S3ObjectSummary summary : objectListing.getObjectSummaries())
        {
            AbstractBackupPath path = pathProvider.get();
            path.parseRemote(summary.getKey());
            logger.debug("New key " + summary.getKey() + " path = " + path.getRemotePath() + " " + start + " end: " + till + " my " + path.getTime() );
            if ((path.getTime().after(start) && path.getTime().before(till)) || path.getTime().equals(start)){
                temp.add(path);
                logger.debug("Added key " + summary.getKey() );
            }
        }
        return temp.iterator();
View Full Code Here


        List<AbstractBackupPath> temp = Lists.newArrayList();
        for (String summary : objectListing.getCommonPrefixes())
        {
            if (pathExistsForDate(summary, datefmt.format(date)))
            {
                AbstractBackupPath path = pathProvider.get();
                path.parsePartialPrefix(summary);
                temp.add(path);
            }
        }
        return temp.iterator();
    }
View Full Code Here

            if (args.length < 2)
            {
                displayHelp();
                return;
            }
            AbstractBackupPath path = Application.getInjector().getInstance(AbstractBackupPath.class);
            startTime = path.parseDate(args[0]);
            endTime = path.parseDate(args[1]);

            Restore restorer = Application.getInjector().getInstance(Restore.class);
            try
            {
                restorer.restore(startTime, endTime);
View Full Code Here

TOP

Related Classes of com.netflix.priam.backup.AbstractBackupPath

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.