for(String actionName : classes) {
Class<? extends TriggerAction> actionClass =
(Class<? extends TriggerAction>) Class.forName(actionName);
java.lang.reflect.Constructor<? extends TriggerAction> c =
actionClass.getConstructor();
TriggerAction action = c.newInstance();
log.info(actionName + " handling " + files.length + " events");
//send the files that were just added benieth the repos/ dir.
FileStatus[] events = fs.listStatus(files);
action.execute(conf, fs, events, TriggerEvent.POST_DEMUX_SUCCESS);
}
} catch(Exception e) {
log.error(ExceptionUtil.getStackTrace(e));
return false;
}