Package bitronix.tm.journal
Class NullJournal
java.lang.Object
bitronix.tm.journal.NullJournal
No-op journal. Do not use for anything else than testing as the transaction manager cannot guarantee
data integrity with this journal implementation.
- Author:
- lorban
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close this journal and release all underlying resources.Collect all dangling records of the journal, ie: COMMITTING records with no corresponding COMMITTED record.voidforce()Force journal to synchronize with permanent storage.voidLog a new transaction status to journal.voidopen()Open the journal.voidshutdown()Shutdown the service and free all held resources.toString()
-
Constructor Details
-
NullJournal
public NullJournal()
-
-
Method Details
-
log
Description copied from interface:JournalLog a new transaction status to journal. Note that the journal will not check the flow of the transactions. If you call this method with erroneous data, it will be added to the journal as-is.- Specified by:
login interfaceJournal- Parameters:
status- transaction status to log.gtrid- GTRID of the transaction.uniqueNames- unique names of the RecoverableXAResourceProducers participating in the transaction.- Throws:
IOException- if an I/O error occurs.
-
open
Description copied from interface:JournalOpen the journal. Integrity should be checked and an exception should be thrown in case the journal is corrupt.- Specified by:
openin interfaceJournal- Throws:
IOException- if an I/O error occurs.
-
close
Description copied from interface:JournalClose this journal and release all underlying resources.- Specified by:
closein interfaceJournal- Throws:
IOException- if an I/O error occurs.
-
force
Description copied from interface:JournalForce journal to synchronize with permanent storage.- Specified by:
forcein interfaceJournal- Throws:
IOException- if an I/O error occurs.
-
collectDanglingRecords
Description copied from interface:JournalCollect all dangling records of the journal, ie: COMMITTING records with no corresponding COMMITTED record.- Specified by:
collectDanglingRecordsin interfaceJournal- Returns:
- a Map using Uid objects GTRID as key and
TransactionLogRecordas value - Throws:
IOException- if an I/O error occurs.
-
shutdown
public void shutdown()Description copied from interface:ServiceShutdown the service and free all held resources. -
toString
-