com.atomikos.recovery
Interface Repository


public interface Repository

Abstraction of where transaction log entries are stored and retrieved.


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

Method Detail

init

void init()
          throws LogException
Throws:
LogException

put

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

get

CoordinatorLogEntry get(String coordinatorId)
                        throws LogReadException
Throws:
LogReadException

findAllCommittingCoordinatorLogEntries

Collection<CoordinatorLogEntry> findAllCommittingCoordinatorLogEntries()
                                                                       throws LogReadException
Throws:
LogReadException

getAllCoordinatorLogEntries

Collection<CoordinatorLogEntry> getAllCoordinatorLogEntries()
                                                            throws LogReadException
Throws:
LogReadException

writeCheckpoint

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

close

void close()


Copyright © 2016. All Rights Reserved.