org.apache.hadoop.yarn.server.nodemanager
Class DeletionService.FileDeletionTask

java.lang.Object
  extended by org.apache.hadoop.yarn.server.nodemanager.DeletionService.FileDeletionTask
All Implemented Interfaces:
Runnable
Enclosing class:
DeletionService

public static class DeletionService.FileDeletionTask
extends Object
implements Runnable


Method Summary
 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<org.apache.hadoop.fs.Path> getBaseDirs()
           
 org.apache.hadoop.fs.Path getSubDir()
           
 boolean getSucess()
           
 String getUser()
           
 int incrementAndGetPendingPredecessorTasks()
          increments and returns pending predecessor task count
 void run()
           
 void setSuccess(boolean success)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

incrementAndGetPendingPredecessorTasks

public int incrementAndGetPendingPredecessorTasks()
increments and returns pending predecessor task count


decrementAndGetPendingPredecessorTasks

public int decrementAndGetPendingPredecessorTasks()
decrements and returns pending predecessor task count


getUser

public String getUser()

getSubDir

public org.apache.hadoop.fs.Path getSubDir()

getBaseDirs

public List<org.apache.hadoop.fs.Path> getBaseDirs()

setSuccess

public void setSuccess(boolean success)

getSucess

public boolean getSucess()

run

public void run()
Specified by:
run in interface Runnable

toString

public String toString()
Overrides:
toString in class Object

addFileDeletionTaskDependency

public 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. Note:- Task dependency should be defined prior to

Parameters:
successorTask -


Copyright © 2013 Apache Software Foundation. All Rights Reserved.