public class FailureStorage extends Object
| Constructor and Description |
|---|
FailureStorage(org.neo4j.io.fs.FileSystemAbstraction fs,
FolderLayout folderLayout) |
FailureStorage(org.neo4j.io.fs.FileSystemAbstraction fs,
FolderLayout folderLayout,
String failureFileName) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearForIndex()
Delete failure file for the given index id
|
String |
loadIndexFailure() |
void |
reserveForIndex()
Create/reserve an empty failure file for the given indexId.
|
void |
storeIndexFailure(String failure)
Store failure in failure file for index with the given id
|
public FailureStorage(org.neo4j.io.fs.FileSystemAbstraction fs,
FolderLayout folderLayout,
String failureFileName)
failureFileName - name of failure files to be createdfolderLayout - describing where failure files should be storedpublic FailureStorage(org.neo4j.io.fs.FileSystemAbstraction fs,
FolderLayout folderLayout)
public void reserveForIndex()
throws IOException
IOException - if the failure file could not be createdpublic void clearForIndex()
public String loadIndexFailure()
null marking no failure.public void storeIndexFailure(String failure) throws IOException
failure - message describing the failure that needs to be storedIOException - if the failure could not be storedCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.