Package com.netflix.bdp.s3mper.common

Examples of com.netflix.bdp.s3mper.common.RetryTask.call()


        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


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

    /**
     * Delete the provided path from the Metastore or use a delete marker.
     *
 
View Full Code Here

            task = new RetryTask(new MarkDeletedTask(path), retryCount, timeout);
        } else {
            task = new RetryTask(new DeleteTask(path), retryCount, timeout);
        }
       
        task.call();
    }
   
    @Override
    public void close() {
    }
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.