|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectsimpledb.Database
public class Database
Database is a class that initializes several static variables used by the database system (the catalog, the buffer pool, and the log files, in particular.)
Provides a set of methods that can be used to access these variables from anywhere.
| Field Summary | |
|---|---|
private BufferPool |
_bufferpool
|
private Catalog |
_catalog
|
private static Database |
_instance
|
private LogFile |
_logfile
|
private static java.lang.String |
LOGFILENAME
|
| Constructor Summary | |
|---|---|
private |
Database()
|
| Method Summary | |
|---|---|
static BufferPool |
getBufferPool()
Return the buffer pool of the static Database instance |
static Catalog |
getCatalog()
Return the catalog of the static Database instance |
static LogFile |
getLogFile()
Return the log file of the static Database instance |
static void |
reset()
|
static BufferPool |
resetBufferPool(int pages)
Method used for testing -- create a new instance of the buffer pool and return it |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static Database _instance
private final Catalog _catalog
private BufferPool _bufferpool
private static final java.lang.String LOGFILENAME
private LogFile _logfile
| Constructor Detail |
|---|
private Database()
| Method Detail |
|---|
public static LogFile getLogFile()
public static BufferPool getBufferPool()
public static Catalog getCatalog()
public static BufferPool resetBufferPool(int pages)
public static void reset()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||