public class DBMS extends Object
java DBMS
Modifier and Type | Field and Description |
---|---|
static String |
DB_HOME
The home directory of the BDB environment.
|
static boolean |
DEBUG
Set this to true to print debugging messages, and false to
omit them.
|
Constructor and Description |
---|
DBMS() |
Modifier and Type | Method and Description |
---|---|
static void |
abort()
Attempts to immediately shut down the database and exit.
|
static Environment |
getEnv()
Returns the handle for the underlying BDB environment.
|
static void |
init()
Initializes the DBMS -- initializing the underlying BDB environment,
the catalog, and the in-memory cache of open tables.
|
static void |
main(String[] args)
The main method for the DBMS application.
|
static void |
shutdown()
Prepares the DBMS to shutdown -- closing all open tables, as well
as the catalog and the underlying BDB environment.
|
public static final boolean DEBUG
public static final String DB_HOME
public static void main(String[] args) throws IOException
IOException
public static void init()
public static void shutdown() throws DatabaseException
DatabaseException
- if Berkeley DB encounters a problem when
aborting transactions, closing the per-table databases,
or closing the catalog databasepublic static void abort()
public static Environment getEnv()