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
Exception
protected void init() throws IOException, URISyntaxException
IOException
URISyntaxException
public void shutdown()
public void start()
public boolean processDataLoaders(String directory) throws IOException
IOException
public boolean processPostMoveTriggers(org.apache.hadoop.fs.Path[] files) throws IOException
IOException
public org.apache.hadoop.fs.Path[] movetoMainRepository(String sourceDirectory, String repoRootDirectory) throws Exception
Exception
public boolean moveToInErrorDirectory(String sourceDirectory, String dirName, String inErrorDirectory) throws Exception
Exception
public boolean deleteDirectory(String directory) throws IOException
IOException
Copyright © 2015 Apache Software Foundation. All Rights Reserved.