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