public class FileSystemRepository extends java.lang.Object implements Repository
Constructor and Description |
---|
FileSystemRepository() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
closeOutput() |
java.util.Collection<PendingTransactionRecord> |
findAllCommittingCoordinatorLogEntries() |
PendingTransactionRecord |
get(java.lang.String coordinatorId) |
java.util.Collection<PendingTransactionRecord> |
getAllCoordinatorLogEntries() |
void |
init() |
void |
put(java.lang.String id,
PendingTransactionRecord pendingTransactionRecord) |
static java.util.Collection<PendingTransactionRecord> |
readFromInputStream(java.io.InputStream in) |
void |
writeCheckpoint(java.util.Collection<PendingTransactionRecord> checkpointContent) |
public void init() throws LogException
init
in interface Repository
LogException
public void put(java.lang.String id, PendingTransactionRecord pendingTransactionRecord) throws java.lang.IllegalArgumentException, LogWriteException
put
in interface Repository
java.lang.IllegalArgumentException
LogWriteException
public PendingTransactionRecord get(java.lang.String coordinatorId) throws LogReadException
get
in interface Repository
LogReadException
public java.util.Collection<PendingTransactionRecord> findAllCommittingCoordinatorLogEntries() throws LogReadException
findAllCommittingCoordinatorLogEntries
in interface Repository
LogReadException
public java.util.Collection<PendingTransactionRecord> getAllCoordinatorLogEntries() throws LogReadException
getAllCoordinatorLogEntries
in interface Repository
LogReadException
public static java.util.Collection<PendingTransactionRecord> readFromInputStream(java.io.InputStream in) throws LogReadException
LogReadException
public void writeCheckpoint(java.util.Collection<PendingTransactionRecord> checkpointContent) throws LogWriteException
writeCheckpoint
in interface Repository
LogWriteException
protected void closeOutput() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public void close()
close
in interface Repository
Copyright © 2020. All Rights Reserved.