|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.nodemanager.DeletionService
public class DeletionService
| Nested Class Summary | |
|---|---|
static class |
DeletionService.FileDeletionTask
|
| Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service |
|---|
org.apache.hadoop.service.Service.STATE |
| Constructor Summary | |
|---|---|
DeletionService(ContainerExecutor exec)
|
|
| Method Summary | |
|---|---|
DeletionService.FileDeletionTask |
createFileDeletionTask(String user,
org.apache.hadoop.fs.Path subDir,
org.apache.hadoop.fs.Path[] baseDirs)
Helper method to create file deletion task. |
void |
delete(String user,
org.apache.hadoop.fs.Path subDir,
org.apache.hadoop.fs.Path... baseDirs)
/** Delete the path(s) as this user. |
boolean |
isTerminated()
Determine if the service has completely stopped. |
void |
scheduleFileDeletionTask(DeletionService.FileDeletionTask fileDeletionTask)
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf)
|
protected void |
serviceStop()
|
| Methods inherited from class org.apache.hadoop.service.AbstractService |
|---|
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStart, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DeletionService(ContainerExecutor exec)
| Method Detail |
|---|
public void delete(String user,
org.apache.hadoop.fs.Path subDir,
org.apache.hadoop.fs.Path... baseDirs)
user - The user to delete as, or the JVM user if nullsubDir - the sub directory namebaseDirs - the base directories which contains the subDir'spublic void scheduleFileDeletionTask(DeletionService.FileDeletionTask fileDeletionTask)
protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceException
protected void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceException@InterfaceAudience.Private public boolean isTerminated()
public DeletionService.FileDeletionTask createFileDeletionTask(String user,
org.apache.hadoop.fs.Path subDir,
org.apache.hadoop.fs.Path[] baseDirs)
user - user on whose behalf this task is suppose to runsubDir - sub directory as required in
delete(String, Path, Path...)baseDirs - base directories as required in
delete(String, Path, Path...)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||