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);