Class SnapshotLogger
- java.lang.Object
-
- org.apache.iotdb.db.engine.snapshot.SnapshotLogger
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class SnapshotLogger extends java.lang.Object implements java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSNAPSHOT_LOG_NAMEstatic java.lang.StringSPLIT_CHAR
-
Constructor Summary
Constructors Constructor Description SnapshotLogger(java.io.File logFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanUpWhenFailed()voidclose()voidlogFile(java.lang.String sourceFile, java.lang.String linkFile)
-
-
-
Field Detail
-
SNAPSHOT_LOG_NAME
public static final java.lang.String SNAPSHOT_LOG_NAME
- See Also:
- Constant Field Values
-
SPLIT_CHAR
public static final java.lang.String SPLIT_CHAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
logFile
public void logFile(java.lang.String sourceFile, java.lang.String linkFile) throws java.io.IOException- Throws:
java.io.IOException
-
cleanUpWhenFailed
public void cleanUpWhenFailed() throws java.io.IOException- Throws:
java.io.IOException
-
-