|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbitronix.tm.journal.NullJournal
public class NullJournal
No-op journal. Do not use for anything else than testing as the transaction manager cannot guarantee data integrity with this journal implementation.
Constructor Summary | |
---|---|
NullJournal()
|
Method Summary | |
---|---|
void |
close()
Close this journal and release all underlying resources. |
java.util.Map |
collectDanglingRecords()
Collect all dangling records of the journal, ie: COMMITTING records with no corresponding COMMITTED record. |
void |
force()
Force journal to synchronize with permanent storage. |
void |
log(int status,
Uid gtrid,
java.util.Set uniqueNames)
Log a new transaction status to journal. |
void |
open()
Open the journal. |
void |
shutdown()
Shutdown the service and free all held resources. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NullJournal()
Method Detail |
---|
public void log(int status, Uid gtrid, java.util.Set uniqueNames) throws java.io.IOException
Journal
log
in interface Journal
status
- transaction status to log.gtrid
- GTRID of the transaction.uniqueNames
- unique names of the RecoverableXAResourceProducers participating in the transaction.
java.io.IOException
- if an I/O error occurs.public void open() throws java.io.IOException
Journal
open
in interface Journal
java.io.IOException
- if an I/O error occurs.public void close() throws java.io.IOException
Journal
close
in interface Journal
java.io.IOException
- if an I/O error occurs.public void force() throws java.io.IOException
Journal
force
in interface Journal
java.io.IOException
- if an I/O error occurs.public java.util.Map collectDanglingRecords() throws java.io.IOException
Journal
collectDanglingRecords
in interface Journal
TransactionLogRecord
as value
java.io.IOException
- if an I/O error occurs.public void shutdown()
Service
shutdown
in interface Service
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |