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

java.lang.Object
  extended by org.apache.hadoop.yarn.service.AbstractService
      extended by org.apache.hadoop.yarn.server.nodemanager.DeletionService
All Implemented Interfaces:
org.apache.hadoop.yarn.service.Service

public class DeletionService
extends org.apache.hadoop.yarn.service.AbstractService


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service
org.apache.hadoop.yarn.service.Service.STATE
 
Constructor Summary
DeletionService(ContainerExecutor exec)
           
 
Method Summary
 void delete(String user, org.apache.hadoop.fs.Path subDir, org.apache.hadoop.fs.Path... baseDirs)
          /** Delete the path(s) as this user.
 void init(org.apache.hadoop.conf.Configuration conf)
           
 void stop()
           
 
Methods inherited from class org.apache.hadoop.yarn.service.AbstractService
getConfig, getName, getServiceState, getStartTime, register, start, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeletionService

public DeletionService(ContainerExecutor exec)
Method Detail

delete

public void delete(String user,
                   org.apache.hadoop.fs.Path subDir,
                   org.apache.hadoop.fs.Path... baseDirs)
/** Delete the path(s) as this user.

Parameters:
user - The user to delete as, or the JVM user if null
subDir - the sub directory name
baseDirs - the base directories which contains the subDir's

init

public void init(org.apache.hadoop.conf.Configuration conf)
Specified by:
init in interface org.apache.hadoop.yarn.service.Service
Overrides:
init in class org.apache.hadoop.yarn.service.AbstractService

stop

public void stop()
Specified by:
stop in interface org.apache.hadoop.yarn.service.Service
Overrides:
stop in class org.apache.hadoop.yarn.service.AbstractService


Copyright © 2012 Apache Software Foundation. All Rights Reserved.