org.apache.hadoop.yarn.server.nodemanager
Class DeletionService
java.lang.Object
org.apache.hadoop.yarn.service.AbstractService
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 classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service |
org.apache.hadoop.yarn.service.Service.STATE |
|
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)
|
boolean |
isTerminated()
Determine if the service has completely stopped. |
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 |
DeletionService
public DeletionService(ContainerExecutor exec)
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 nullsubDir - the sub directory namebaseDirs - 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
isTerminated
@InterfaceAudience.Private
public boolean isTerminated()
- Determine if the service has completely stopped.
Used only by unit tests
- Returns:
- true if service has completely stopped
Copyright © 2013 Apache Software Foundation. All Rights Reserved.