public class RestoreMarker extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RestoreMarker.FileCreationException
Internal exception used to distinguish marker file creation from other
IOErrors.
|
| Constructor and Description |
|---|
RestoreMarker(FileManager fileManager,
LogManager logManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
createMarkerFile(RestoreRequired.FailureType failureType,
Properties props)
Create the restore marker file.
|
static String |
getMarkerFileName() |
void |
removeMarkerFile(FileManager fileManager)
Remove the marker file.
|
public RestoreMarker(FileManager fileManager, LogManager logManager)
public static String getMarkerFileName()
public void removeMarkerFile(FileManager fileManager) throws IOException
IOException - if the file won't delete.public void createMarkerFile(RestoreRequired.FailureType failureType, Properties props) throws RestoreMarker.FileCreationException
failureType - the failure type that should be recorded in the
RestoreRequired log entry.props - will be serialized to store information about how to handle
the failure type.RestoreMarker.FileCreationException - if the marker file can't be created.Copyright © 2024. All rights reserved.