Package com.sleepycat.db
Class LogVerifyConfig
java.lang.Object
com.sleepycat.db.LogVerifyConfig
- All Implemented Interfaces:
Cloneable
Specify the attributes of a database.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturn the internal database environment cache size.booleanReturn if continue after a failed check.Return the database file name whose logs we will verify.Return the database name whose logs we will verify.Return the ending lsn to verify.Return the ending time to verify.Return the home directory to use by the log verification internally.Return the starting lsn to verify.Return the starting time to verify.booleanReturn if print verbose information.voidsetCacheSize(int cachesize) Set the internal database environment cache size.voidsetContinueAfterFail(boolean caf) Set if continue after a failed check.voidSet the database file name whose logs we will verify.voidSet the database name whose logs we will verify.voidsetEndLsn(LogSequenceNumber endlsn) Set the ending lsn to verify.voidsetEndTime(Date etime) Set the ending lsn to verify.voidsetEnvHome(String home) Set the home directory to use by the log verification internally.voidsetStartLsn(LogSequenceNumber stLsn) Set the starting lsn to verify.voidsetStartTime(Date stime) Set the starting time to verify.voidsetVerbose(boolean verbs) Set if print verbose information.
-
Constructor Details
-
LogVerifyConfig
public LogVerifyConfig()
-
-
Method Details
-
getEnvHome
Return the home directory to use by the log verification internally.- Returns:
- Return the environment home directory path.
-
setEnvHome
Set the home directory to use by the log verification internally.- Parameters:
home- The home directory of the internal database environment we use to store intermediate data during the verification process, can be null, meaning we will create the environment and all databases in memory, which can be overwhelming if the log takes up more space than available memory.- Throws:
IllegalArgumentException- if home is an empty string.
-
getCacheSize
public int getCacheSize()Return the internal database environment cache size.- Returns:
- Return the internal database environment cache size.
-
setCacheSize
public void setCacheSize(int cachesize) Set the internal database environment cache size.- Parameters:
cachesize- The internal database environment cache size.
-
getDbFile
Return the database file name whose logs we will verify.- Returns:
- Return the database file name whose logs we will verify.
-
setDbFile
Set the database file name whose logs we will verify.- Parameters:
file- The database file name whose logs we will verify.
-
getDbName
Return the database name whose logs we will verify.- Returns:
- Return the database name whose logs we will verify.
-
setDbName
Set the database name whose logs we will verify.- Parameters:
name- The database name whose logs we will verify.
-
getStartLsn
Return the starting lsn to verify.- Returns:
- The starting lsn to verify.
-
setStartLsn
Set the starting lsn to verify.- Parameters:
stLsn- The starting lsn to verify.
-
getEndLsn
Return the ending lsn to verify.- Returns:
- The ending lsn to verify.
-
setEndLsn
Set the ending lsn to verify.- Parameters:
endlsn- The ending lsn to verify.
-
getStartTime
Return the starting time to verify.- Returns:
- The starting time to verify.
-
setStartTime
Set the starting time to verify.- Parameters:
stime- The starting time to verify.
-
getEndTime
Return the ending time to verify.- Returns:
- The ending time to verify.
-
setEndTime
Set the ending lsn to verify.- Parameters:
etime- The ending time to verify.
-
getContinueAfterFail
public boolean getContinueAfterFail()Return if continue after a failed check.- Returns:
- If continue after a failed check.
-
setContinueAfterFail
public void setContinueAfterFail(boolean caf) Set if continue after a failed check.- Parameters:
caf- If continue after a failed check.
-
getVerbose
public boolean getVerbose()Return if print verbose information.- Returns:
- If print verbose information.
-
setVerbose
public void setVerbose(boolean verbs) Set if print verbose information.- Parameters:
verbs- If print verbose information.
-