com.atomikos.icatch
Class CoordinatorLogEntry

java.lang.Object
  extended by com.atomikos.icatch.CoordinatorLogEntry

public class CoordinatorLogEntry
extends Object

Coordinator snapshot for logging and recovery purposes.


Field Summary
 String id
           
 ParticipantLogEntry[] participants
           
 String superiorCoordinatorId
          Only for subtransactions, null otherwise.
 boolean wasCommitted
           
 
Constructor Summary
CoordinatorLogEntry(String coordinatorId, boolean wasCommitted, ParticipantLogEntry[] participants)
           
CoordinatorLogEntry(String coordinatorId, boolean wasCommitted, ParticipantLogEntry[] participants, String superiorCoordinatorId)
           
CoordinatorLogEntry(String coordinatorId, ParticipantLogEntry[] participantDetails)
           
 
Method Summary
 long expires()
           
 TxState getResultingState()
           
 boolean hasExpired()
           
 CoordinatorLogEntry markAsTerminated()
           
 CoordinatorLogEntry presumedAborting(ParticipantLogEntry entry)
           
 boolean shouldSync()
           
 CoordinatorLogEntry terminated(ParticipantLogEntry entry)
           
 CoordinatorLogEntry terminatedWithHeuristicCommit(ParticipantLogEntry entry)
           
 CoordinatorLogEntry terminatedWithHeuristicMixed(ParticipantLogEntry entry)
           
 CoordinatorLogEntry terminatedWithHeuristicRollback(ParticipantLogEntry entry)
           
 String toString()
           
 boolean transitionAllowedFrom(CoordinatorLogEntry existing)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public final String id

wasCommitted

public final boolean wasCommitted

superiorCoordinatorId

public final String superiorCoordinatorId
Only for subtransactions, null otherwise.


participants

public final ParticipantLogEntry[] participants
Constructor Detail

CoordinatorLogEntry

public CoordinatorLogEntry(String coordinatorId,
                           ParticipantLogEntry[] participantDetails)

CoordinatorLogEntry

public CoordinatorLogEntry(String coordinatorId,
                           boolean wasCommitted,
                           ParticipantLogEntry[] participants)

CoordinatorLogEntry

public CoordinatorLogEntry(String coordinatorId,
                           boolean wasCommitted,
                           ParticipantLogEntry[] participants,
                           String superiorCoordinatorId)
Method Detail

getResultingState

public TxState getResultingState()

transitionAllowedFrom

public boolean transitionAllowedFrom(CoordinatorLogEntry existing)

presumedAborting

public CoordinatorLogEntry presumedAborting(ParticipantLogEntry entry)
                                     throws IllegalStateException
Throws:
IllegalStateException

expires

public long expires()

terminated

public CoordinatorLogEntry terminated(ParticipantLogEntry entry)

terminatedWithHeuristicCommit

public CoordinatorLogEntry terminatedWithHeuristicCommit(ParticipantLogEntry entry)

terminatedWithHeuristicMixed

public CoordinatorLogEntry terminatedWithHeuristicMixed(ParticipantLogEntry entry)

terminatedWithHeuristicRollback

public CoordinatorLogEntry terminatedWithHeuristicRollback(ParticipantLogEntry entry)

shouldSync

public boolean shouldSync()

markAsTerminated

public CoordinatorLogEntry markAsTerminated()

hasExpired

public boolean hasExpired()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2016. All Rights Reserved.