public class FileSystemRepository extends Object implements Repository
| Constructor and Description |
|---|
FileSystemRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
closeOutput() |
Collection<PendingTransactionRecord> |
findAllCommittingCoordinatorLogEntries() |
PendingTransactionRecord |
get(String coordinatorId) |
Collection<PendingTransactionRecord> |
getAllCoordinatorLogEntries() |
void |
init() |
void |
put(String id,
PendingTransactionRecord pendingTransactionRecord) |
static Collection<PendingTransactionRecord> |
readFromInputStream(InputStream in) |
void |
writeCheckpoint(Collection<PendingTransactionRecord> checkpointContent) |
public void init()
throws LogException
init in interface RepositoryLogExceptionpublic void put(String id, PendingTransactionRecord pendingTransactionRecord) throws IllegalArgumentException, LogWriteException
put in interface RepositoryIllegalArgumentExceptionLogWriteExceptionpublic PendingTransactionRecord get(String coordinatorId) throws LogReadException
get in interface RepositoryLogReadExceptionpublic Collection<PendingTransactionRecord> findAllCommittingCoordinatorLogEntries() throws LogReadException
findAllCommittingCoordinatorLogEntries in interface RepositoryLogReadExceptionpublic Collection<PendingTransactionRecord> getAllCoordinatorLogEntries() throws LogReadException
getAllCoordinatorLogEntries in interface RepositoryLogReadExceptionpublic static Collection<PendingTransactionRecord> readFromInputStream(InputStream in) throws LogReadException
LogReadExceptionpublic void writeCheckpoint(Collection<PendingTransactionRecord> checkpointContent) throws LogWriteException
writeCheckpoint in interface RepositoryLogWriteExceptionprotected void closeOutput()
throws IllegalStateException
IllegalStateExceptionpublic void close()
close in interface RepositoryCopyright © 2023. All rights reserved.