com.atomikos.recovery.imp
Class FileSystemRepository

java.lang.Object
  extended by com.atomikos.recovery.imp.FileSystemRepository
All Implemented Interfaces:
Repository

public class FileSystemRepository
extends Object
implements Repository


Constructor Summary
FileSystemRepository()
           
 
Method Summary
 void close()
           
protected  void closeOutput()
           
 Collection<CoordinatorLogEntry> findAllCommittingCoordinatorLogEntries()
           
 CoordinatorLogEntry get(String coordinatorId)
           
 Collection<CoordinatorLogEntry> getAllCoordinatorLogEntries()
           
 void init()
           
 void put(String id, CoordinatorLogEntry coordinatorLogEntry)
           
 void writeCheckpoint(Collection<CoordinatorLogEntry> checkpointContent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemRepository

public FileSystemRepository()
Method Detail

init

public void init()
          throws LogException
Specified by:
init in interface Repository
Throws:
LogException

put

public void put(String id,
                CoordinatorLogEntry coordinatorLogEntry)
         throws LogWriteException
Specified by:
put in interface Repository
Throws:
LogWriteException

get

public CoordinatorLogEntry get(String coordinatorId)
Specified by:
get in interface Repository

findAllCommittingCoordinatorLogEntries

public Collection<CoordinatorLogEntry> findAllCommittingCoordinatorLogEntries()
Specified by:
findAllCommittingCoordinatorLogEntries in interface Repository

getAllCoordinatorLogEntries

public Collection<CoordinatorLogEntry> getAllCoordinatorLogEntries()
                                                            throws LogReadException
Specified by:
getAllCoordinatorLogEntries in interface Repository
Throws:
LogReadException

close

public void close()
Specified by:
close in interface Repository

closeOutput

protected void closeOutput()
                    throws IllegalStateException
Throws:
IllegalStateException

writeCheckpoint

public void writeCheckpoint(Collection<CoordinatorLogEntry> checkpointContent)
                     throws LogWriteException
Specified by:
writeCheckpoint in interface Repository
Throws:
LogWriteException


Copyright © 2016. All Rights Reserved.