public class DeletionService
extends org.apache.hadoop.yarn.service.AbstractService
| Constructor and Description |
|---|
DeletionService(ContainerExecutor exec) |
| Modifier and Type | Method and Description |
|---|---|
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() |
public DeletionService(ContainerExecutor exec)
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 init(org.apache.hadoop.conf.Configuration conf)
init in interface org.apache.hadoop.yarn.service.Serviceinit in class org.apache.hadoop.yarn.service.AbstractServicepublic void stop()
stop in interface org.apache.hadoop.yarn.service.Servicestop in class org.apache.hadoop.yarn.service.AbstractService@InterfaceAudience.Private public boolean isTerminated()
Copyright © 2013 Apache Software Foundation. All Rights Reserved.