Class XARecoveryModule

java.lang.Object
com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule
All Implemented Interfaces:
ExtendedRecoveryModule, RecoveryModule
Direct Known Subclasses:
XARecoveryModule

public class XARecoveryModule extends Object implements ExtendedRecoveryModule
Designed to be able to recover any XAResource.
  • Constructor Details

  • Method Details

    • getContactedJndiNames

      public Set<String> getContactedJndiNames()
    • isPeriodicWorkSuccessful

      public boolean isPeriodicWorkSuccessful()
      Description copied from interface: ExtendedRecoveryModule
      Report whether or not the last recovery pass was successful. A successful recovery pass means that no warnings or errors were logged. This means that any failure conditions are guaranteed to be obtainable by inspecting the logs.
      Specified by:
      isPeriodicWorkSuccessful in interface ExtendedRecoveryModule
      Returns:
      false if any RecoveryModule logged a warning or error on the previous recovery pass.
    • addXAResourceRecoveryHelper

      public void addXAResourceRecoveryHelper(XAResourceRecoveryHelper xaResourceRecoveryHelper)
    • removeXAResourceRecoveryHelper

      public void removeXAResourceRecoveryHelper(XAResourceRecoveryHelper xaResourceRecoveryHelper)
    • addXAResourceOrphanFilter

      public void addXAResourceOrphanFilter(XAResourceOrphanFilter xaResourceOrphanFilter)
    • removeXAResourceOrphanFilter

      public void removeXAResourceOrphanFilter(XAResourceOrphanFilter xaResourceOrphanFilter)
    • addSerializableXAResourceDeserializer

      public void addSerializableXAResourceDeserializer(SerializableXAResourceDeserializer serializableXAResourceDeserializer)
    • getSeriablizableXAResourceDeserializers

      public List<SerializableXAResourceDeserializer> getSeriablizableXAResourceDeserializers()
    • periodicWorkFirstPass

      public void periodicWorkFirstPass()
      Description copied from interface: RecoveryModule
      Called by the RecoveryManager at start up, and then PERIODIC_RECOVERY_PERIOD seconds after the completion, for all RecoveryModules, of the second pass
      Specified by:
      periodicWorkFirstPass in interface RecoveryModule
    • periodicWorkSecondPass

      public void periodicWorkSecondPass()
      Description copied from interface: RecoveryModule
      Called by the RecoveryManager RECOVERY_BACKOFF_PERIOD seconds after the completion of the first pass
      Specified by:
      periodicWorkSecondPass in interface RecoveryModule
    • getRegisteredXARecoveryModule

      public static XARecoveryModule getRegisteredXARecoveryModule()
    • id

      public String id()
    • getNewXAResource

      public XAResource getNewXAResource(XAResourceRecord xaResourceRecord)
      Parameters:
      xaResourceRecord - The record to reassociate.
      Returns:
      the XAResource than can be used to commit/rollback the specified record.