Class ProtectDebugInfo
java.lang.Object
org.jpos.transaction.ProtectDebugInfo
- All Implemented Interfaces:
Configurable, AbortParticipant, TransactionConstants, TransactionParticipant
Sample Usage:
<participant class="org.jpos.transaction.ProtectDebugInfo" logger="Q2" realm="debug">
<property name="protect-entry" value="REQUEST" />
<property name="protect-entry" value="RESPONSE" />
<property name="protect-entry" value="PAN" />
<property name="protect-entry" value="REQUEST_ICC_DATA" />
<property name="wipe-entry" value="EXPDATE" />
<property name="protect-ISOMsg" value="2" />
<property name="protect-ISOMsg" value="35" />
<property name="protect-ISOMsg" value="45" />
<property name="wipe-ISOMsg" value="52" />
<property name="wipe-ISOMsg" value="55" />
<property name="wipe-TLVList" value="0x56" />
<property name="wipe-TLVList" value="0x57" />
<property name="wipe-TLVList" value="0x5a" />
<property name="wipe-TLVList" value="0x5f20" />
<property name="protect-FSDMsg" value="account-number" />
<property name="protect-FSDMsg" value="track2-data" />
</participant>
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort(long id, Serializable o) Called by TransactionManager upon transaction commit.voidcommit(long id, Serializable o) Called by TransactionManager upon transaction commit.intprepare(long id, Serializable o) Called by TransactionManager in preparation for a transactionintprepareForAbort(long id, Serializable o) Called by TransactionManager in preparation for a transaction that is known to abort.void
-
Constructor Details
-
ProtectDebugInfo
public ProtectDebugInfo()
-
-
Method Details
-
prepare
Description copied from interface:TransactionParticipantCalled by TransactionManager in preparation for a transaction- Specified by:
preparein interfaceTransactionParticipant- Parameters:
id- the Transaction identifiero- transaction context- Returns:
- PREPARED or ABORTED (| NO_JOIN | READONLY)
-
prepareForAbort
Description copied from interface:AbortParticipantCalled by TransactionManager in preparation for a transaction that is known to abort.- Specified by:
prepareForAbortin interfaceAbortParticipant- Parameters:
id- the Transaction identifiero- transaction context- Returns:
- 0 [| NO_JOIN | READONLY)
-
commit
Description copied from interface:TransactionParticipantCalled by TransactionManager upon transaction commit. Warning: implementation should be able to handle multiple calls with the same transaction id (rare crash recovery)- Specified by:
commitin interfaceTransactionParticipant- Parameters:
id- the Transaction identifiero- transaction context
-
abort
Description copied from interface:TransactionParticipantCalled by TransactionManager upon transaction commit. Warning: implementation should be able to handle multiple calls with the same transaction id (rare crash recovery)- Specified by:
abortin interfaceTransactionParticipant- Parameters:
id- the Transaction identifiero- transaction context
-
setConfiguration
- Specified by:
setConfigurationin interfaceConfigurable- Parameters:
cfg- Configuration object- Throws:
ConfigurationException
-