com.atomikos.recovery
Interface Repository


public interface Repository

Abstraction of where transaction log entries are stored and retrieved.


Method Summary
 void close()
           
 java.util.Collection<CoordinatorLogEntry> findAllCommittingCoordinatorLogEntries()
           
 CoordinatorLogEntry get(java.lang.String coordinatorId)
           
 java.util.Collection<CoordinatorLogEntry> getAllCoordinatorLogEntries()
           
 void init()
           
 void put(java.lang.String id, CoordinatorLogEntry coordinatorLogEntry)
           
 void writeCheckpoint(java.util.Collection<CoordinatorLogEntry> checkpointContent)
           
 

Method Detail

init

void init()
          throws LogException
Throws:
LogException

put

void put(java.lang.String id,
         CoordinatorLogEntry coordinatorLogEntry)
         throws java.lang.IllegalArgumentException,
                LogWriteException
Throws:
java.lang.IllegalArgumentException - If the same coordinatorLogEntry is already in the repository.
LogWriteException

get

CoordinatorLogEntry get(java.lang.String coordinatorId)
                        throws LogReadException
Throws:
LogReadException

findAllCommittingCoordinatorLogEntries

java.util.Collection<CoordinatorLogEntry> findAllCommittingCoordinatorLogEntries()
                                                                                 throws LogReadException
Throws:
LogReadException

getAllCoordinatorLogEntries

java.util.Collection<CoordinatorLogEntry> getAllCoordinatorLogEntries()
                                                                      throws LogReadException
Throws:
LogReadException

writeCheckpoint

void writeCheckpoint(java.util.Collection<CoordinatorLogEntry> checkpointContent)
                     throws LogWriteException
Throws:
LogWriteException

close

void close()


Copyright © 2016. All Rights Reserved.