| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsimpledb.server.SimpleDB
public class SimpleDB
The class that provides system-wide static global values.
 These values must be initialized by the method
 init before use.
 The methods initFileMgr,
 initFileAndLogMgr,
 initFileLogAndBufferMgr,
 and initMetadataMgr
 provide limited initialization, and are useful for 
 debugging purposes.
| Field Summary | |
|---|---|
static int | 
BUFFER_SIZE
 | 
static String | 
LOG_FILE
 | 
| Constructor Summary | |
|---|---|
SimpleDB()
 | 
|
| Method Summary | |
|---|---|
static BufferMgr | 
bufferMgr()
 | 
static FileMgr | 
fileMgr()
 | 
static void | 
init(String dirname)
Initializes the system.  | 
static void | 
initFileAndLogMgr(String dirname)
Initializes the file and log managers.  | 
static void | 
initFileLogAndBufferMgr(String dirname)
Initializes the file, log, and buffer managers.  | 
static void | 
initFileMgr(String dirname)
Initializes only the file manager.  | 
static void | 
initMetadataMgr(boolean isnew,
                Transaction tx)
Initializes metadata manager.  | 
static LogMgr | 
logMgr()
 | 
static MetadataMgr | 
mdMgr()
 | 
static Planner | 
planner()
Creates a planner for SQL commands.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static int BUFFER_SIZE
public static String LOG_FILE
| Constructor Detail | 
|---|
public SimpleDB()
| Method Detail | 
|---|
public static void init(String dirname)
dirname - the name of the database directorypublic static void initFileMgr(String dirname)
dirname - the name of the database directorypublic static void initFileAndLogMgr(String dirname)
dirname - the name of the database directorypublic static void initFileLogAndBufferMgr(String dirname)
dirname - the name of the database directory
public static void initMetadataMgr(boolean isnew,
                                   Transaction tx)
isnew - an indication of whether a new
 database needs to be created.tx - the transaction performing the initializationpublic static FileMgr fileMgr()
public static BufferMgr bufferMgr()
public static LogMgr logMgr()
public static MetadataMgr mdMgr()
public static Planner planner()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||