Examples of RetryTask


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

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

     * @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

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

     * @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

Examples of com.sun.jini.thread.RetryTask

        }//endif
        /* Cancel/remove pending tasks from the task manager and terminate */
        if(discoveryTaskMgr != null) {
            ArrayList pendingTasks = discoveryTaskMgr.getPending();
            for(int i=0;i<pendingTasks.size();i++) {
                RetryTask pendingTask = (RetryTask)pendingTasks.get(i);
                pendingTask.cancel();//cancel wakeup ticket
                discoveryTaskMgr.remove(pendingTask);//remove from task mgr
            }//end loop
            discoveryTaskMgr.terminate();//interrupt all active tasks
            discoveryTaskMgr = null;
            discoveryWakeupMgr = null;
View Full Code Here

Examples of com.sun.jini.thread.RetryTask

            wakeupMgr.stop();//stop execution of the wakeup manager
            synchronized(taskMgr) {
                /* Remove all pending tasks */
                ArrayList pendingTasks = taskMgr.getPending();
                for(int i=0;i<pendingTasks.size();i++) {
                    RetryTask pendingTask = (RetryTask)pendingTasks.get(i);
                    pendingTask.cancel();//cancel wakeup ticket
                    taskMgr.remove(pendingTask);//remove from task mgr
                }//end loop
                /* Interrupt all active tasks, prepare taskMgr for GC. */
                taskMgr.terminate();
                taskMgr = null;
View Full Code Here

Examples of com.sun.jini.thread.RetryTask

        }//endif
        /* Cancel/remove pending tasks from the task manager and terminate */
        if(discoveryTaskMgr != null) {
            ArrayList pendingTasks = discoveryTaskMgr.getPending();
            for(int i=0;i<pendingTasks.size();i++) {
                RetryTask pendingTask = (RetryTask)pendingTasks.get(i);
                pendingTask.cancel();//cancel wakeup ticket
                discoveryTaskMgr.remove(pendingTask);//remove from task mgr
            }//end loop
            discoveryTaskMgr.terminate();//interrupt all active tasks
            discoveryTaskMgr = null;
            discoveryWakeupMgr = null;
View Full Code Here

Examples of com.sun.jini.thread.RetryTask

        }//endif
        /* Cancel/remove pending tasks from the task manager and terminate */
        if(discoveryTaskMgr != null) {
            ArrayList pendingTasks = discoveryTaskMgr.getPending();
            for(int i=0;i<pendingTasks.size();i++) {
                RetryTask pendingTask = (RetryTask)pendingTasks.get(i);
                pendingTask.cancel();//cancel wakeup ticket
                discoveryTaskMgr.remove(pendingTask);//remove from task mgr
            }//end loop
            discoveryTaskMgr.terminate();//interrupt all active tasks
            discoveryTaskMgr = null;
            discoveryWakeupMgr = null;
View Full Code Here

Examples of com.sun.jini.thread.RetryTask

            wakeupMgr.stop();//stop execution of the wakeup manager
            synchronized(taskMgr) {
                /* Remove all pending tasks */
                ArrayList pendingTasks = taskMgr.getPending();
                for(int i=0;i<pendingTasks.size();i++) {
                    RetryTask pendingTask = (RetryTask)pendingTasks.get(i);
                    pendingTask.cancel();//cancel wakeup ticket
                    taskMgr.remove(pendingTask);//remove from task mgr
                }//end loop
                /* Interrupt all active tasks, prepare taskMgr for GC. */
                taskMgr.terminate();
                taskMgr = null;
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.