public class Recover extends Tool implements DataHandler
| Constructor and Description |
|---|
Recover() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkPowerOff()
INTERNAL
|
void |
checkWritingAllowed()
INTERNAL
|
static void |
execute(String dir,
String db)
Dumps the contents of a database to a SQL script file.
|
void |
freeUpDiskSpace()
INTERNAL
|
String |
getDatabasePath()
INTERNAL
|
String |
getLobCompressionAlgorithm(int type)
INTERNAL
|
Connection |
getLobConnection()
INTERNAL
|
SmallLRUCache<String,String[]> |
getLobFileListCache()
INTERNAL
|
LobStorage |
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 |
readBlob(String fileName)
INTERNAL
|
static Value.ValueBlob |
readBlobDb(Connection conn,
long lobId,
long precision)
INTERNAL
|
static Reader |
readClob(String fileName)
INTERNAL
|
static Value.ValueClob |
readClobDb(Connection conn,
long lobId,
long precision)
INTERNAL
|
void |
runTool(String... args)
Dumps the contents of a database file to a human readable text file.
|
isOption, printNoDatabaseFilesFound, setOut, showUsage, 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 |
args - the command line argumentsSQLExceptionpublic void runTool(String... args) throws SQLException
runTool in class Toolargs - the command line argumentsSQLExceptionpublic static Reader readClob(String fileName) throws IOException
IOExceptionpublic static InputStream readBlob(String fileName) throws IOException
IOExceptionpublic static Value.ValueBlob readBlobDb(Connection conn, long lobId, long precision)
public static Value.ValueClob readClobDb(Connection conn, long lobId, long precision)
public static void execute(String dir, String db) throws SQLException
dir - the directorydb - the database name (null for all databases)SQLExceptionpublic String getDatabasePath()
getDatabasePath in interface DataHandlerpublic FileStore openFile(String name, String mode, boolean mustExist)
openFile in interface DataHandlername - the file namemode - the modemustExist - whether the file must already existpublic void checkPowerOff()
checkPowerOff in interface DataHandlerpublic void checkWritingAllowed()
checkWritingAllowed in interface DataHandlerpublic void freeUpDiskSpace()
freeUpDiskSpace in interface DataHandlerpublic int getMaxLengthInplaceLob()
getMaxLengthInplaceLob in interface DataHandlerpublic String getLobCompressionAlgorithm(int type)
getLobCompressionAlgorithm in interface DataHandlertype - the data type (CLOB or BLOB)public Object getLobSyncObject()
getLobSyncObject in interface DataHandlerpublic SmallLRUCache<String,String[]> getLobFileListCache()
getLobFileListCache in interface DataHandlerpublic TempFileDeleter getTempFileDeleter()
getTempFileDeleter in interface DataHandlerpublic LobStorage getLobStorage()
getLobStorage in interface DataHandlerpublic Connection getLobConnection()
getLobConnection in interface DataHandlerCopyright © 2012 JBoss by Red Hat. All Rights Reserved.