/** 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);
   }
 }
Пример #2
0
 /** Reap an incident */
 private void reapIncident(IncidentImpl inc) {
   if (inc.getCleared()) {
     if (inc.getClearTime() + getIncidentClearThreshold() < TimeSteward.currentTimeMillis())
       inc.notifyRemove();
   }
 }