public class Recover extends Tool implements DataHandler
| 构造器和说明 |
|---|
Recover() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkPowerOff()
INTERNAL
|
void |
checkWritingAllowed()
INTERNAL
|
static void |
execute(String dir,
String db)
Dumps the contents of a database to a SQL script file.
|
CompareMode |
getCompareMode()
Return compare mode.
|
String |
getDatabasePath()
INTERNAL
|
SmallLRUCache<String,String[]> |
getLobFileListCache()
INTERNAL
|
LobStorageInterface |
getLobStorage()
INTERNAL
|
Object |
getLobSyncObject()
INTERNAL
|
int |
getMaxLengthInplaceLob()
INTERNAL
|
TempFileDeleter |
getTempFileDeleter()
INTERNAL
|
static void |
main(String... args)
Options are case sensitive.
|
FileStore |
openFile(String name,
String mode,
boolean mustExist)
INTERNAL
|
static InputStream |
readBlobMap(Connection conn,
long lobId,
long precision)
INTERNAL
|
static Reader |
readClobMap(Connection conn,
long lobId,
long precision)
INTERNAL
|
int |
readLob(long lobId,
byte[] hmac,
long offset,
byte[] buff,
int off,
int length)
INTERNAL
|
void |
runTool(String... args)
Dumps the contents of a database file to a human readable text file.
|
isOption, printNoDatabaseFilesFound, setOut, showUsage, showUsageAndThrowUnsupportedOption, throwUnsupportedOptionpublic static void main(String... args) throws SQLException
| [-help] or [-?] | Print the list of options |
| [-dir <dir>] | The directory (default: .) |
| [-db <database>] | The database name (all databases if not set) |
| [-trace] | Print additional trace information |
| [-transactionLog] | Print the transaction log |
args - the command line argumentsSQLException - on failurepublic void runTool(String... args) throws SQLException
runTool 在类中 Toolargs - the command line argumentsSQLException - on failurepublic static InputStream readBlobMap(Connection conn, long lobId, long precision) throws SQLException
conn - to uselobId - id of the LOB streamprecision - not usedSQLException - on failurepublic static Reader readClobMap(Connection conn, long lobId, long precision) throws Exception
conn - to uselobId - id of the LOB streamprecision - not usedSQLException - on failureExceptionpublic static void execute(String dir, String db) throws SQLException
dir - the directorydb - the database name (null for all databases)SQLException - on failurepublic String getDatabasePath()
getDatabasePath 在接口中 DataHandlerpublic FileStore openFile(String name, String mode, boolean mustExist)
openFile 在接口中 DataHandlername - the file namemode - the modemustExist - whether the file must already existpublic void checkPowerOff()
checkPowerOff 在接口中 DataHandlerpublic void checkWritingAllowed()
checkWritingAllowed 在接口中 DataHandlerpublic int getMaxLengthInplaceLob()
getMaxLengthInplaceLob 在接口中 DataHandlerpublic Object getLobSyncObject()
getLobSyncObject 在接口中 DataHandlerpublic SmallLRUCache<String,String[]> getLobFileListCache()
getLobFileListCache 在接口中 DataHandlerpublic TempFileDeleter getTempFileDeleter()
getTempFileDeleter 在接口中 DataHandlerpublic LobStorageInterface getLobStorage()
getLobStorage 在接口中 DataHandlerpublic int readLob(long lobId,
byte[] hmac,
long offset,
byte[] buff,
int off,
int length)
readLob 在接口中 DataHandlerlobId - the lob idhmac - the message authentication codeoffset - the offset within the lobbuff - the target bufferoff - the offset within the target bufferlength - the number of bytes to readpublic CompareMode getCompareMode()
DataHandlergetCompareMode 在接口中 DataHandlerCopyright © 2022. All rights reserved.