public class FileSystemRepository extends Object implements Repository
| Constructor and Description |
|---|
FileSystemRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
closeOutput() |
Collection<CoordinatorLogEntry> |
findAllCommittingCoordinatorLogEntries() |
CoordinatorLogEntry |
get(String coordinatorId) |
Collection<CoordinatorLogEntry> |
getAllCoordinatorLogEntries() |
void |
init() |
void |
put(String id,
CoordinatorLogEntry coordinatorLogEntry) |
static Collection<CoordinatorLogEntry> |
readFromInputStream(InputStream in) |
void |
writeCheckpoint(Collection<CoordinatorLogEntry> checkpointContent) |
public void init()
throws LogException
init in interface RepositoryLogExceptionpublic void put(String id, CoordinatorLogEntry coordinatorLogEntry) throws LogWriteException
put in interface RepositoryLogWriteExceptionpublic CoordinatorLogEntry get(String coordinatorId)
get in interface Repositorypublic Collection<CoordinatorLogEntry> findAllCommittingCoordinatorLogEntries()
findAllCommittingCoordinatorLogEntries in interface Repositorypublic Collection<CoordinatorLogEntry> getAllCoordinatorLogEntries() throws LogReadException
getAllCoordinatorLogEntries in interface RepositoryLogReadExceptionpublic static Collection<CoordinatorLogEntry> readFromInputStream(InputStream in) throws LogReadException
LogReadExceptionpublic void close()
close in interface Repositoryprotected void closeOutput()
throws IllegalStateException
IllegalStateExceptionpublic void writeCheckpoint(Collection<CoordinatorLogEntry> checkpointContent) throws LogWriteException
writeCheckpoint in interface RepositoryLogWriteExceptionCopyright © 2016. All Rights Reserved.