public class FileLister extends Object
Modifier and Type | Method and Description |
---|---|
static ArrayList<String> |
getDatabaseFiles(String dir,
String db,
boolean all)
Get the list of database files.
|
static String |
getDir(String dir)
Normalize the directory name.
|
static void |
tryUnlockDatabase(List<String> files,
String message)
Try to lock the database, and then unlock it.
|
public static void tryUnlockDatabase(List<String> files, String message) throws SQLException
files
- the database files to checkmessage
- the text to include in the error messageSQLException
- if it failedpublic static String getDir(String dir)
dir
- the directory (null for the current directory)public static ArrayList<String> getDatabaseFiles(String dir, String db, boolean all)
dir
- the directory (must be normalized)db
- the database name (null for all databases)all
- if true, files such as the lock, trace, and lob
files are included. If false, only data, index, log,
and lob files are returnedCopyright © 2012 JBoss by Red Hat. All Rights Reserved.