Beispiel #1
0
 @Override
 public void append(Event e) throws IOException {
   if (primaryOpen) {
     try {
       primary.append(e);
       super.append(e);
       return;
     } catch (IOException ex) {
       LOG.info("attempt to use primary failed: " + ex.getMessage());
       fails++;
     }
   }
   backup.append(e);
   backups++;
   super.append(e);
 }
Beispiel #2
0
 @Override
 public void getReports(String namePrefix, Map<String, ReportEvent> reports) {
   super.getReports(namePrefix, reports);
   primary.getReports(namePrefix + getName() + ".primary.", reports);
   backup.getReports(namePrefix + getName() + ".backup.", reports);
 }