Class RecoveryAdminOperations

java.lang.Object
org.infinispan.transaction.xa.recovery.RecoveryAdminOperations

@MBean(objectName="RecoveryAdmin", description="Exposes tooling for handling transaction recovery.") public class RecoveryAdminOperations extends Object
Admin utility class for allowing management of in-doubt transactions (e.g. transactions for which the originator node crashed after prepare).
Since:
5.0
Author:
Mircea Markus
  • Constructor Details

    • RecoveryAdminOperations

      public RecoveryAdminOperations()
  • Method Details

    • showInDoubtTransactions

      @ManagedOperation(description="Shows all the prepared transactions for which the originating node crashed", displayName="Show in doubt transactions") public String showInDoubtTransactions()
    • forceCommit

      @ManagedOperation(description="Forces the commit of an in-doubt transaction", displayName="Force commit by internal id") public String forceCommit(@Parameter(name="internalId",description="The internal identifier of the transaction") long internalId)
    • forceCommit

      @ManagedOperation(description="Forces the commit of an in-doubt transaction", displayName="Force commit by Xid", name="forceCommit") public String forceCommit(@Parameter(name="formatId",description="The formatId of the transaction") int formatId, @Parameter(name="globalTxId",description="The globalTxId of the transaction") byte[] globalTxId, @Parameter(name="branchQualifier",description="The branchQualifier of the transaction") byte[] branchQualifier)
    • forceRollback

      @ManagedOperation(description="Forces the rollback of an in-doubt transaction", displayName="Force rollback by internal id") public String forceRollback(@Parameter(name="internalId",description="The internal identifier of the transaction") long internalId)
    • forceRollback

      @ManagedOperation(description="Forces the rollback of an in-doubt transaction", displayName="Force rollback by Xid", name="forceRollback") public String forceRollback(@Parameter(name="formatId",description="The formatId of the transaction") int formatId, @Parameter(name="globalTxId",description="The globalTxId of the transaction") byte[] globalTxId, @Parameter(name="branchQualifier",description="The branchQualifier of the transaction") byte[] branchQualifier)
    • forget

      @ManagedOperation(description="Removes recovery info for the given transaction.", displayName="Remove recovery info by Xid", name="forget") public String forget(@Parameter(name="formatId",description="The formatId of the transaction") int formatId, @Parameter(name="globalTxId",description="The globalTxId of the transaction") byte[] globalTxId, @Parameter(name="branchQualifier",description="The branchQualifier of the transaction") byte[] branchQualifier)
    • forget

      @ManagedOperation(description="Removes recovery info for the given transaction.", displayName="Remove recovery info by internal id") public String forget(@Parameter(name="internalId",description="The internal identifier of the transaction") long internalId)