Package org.apache.hadoop.chukwa.datatrigger

Examples of org.apache.hadoop.chukwa.datatrigger.TriggerAction


      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;
    }
View Full Code Here


      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;
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.chukwa.datatrigger.TriggerAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.