|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.objectweb.howl.log.xa.XALogger.XAReplayListener
private static class XALogger.XAReplayListener
private class used by XALogger.replay() methods. Used by replay(ReplayListener) and replay(ReplayListener, long) wrapper methods to intercept XACOMMIT and XACOMMITMOVED records so they can be passed to caller. During TM invoked replay, log records are returned to the caller, but the activeTx table is not updated.
| Field Summary | |
|---|---|
(package private) LogRecord |
lr
|
(package private) ReplayListener |
tmListener
ReplayListener registered by TM that instantiated this XALogger. |
| Constructor Summary | |
|---|---|
XALogger.XAReplayListener(ReplayListener tmListener)
|
|
| Method Summary | |
|---|---|
LogRecord |
getLogRecord()
Called by Logger when ReplayListener is registered for replay. |
void |
onError(LogException e)
Called by Logger when an exception is encountered during replay. |
void |
onRecord(LogRecord lr)
Called by Logger for each record retrieved from the log. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
final LogRecord lr
final ReplayListener tmListener
During replay, non-CTRL records are returned to the TM's replayListener.
| Constructor Detail |
|---|
XALogger.XAReplayListener(ReplayListener tmListener)
| Method Detail |
|---|
public void onRecord(LogRecord lr)
ReplayListenerwhen the entire log has been processed, lr.type is set to LogRecordType.END_OF_LOG.
onRecord in interface ReplayListenerlr - LogRecord to be processedpublic void onError(LogException e)
ReplayListener
onError in interface ReplayListenere - LogException object that was thrown
when the error occurred.public LogRecord getLogRecord()
ReplayListenerThe Logger calls getLogRecord to obtain a LogRecord instance to be used to process log records.
The same LogRecord instance is used to return all log records to the ReplayListener.
getLogRecord in interface ReplayListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||