Package sos.scheduler.consoleviews.events

Examples of sos.scheduler.consoleviews.events.SOSEvaluateEvents


    while (iter.hasNext()) {
      File actionEventHandler = (File) iter.next();
      if (actionEventHandler.exists() && actionEventHandler.canRead()) {
        erg = true;
        this.getLogger().debug1(".. analysing action event handler: " + actionEventHandler.getCanonicalPath());
        SOSEvaluateEvents eval = new SOSEvaluateEvents(spooler.hostname(), spooler.tcp_port());
        try {
          eval.setActiveEvents(this.getEvents());
          eval.readConfigurationFile(actionEventHandler);
        }
        catch (Exception e) {
          e.printStackTrace();
        }
        // Logging
        Iterator iActions = eval.getListOfActions().iterator();
        while (iActions.hasNext()) {
          SOSActions a = (SOSActions) iActions.next();
          this.getLogger().debug1(".... checking action " + a.getName());
          if (a.isActive(eval.getListOfActiveEvents())) {
            this.getLogger().debug1(".... added action:" + a.getName());
            this.getEventHandlerResultFileList().add(a.getCommands());
            NodeList commands = (NodeList) XPathAPI.selectNodeList(a.getCommands(), "command | remove_event | add_event");
            for (int i = 0; i < commands.getLength(); i++) {
              Node n = commands.item(i);
View Full Code Here

TOP

Related Classes of sos.scheduler.consoleviews.events.SOSEvaluateEvents

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.