public static class DeletionService.FileDeletionTask extends Object implements Runnable
Modifier and Type | Method and Description |
---|---|
void |
addFileDeletionTaskDependency(DeletionService.FileDeletionTask successorTask)
If there is a task dependency between say tasks 1,2,3 such that
task2 and task3 can be started only after task1 then we should define
task2 and task3 as successor tasks for task1.
|
int |
decrementAndGetPendingPredecessorTasks()
decrements and returns pending predecessor task count
|
List<Path> |
getBaseDirs() |
Path |
getSubDir() |
boolean |
getSucess() |
String |
getUser() |
int |
incrementAndGetPendingPredecessorTasks()
increments and returns pending predecessor task count
|
void |
run() |
void |
setSuccess(boolean success) |
String |
toString() |
public int incrementAndGetPendingPredecessorTasks()
public int decrementAndGetPendingPredecessorTasks()
public String getUser()
public Path getSubDir()
public void setSuccess(boolean success)
public boolean getSucess()
public void addFileDeletionTaskDependency(DeletionService.FileDeletionTask successorTask)
successorTask
- Copyright © 2013 Apache Software Foundation. All rights reserved.