Package com.netflix.bdp.s3mper.common

Examples of com.netflix.bdp.s3mper.common.RetryTask


       
        for(Path path : paths) {
            Key startKey = null;
           
            do {
                RetryTask<QueryResult> queryTask = new RetryTask(new QueryTask(path, startKey), retryCount, timeout);
                QueryResult result = queryTask.call();
               
                for(Map<String, AttributeValue> item : result.getItems()) {
                    FileInfo file = new FileInfo(new Path(scheme+":"+item.get(HASH_KEY).getS() +"/"+ item.get(RANGE_KEY).getS()));
                   
                    if(item.containsKey(DELETE_MARKER)) {
View Full Code Here


     * @param path
     * @throws java.lang.Exception
     */
    @Override
    public void add(final Path path, boolean directory) throws Exception {
        RetryTask task = new RetryTask(new AddTask(path, directory), retryCount, timeout);
       
        task.call();
    }
View Full Code Here

     * @param deleteMarker
     * @throws Exception
     */
    @Override
    public void delete(final Path path) throws Exception {
        RetryTask task;
       
        if(deleteMarkerEnabled) {
            task = new RetryTask(new MarkDeletedTask(path), retryCount, timeout);
        } else {
            task = new RetryTask(new DeleteTask(path), retryCount, timeout);
        }
       
        task.call();
    }
View Full Code Here

TOP

Related Classes of com.netflix.bdp.s3mper.common.RetryTask

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.