XAReplayListener(ReplayListener tmListener) { assert tmListener != null: "ReplayListener must be non-null"; this.tmListener = tmListener; lr = tmListener.getLogRecord(); }
public void onError(LogException e) { // pass the error onto the TM tmListener.onError(e); }
LogRecord record = listener.getLogRecord(); record.buffer = buffer; } catch (IOException e) { String msg = "Error reading " + buffer.lf.file + " @ position [" + buffer.lf.position + "]"; listener.onError(new LogException(msg + e.toString())); return; } catch (InvalidLogBufferException e) { listener.onError(new LogException(e.toString())); return; listener.onRecord(record); return; InvalidLogBufferException lbe = new InvalidLogBufferException( "block read [" + buffer.bsn + "] not block requested: " + markBSN); listener.onError(lbe); return; listener.onError(new LogException(e.toString())); return; lfm.read(buffer, nextBSN); } catch (IOException e) { listener.onError(new LogException(e.toString())); return; } catch (InvalidLogBufferException e) { listener.onError(new LogException(e.toString())); return;
LogRecord record = listener.getLogRecord(); record.buffer = buffer; } catch (IOException e) { String msg = "Error reading " + buffer.lf.file + " @ position [" + buffer.lf.position + "]"; listener.onError(new LogException(msg + e.toString())); return; } catch (InvalidLogBufferException e) { listener.onError(new LogException(e.toString())); return; listener.onRecord(record); return; InvalidLogBufferException lbe = new InvalidLogBufferException( "block read [" + buffer.bsn + "] not block requested: " + markBSN); listener.onError(lbe); return; listener.onError(new LogException(e.toString())); return; lfm.read(buffer, nextBSN); } catch (IOException e) { listener.onError(new LogException(e.toString())); return; } catch (InvalidLogBufferException e) { listener.onError(new LogException(e.toString())); return;
LogRecord record = listener.getLogRecord(); record.buffer = buffer; } catch (IOException e) { String msg = "Error reading " + buffer.lf.file + " @ position [" + buffer.lf.position + "]"; listener.onError(new LogException(msg + e.toString())); return; } catch (InvalidLogBufferException e) { listener.onError(new LogException(e.toString())); return; listener.onRecord(record); return; InvalidLogBufferException lbe = new InvalidLogBufferException( "block read [" + buffer.bsn + "] not block requested: " + markBSN); listener.onError(lbe); return; listener.onError(new LogException(e.toString())); return; lfm.read(buffer, nextBSN); } catch (IOException e) { listener.onError(new LogException(e.toString())); return; } catch (InvalidLogBufferException e) { listener.onError(new LogException(e.toString())); return;
public void onError(LogException e) { // pass the error onto the TM tmListener.onError(e); }
XAReplayListener(ReplayListener tmListener) { assert tmListener != null: "ReplayListener must be non-null"; this.tmListener = tmListener; lr = tmListener.getLogRecord(); }
public void onError(LogException e) { // pass the error onto the TM tmListener.onError(e); }
XAReplayListener(ReplayListener tmListener) { assert tmListener != null: "ReplayListener must be non-null"; this.tmListener = tmListener; lr = tmListener.getLogRecord(); }
public void onError(LogException e) { System.err.println("onError: " + e); replayException = e; // QUESTION - mark log unusable? // pass the error onto the TM if (tmListener != null) tmListener.onError(e); }
public void onError(LogException e) { System.err.println("onError: " + e); replayException = e; // QUESTION - mark log unusable? // pass the error onto the TM if (tmListener != null) tmListener.onError(e); }
public void onError(LogException e) { System.err.println("onError: " + e); replayException = e; // QUESTION - mark log unusable? // pass the error onto the TM if (tmListener != null) tmListener.onError(e); }