private static void printLog(TransactionLog log) { try { System.out.println("TransactionLog " + log.getName()); TransactionLogReader reader = log.getReader(); TransactionEdit edit; long seq = 0; while ((edit = reader.next()) != null) { System.out.println(String.format(" %d: %s", seq++, edit.toString())); } } catch (IOException ioe) { System.err.println("ERROR reading log " + log.getName() + ": " + ioe.getMessage()); ioe.printStackTrace(); } } }
private static void printLog(TransactionLog log) { try { System.out.println("TransactionLog " + log.getName()); TransactionLogReader reader = log.getReader(); TransactionEdit edit; long seq = 0; while ((edit = reader.next()) != null) { System.out.println(String.format(" %d: %s", seq++, edit.toString())); } } catch (IOException ioe) { System.err.println("ERROR reading log " + log.getName() + ": " + ioe.getMessage()); ioe.printStackTrace(); } } }
while (reader.next() != null) {
while ((edit = reader.next()) != null) { editCnt++; switch (edit.getState()) {
while ((edit = reader.next()) != null) { editCnt++; switch (edit.getState()) {