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 RepositoryLogExceptionpublic void put(java.lang.String id,
PendingTransactionRecord pendingTransactionRecord)
throws java.lang.IllegalArgumentException,
LogWriteException
put in interface Repositoryjava.lang.IllegalArgumentExceptionLogWriteExceptionpublic PendingTransactionRecord get(java.lang.String coordinatorId) throws LogReadException
get in interface RepositoryLogReadExceptionpublic java.util.Collection<PendingTransactionRecord> findAllCommittingCoordinatorLogEntries() throws LogReadException
findAllCommittingCoordinatorLogEntries in interface RepositoryLogReadExceptionpublic java.util.Collection<PendingTransactionRecord> getAllCoordinatorLogEntries() throws LogReadException
getAllCoordinatorLogEntries in interface RepositoryLogReadExceptionpublic static java.util.Collection<PendingTransactionRecord> readFromInputStream(java.io.InputStream in) throws LogReadException
LogReadExceptionpublic void writeCheckpoint(java.util.Collection<PendingTransactionRecord> checkpointContent) throws LogWriteException
writeCheckpoint in interface RepositoryLogWriteExceptionprotected void closeOutput()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionpublic void close()
close in interface RepositoryCopyright © 2020. All Rights Reserved.