Exemple #1
0
 @Override
 protected long getNumSync() {
   for (JournalAndStream jas : journals) {
     if (jas.isActive()) {
       return jas.getCurrentStream().getNumSync();
     }
   }
   return 0;
 }
Exemple #2
0
 @Override
 public boolean shouldForceSync() {
   for (JournalAndStream js : journals) {
     if (js.isActive() && js.getCurrentStream().shouldForceSync()) {
       return true;
     }
   }
   return false;
 }
Exemple #3
0
 /** Add sync times to the buffer. */
 String getSyncTimes() {
   StringBuilder buf = new StringBuilder();
   for (JournalAndStream jas : journals) {
     if (jas.isActive()) {
       buf.append(jas.getCurrentStream().getTotalSyncTime());
       buf.append(" ");
     }
   }
   return buf.toString();
 }