public class PostProcessorManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ChukwaConfiguration |
conf |
protected HashMap<String,String> |
dataSources |
protected int |
ERROR_SLEEP_TIME |
protected int |
errorCount |
protected org.apache.hadoop.fs.FileSystem |
fs |
protected boolean |
isRunning |
| Constructor and Description |
|---|
PostProcessorManager() |
PostProcessorManager(ChukwaConfiguration conf) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteDirectory(String directory) |
protected void |
init() |
static void |
main(String[] args) |
boolean |
moveToInErrorDirectory(String sourceDirectory,
String dirName,
String inErrorDirectory) |
org.apache.hadoop.fs.Path[] |
movetoMainRepository(String sourceDirectory,
String repoRootDirectory) |
boolean |
processDataLoaders(String directory) |
boolean |
processPostMoveTriggers(org.apache.hadoop.fs.Path[] files) |
void |
shutdown() |
void |
start() |
protected int errorCount
protected int ERROR_SLEEP_TIME
protected ChukwaConfiguration conf
protected org.apache.hadoop.fs.FileSystem fs
protected volatile boolean isRunning
public PostProcessorManager(ChukwaConfiguration conf) throws Exception
Exceptionprotected void init()
throws IOException,
URISyntaxException
IOExceptionURISyntaxExceptionpublic void shutdown()
public void start()
public boolean processDataLoaders(String directory) throws IOException
IOExceptionpublic boolean processPostMoveTriggers(org.apache.hadoop.fs.Path[] files)
throws IOException
IOExceptionpublic org.apache.hadoop.fs.Path[] movetoMainRepository(String sourceDirectory, String repoRootDirectory) throws Exception
Exceptionpublic boolean moveToInErrorDirectory(String sourceDirectory, String dirName, String inErrorDirectory) throws Exception
Exceptionpublic boolean deleteDirectory(String directory) throws IOException
IOExceptionCopyright © 2015 Apache Software Foundation. All Rights Reserved.