Class NodeNameXAResourceOrphanFilter
java.lang.Object
com.arjuna.ats.internal.jta.recovery.arjunacore.NodeNameXAResourceOrphanFilter
- All Implemented Interfaces:
XAResourceOrphanFilter
An XAResourceOrphanFilter which uses node name information encoded in the xid to determine if
they should be rolled back or not.
Note that this filter does not check xid format id, and therefore may attempt to extract node name
information from foreign xids, resulting in random behaviour. Probably best combined with a filter
that verifies formatIds.
- Author:
- Jonathan Halliday (jonathan.halliday@redhat.com), 2010-03
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.arjuna.ats.jta.recovery.XAResourceOrphanFilter
XAResourceOrphanFilter.Vote
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCalled by the XARecoveryModule for each in-doubt Xid.
-
Field Details
-
RECOVER_ALL_NODES
- See Also:
-
-
Constructor Details
-
NodeNameXAResourceOrphanFilter
public NodeNameXAResourceOrphanFilter()
-
-
Method Details
-
checkXid
Description copied from interface:XAResourceOrphanFilter
Called by the XARecoveryModule for each in-doubt Xid. Implementations should return Vote.ROLLBACK if they recognize the xid and believe it should be aborted. Vote.LEAVE_ALONE if they recognize the xid and do not want the XARecovery module to roll it back. Vote.ABSTAIN if they do not recognize the xid. Each registered XAResourceOrphanFilter will be consulted before any rollback on each recovery pass, so they may change their mind over time e.g. if new information becomes available due to other recovery activity.- Specified by:
checkXid
in interfaceXAResourceOrphanFilter
- Parameters:
xid
- The in-doubt xid.- Returns:
- a Vote in accordance with the guidelines above.
-