Iterator it = l.iterator();
while (it.hasNext()) {
try {
Object o = it.next();
//ieplog.error("Received: " + o);
Event ev = (Event) o;
ev.addTrace(agentid + "@" + hostLabel + "/" + app + "[IN]");
if (!checkEvent(ev)) continue;
if ("ENet".equals(ev.getEventClass())) {
if ("TakeOver".equals(ev.getEventName())) {
log.info("ENet/TakeOver received ...");
mustStop = true;
it.remove();
continue;
}
it.remove();
processENetEvent(ev);
}
} catch (ConnectorException th) {
ieplog.error("Miserably failed while preprocessing incoming data for ENet events: ", th);
ieplog.error("Time to reset connection ...");
con.reset();
continue masterloop;
} catch (Throwable th) {
ieplog.error("Exception while preprocessing incoming data for ENet events: ", th);
}
}
it = l.iterator();
while (it.hasNext()) {
Event ev = (Event) it.next();
try {
if ("ECentral".equals(ev.getEventClass())) {
if (!processECentralEvent(ev)) continue;
}
} catch (Throwable th) {
ieplog.error("Exception while processing ECentral event: " + ev, th);
}