com.atomikos.recovery.imp
Class RecoveryLogImp

java.lang.Object
  extended by com.atomikos.recovery.imp.RecoveryLogImp
All Implemented Interfaces:
AdminLog, RecoveryLog

public class RecoveryLogImp
extends Object
implements RecoveryLog, AdminLog


Constructor Summary
RecoveryLogImp()
           
 
Method Summary
 void close(long maxWaitTime)
           
protected  ParticipantLogEntry createSubTransactionCoordinatorParticipant(CoordinatorLogEntry subTransaction)
           
 Collection<ParticipantLogEntry> getCommittingParticipants()
           
 CoordinatorLogEntry[] getCoordinatorLogEntries()
           
 void presumedAborting(ParticipantLogEntry entry)
           
 void remove(String coordinatorId)
           
 void setRepository(Repository repository)
           
 void terminated(ParticipantLogEntry entry)
           
 void terminatedWithHeuristicCommit(ParticipantLogEntry entry)
           
 void terminatedWithHeuristicHazard(ParticipantLogEntry entry)
           
 void terminatedWithHeuristicMixed(ParticipantLogEntry entry)
           
 void terminatedWithHeuristicRollback(ParticipantLogEntry entry)
           
protected  void terminateParentTx(CoordinatorLogEntry coordinatorLogEntry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecoveryLogImp

public RecoveryLogImp()
Method Detail

setRepository

public void setRepository(Repository repository)

terminated

public void terminated(ParticipantLogEntry entry)
Specified by:
terminated in interface RecoveryLog

terminateParentTx

protected void terminateParentTx(CoordinatorLogEntry coordinatorLogEntry)
                          throws LogReadException,
                                 LogWriteException
Throws:
LogReadException
LogWriteException

createSubTransactionCoordinatorParticipant

protected ParticipantLogEntry createSubTransactionCoordinatorParticipant(CoordinatorLogEntry subTransaction)

terminatedWithHeuristicRollback

public void terminatedWithHeuristicRollback(ParticipantLogEntry entry)
                                     throws LogException
Specified by:
terminatedWithHeuristicRollback in interface RecoveryLog
Throws:
LogException

getCommittingParticipants

public Collection<ParticipantLogEntry> getCommittingParticipants()
                                                          throws LogReadException
Specified by:
getCommittingParticipants in interface RecoveryLog
Throws:
LogReadException

presumedAborting

public void presumedAborting(ParticipantLogEntry entry)
                      throws IllegalStateException,
                             LogException
Specified by:
presumedAborting in interface RecoveryLog
Throws:
IllegalStateException
LogException

terminatedWithHeuristicCommit

public void terminatedWithHeuristicCommit(ParticipantLogEntry entry)
                                   throws LogException
Specified by:
terminatedWithHeuristicCommit in interface RecoveryLog
Throws:
LogException

terminatedWithHeuristicHazard

public void terminatedWithHeuristicHazard(ParticipantLogEntry entry)
Specified by:
terminatedWithHeuristicHazard in interface RecoveryLog

terminatedWithHeuristicMixed

public void terminatedWithHeuristicMixed(ParticipantLogEntry entry)
                                  throws LogException
Specified by:
terminatedWithHeuristicMixed in interface RecoveryLog
Throws:
LogException

getCoordinatorLogEntries

public CoordinatorLogEntry[] getCoordinatorLogEntries()
Specified by:
getCoordinatorLogEntries in interface AdminLog

remove

public void remove(String coordinatorId)
Specified by:
remove in interface AdminLog

close

public void close(long maxWaitTime)
Specified by:
close in interface RecoveryLog


Copyright © 2016. All Rights Reserved.