org.jpos.transaction.participant
Class Debug
java.lang.Object
org.jpos.util.Log
org.jpos.transaction.participant.Debug
- All Implemented Interfaces:
- AbortParticipant, TransactionConstants, TransactionParticipant, LogSource
public class Debug
- extends Log
- implements AbortParticipant
|
Constructor Summary |
Debug()
|
|
Method Summary |
void |
abort(long id,
Serializable o)
Called by TransactionManager upon transaction commit. |
void |
commit(long id,
Serializable o)
Called by TransactionManager upon transaction commit. |
int |
prepare(long id,
Serializable o)
Called by TransactionManager in preparation for a transaction |
int |
prepareForAbort(long id,
Serializable o)
Called by TransactionManager in preparation for a transaction
that is known to abort. |
| Methods inherited from class org.jpos.util.Log |
createDebug, createDebug, createError, createError, createFatal, createFatal, createInfo, createInfo, createLogEvent, createLogEvent, createTrace, createTrace, createWarn, createWarn, debug, debug, error, error, fatal, fatal, getLog, getLogger, getRealm, info, info, setLogger, setLogger, setRealm, trace, trace, warn, warn |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Debug
public Debug()
prepare
public int prepare(long id,
Serializable o)
- Description copied from interface:
TransactionParticipant
- Called by TransactionManager in preparation for a transaction
- Specified by:
prepare in interface TransactionParticipant
- Parameters:
id - the Transaction identifiero - transaction context
- Returns:
- PREPARED or ABORTED (| NO_JOIN | READONLY)
commit
public void commit(long id,
Serializable o)
- Description copied from interface:
TransactionParticipant
- Called by TransactionManager upon transaction commit.
Warning: implementation should be able to handle multiple calls
with the same transaction id (rare crash recovery)
- Specified by:
commit in interface TransactionParticipant
- Parameters:
id - the Transaction identifiero - transaction context
abort
public void abort(long id,
Serializable o)
- Description copied from interface:
TransactionParticipant
- Called by TransactionManager upon transaction commit.
Warning: implementation should be able to handle multiple calls
with the same transaction id (rare crash recovery)
- Specified by:
abort in interface TransactionParticipant
- Parameters:
id - the Transaction identifiero - transaction context
prepareForAbort
public int prepareForAbort(long id,
Serializable o)
- Description copied from interface:
AbortParticipant
- Called by TransactionManager in preparation for a transaction
that is known to abort.
- Specified by:
prepareForAbort in interface AbortParticipant
- Parameters:
id - the Transaction identifiero - transaction context
- Returns:
- 0 [| NO_JOIN | READONLY)
Copyright © 1998-2012 jPOS.org. All Rights Reserved.