/** Write the body of the incident XML file */ private void writeBody(Writer w) throws IOException { Iterator<Incident> it = IncidentHelper.iterator(); while (it.hasNext()) { Incident inc = it.next(); if (inc instanceof IncidentImpl) ((IncidentImpl) inc).writeXml(w); } }
/** Reap an incident */ private void reapIncident(IncidentImpl inc) { if (inc.getCleared()) { if (inc.getClearTime() + getIncidentClearThreshold() < TimeSteward.currentTimeMillis()) inc.notifyRemove(); } }